Documentation

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

setData()

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
DataObject

toHtml()

Produce and return widget's html output

public toHtml() : string
Return values
string
On this page

Search results