PHP Class Prado\Web\UI\TControlCollection

TControlCollection implements a collection that enables controls to maintain a list of their child controls.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\Collections\TList
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( TControl $owner, $readOnly = false ) Constructor.
clear ( ) Overrides the parent implementation by invoking {@link TControl::clearNamingContainer}
insertAt ( $index, $item ) Inserts an item at the specified position.
removeAt ( $index ) : mixed Removes an item at the specified position.

Méthodes protégées

Méthode Description
getOwner ( ) : TControl

Method Details

__construct() public méthode

Constructor.
public __construct ( TControl $owner, $readOnly = false )
$owner TControl

clear() public méthode

Overrides the parent implementation by invoking {@link TControl::clearNamingContainer}
public clear ( )

getOwner() protected méthode

protected getOwner ( ) : TControl
Résultat TControl the control that owns this collection.

insertAt() public méthode

This overrides the parent implementation by performing additional operations for each newly added child control.
public insertAt ( $index, $item )

removeAt() public méthode

This overrides the parent implementation by performing additional cleanup work when removing a child control.
public removeAt ( $index ) : mixed
Résultat mixed the removed item.