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
Exibir arquivo Open project: pradosoft/prado Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
getOwner ( ) : TControl

Method Details

__construct() public method

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

clear() public method

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

getOwner() protected method

protected getOwner ( ) : TControl
return TControl the control that owns this collection.

insertAt() public method

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

removeAt() public method

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