JsonView
扩展自 AbstractViewJoomla 框架 JSON 视图类
| 自 |
2.0.0 |
|---|---|
| 包 |
Joomla 框架 |
方法
addData
将对象添加到数据数组中
addData( key, value) :
继承
| 自 |
2.0.0 |
|---|
参数
- key
string数组键- value
mixed要添加的数据值
响应
$this
clearData
重置内部数据数组
clearData() :
继承
| 自 |
2.0.0 |
|---|
响应
$this
getData
检索数据数组
getData() : mixed||string|int
继承
| 自 |
2.0.0 |
|---|
响应
array<string|int, mixed>
removeData
从数据数组中移除对象
removeData( key) :
继承
| 自 |
2.0.0 |
|---|
参数
- key
string要移除的数组键
响应
$this
render
渲染视图的方法。
render() :
| 自 |
2.0.0 |
|---|
响应
string渲染后的视图。
setData
将附加数据设置为数据数组
setData(mixed||string|int data) :
继承
| 自 |
2.0.0 |
|---|
参数
- data
array<string|int, mixed>要合并到现有数据数组中的数据
响应
$this
属性
data
传递给渲染器的数据数组
继承
| 自 |
2.0.0 |
|---|
类型
array<string|int, mixed>