PHP Class Prado\Web\UI\WebControls\TRepeaterItem
A TRepeaterItem control represents an item in the {@link TRepeater} control,
such as heading section, footer section, or a data item.
The index and data value of the item can be accessed via {@link getItemIndex ItemIndex}>
and {@link getDataItem DataItem} properties, respectively. The type of the item
is given by {@link getItemType ItemType} property.
ファイルを表示
Open project: pradosoft/prado
Class Usage Examples
Public Methods
Method |
Description |
|
bubbleEvent ( $sender, $param ) : boolean |
This method overrides parent's implementation by wrapping event parameter
for OnCommand event with item information. |
|
getData ( ) : mixed |
|
|
getDataItem ( ) : mixed |
This property is deprecated since v3.1.0. |
|
getItemIndex ( ) : integer |
Returns a value indicating the zero-based index of the item in the corresponding data control's item collection. |
|
getItemType ( ) : TListItemType |
|
|
setData ( $value ) |
|
|
setDataItem ( $value ) |
This property is deprecated since v3.1.0. |
|
setItemIndex ( $value ) |
Sets the zero-based index for the item. |
|
setItemType ( $value ) |
|
|
Method Details
bubbleEvent()
public method
This method overrides parent's implementation by wrapping event parameter
for OnCommand event with item information.
getDataItem()
public method
This property is deprecated since v3.1.0.
getItemIndex()
public method
If the item is not in the collection (e.g. it is a header item), it returns -1.
getItemType()
public method
public getItemType ( ) : TListItemType |
return |
TListItemType |
item type |
setDataItem()
public method
This property is deprecated since v3.1.0.
setItemIndex()
public method
If the item is not in the item collection (e.g. it is a header item), -1 should be used.
setItemType()
public method