PHP 클래스 Prado\Web\UI\ActiveControls\TActiveListItemCollection

Allows TActiveDropDownList and TActiveListBox to add new options during callback response. New options can only be added after the {@link TControl::onLoad OnLoad} event. The {@link getListHasChanged ListHasChanged} property is true when the list items has changed. The control responsible for the list needs to repopulate the client-side options.
부터: 3.1
상속: extends Prado\Collections\TListItemCollection
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getControl ( ) : Prado\Web\UI\ActiveControls\IActiveControl
getListHasChanged ( ) : boolean
insertAt ( $index, $value ) Inserts an item into the collection.
removeAt ( $index ) Removes an item from at specified index.
setControl ( Prado\Web\UI\ActiveControls\IActiveControl $control )
updateClientSide ( ) Update client-side list items.

보호된 메소드들

메소드 설명
canUpdateClientSide ( ) : boolean

메소드 상세

canUpdateClientSide() 보호된 메소드

protected canUpdateClientSide ( ) : boolean
리턴 boolean true if active controls can update client-side and the onLoad event has already been raised.

getControl() 공개 메소드

public getControl ( ) : Prado\Web\UI\ActiveControls\IActiveControl
리턴 Prado\Web\UI\ActiveControls\IActiveControl active control using the collection.

getListHasChanged() 공개 메소드

public getListHasChanged ( ) : boolean
리턴 boolean true if the list has changed after onLoad event.

insertAt() 공개 메소드

The new option is added on the client-side during callback.
public insertAt ( $index, $value )

removeAt() 공개 메소드

Removes an item from at specified index.
public removeAt ( $index )

setControl() 공개 메소드

public setControl ( Prado\Web\UI\ActiveControls\IActiveControl $control )
$control Prado\Web\UI\ActiveControls\IActiveControl

updateClientSide() 공개 메소드

Update client-side list items.
public updateClientSide ( )