PHP 클래스 Prado\Web\UI\WebControls\TDataGridItem

A TDataGridItem control represents an item in the {@link TDataGrid} 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. Property {@link getDataSourceIndex DataSourceIndex} gives the index of the item from the bound data source.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TTableRow, implements Prado\Web\UI\INamingContainer
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( $itemIndex, $dataSourceIndex, $itemType ) Constructor.
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.
getDataSourceIndex ( ) : integer
getItemIndex ( ) : integer
getItemType ( ) : TListItemType
setData ( $value )
setDataItem ( $value ) This property is deprecated since v3.1.0.
setItemType ( $value )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $itemIndex, $dataSourceIndex, $itemType )

bubbleEvent() 공개 메소드

This method overrides parent's implementation by wrapping event parameter for OnCommand event with item information.
public bubbleEvent ( $sender, $param ) : boolean
리턴 boolean whether the event bubbling should stop here.

getData() 공개 메소드

부터: 3.1.0
public getData ( ) : mixed
리턴 mixed data associated with the item

getDataItem() 공개 메소드

This property is deprecated since v3.1.0.
사용 중단: deprecated since v3.1.0. Use {@link getData} instead.
public getDataItem ( ) : mixed
리턴 mixed data associated with the item

getDataSourceIndex() 공개 메소드

public getDataSourceIndex ( ) : integer
리턴 integer the index of the datagrid item from the bound data source

getItemIndex() 공개 메소드

public getItemIndex ( ) : integer
리턴 integer zero-based index of the item in the item collection of datagrid

getItemType() 공개 메소드

public getItemType ( ) : TListItemType
리턴 TListItemType item type.

setData() 공개 메소드

부터: 3.1.0
public setData ( $value )

setDataItem() 공개 메소드

This property is deprecated since v3.1.0.
사용 중단: deprecated since version 3.1.0. Use {@link setData} instead.
public setDataItem ( $value )

setItemType() 공개 메소드

public setItemType ( $value )