PHP Class 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.
Since: 3.1
Inheritance: extends Prado\Collections\TListItemCollection
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
canUpdateClientSide ( ) : boolean

Method Details

canUpdateClientSide() protected méthode

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

getControl() public méthode

public getControl ( ) : Prado\Web\UI\ActiveControls\IActiveControl
Résultat Prado\Web\UI\ActiveControls\IActiveControl active control using the collection.

getListHasChanged() public méthode

public getListHasChanged ( ) : boolean
Résultat boolean true if the list has changed after onLoad event.

insertAt() public méthode

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

removeAt() public méthode

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

setControl() public méthode

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

updateClientSide() public méthode

Update client-side list items.
public updateClientSide ( )