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

TItemDataRenderer is the convient base class for template-based item data renderers. It implements the {@link IItemDataRenderer} interface, and because TItemDataRenderer extends from {@link TTemplateControl}, derived child classes can have templates to define their presentational layout. The following properties are provided by TItemDataRenderer: - {@link getItemIndex ItemIndex}: zero-based index of this renderer in the item list collection. - {@link getItemType ItemType}: item type of this renderer, such as TListItemType::AlternatingItem - {@link getData Data}: data associated with this renderer
부터: 3.1.2
저자: Qiang Xue ([email protected])
상속: extends TDataRenderer, implements Prado\Web\UI\WebControls\IItemDataRenderer
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getItemIndex ( ) : integer Returns a value indicating the zero-based index of the item in the corresponding data control's item collection.
getItemType ( ) : TListItemType
setItemIndex ( $value ) Sets the zero-based index for the item.
setItemType ( $value )

메소드 상세

getItemIndex() 공개 메소드

If the item is not in the collection (e.g. it is a header item), it returns -1.
public getItemIndex ( ) : integer
리턴 integer zero-based index of the item.

getItemType() 공개 메소드

public getItemType ( ) : TListItemType
리턴 TListItemType item type

setItemIndex() 공개 메소드

If the item is not in the item collection (e.g. it is a header item), -1 should be used.
public setItemIndex ( $value )

setItemType() 공개 메소드

public setItemType ( $value )