Mage_Widget_Block_Interface
in
Table of Contents
Methods
- addData() : Mage_Widget_Block_Interface
- Add data to the widget.
- setData() : DataObject
- Overwrite data in the widget.
- toHtml() : string
- Produce and return widget's html output
Methods
addData()
Add data to the widget.
public
addData(array<string|int, mixed> $arr) : Mage_Widget_Block_Interface
Retains previous data in the widget.
Parameters
- $arr : array<string|int, mixed>
Return values
Mage_Widget_Block_InterfacesetData()
Overwrite data in the widget.
public
setData(string|array<string|int, mixed> $key[, mixed $value = null ]) : DataObject
$key can be string or array. If $key is string, the attribute value will be overwritten by $value. If $key is an array, it will overwrite all the data in the widget.
Parameters
- $key : string|array<string|int, mixed>
- $value : mixed = null
Return values
DataObjecttoHtml()
Produce and return widget's html output
public
toHtml() : string