PHP 클래스 Prado\Collections\TListItemCollection

TListItemCollection maintains a list of {@link TListItem} for {@link TListControl}.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TList
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
createListItem ( $index ) : TListItem Creates a list item object.
findIndexByText ( $text, $includeDisabled = true ) : integer Finds the lowest cardinal index of the item whose text is the one being looked for.
findIndexByValue ( $value, $includeDisabled = true ) : integer Finds the lowest cardinal index of the item whose value is the one being looked for.
findItemByText ( $text, $includeDisabled = true ) : TListItem Finds the item whose text is the one being looked for.
findItemByValue ( $value, $includeDisabled = true ) : TListItem Finds the item whose value is the one being looked for.
insertAt ( $index, $item ) Inserts an item into the collection.
loadState ( $state ) Loads state into every item in the collection.
saveState ( ) : array | null Saves state of items.

보호된 메소드들

메소드 설명
createNewListItem ( $text = null ) : TListItem

메소드 상세

createListItem() 공개 메소드

This method may be overriden to provide a customized list item object.
public createListItem ( $index ) : TListItem
리턴 Prado\Web\UI\WebControls\TListItem list item object

createNewListItem() 보호된 메소드

protected createNewListItem ( $text = null ) : TListItem
리턴 Prado\Web\UI\WebControls\TListItem new item.

findIndexByText() 공개 메소드

Finds the lowest cardinal index of the item whose text is the one being looked for.
public findIndexByText ( $text, $includeDisabled = true ) : integer
리턴 integer the index of the item found, -1 if not found.

findIndexByValue() 공개 메소드

Finds the lowest cardinal index of the item whose value is the one being looked for.
public findIndexByValue ( $value, $includeDisabled = true ) : integer
리턴 integer the index of the item found, -1 if not found.

findItemByText() 공개 메소드

Finds the item whose text is the one being looked for.
public findItemByText ( $text, $includeDisabled = true ) : TListItem
리턴 Prado\Web\UI\WebControls\TListItem the item found, null if not found.

findItemByValue() 공개 메소드

Finds the item whose value is the one being looked for.
public findItemByValue ( $value, $includeDisabled = true ) : TListItem
리턴 Prado\Web\UI\WebControls\TListItem the item found, null if not found.

insertAt() 공개 메소드

Inserts an item into the collection.
public insertAt ( $index, $item )

loadState() 공개 메소드

This method should only be used by framework and control developers.
public loadState ( $state )

saveState() 공개 메소드

This method should only be used by framework and control developers.
public saveState ( ) : array | null
리턴 array | null the saved state