PHP Class Prado\Xml\TXmlElementList

TXmlElementList represents a collection of {@link TXmlElement}. You may manipulate the collection with the operations defined in {@link TList}.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\Collections\TList
Show file Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( TXmlElement $owner ) Constructor.
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 ( ) : TXmlElement

Method Details

__construct() public method

Constructor.
public __construct ( TXmlElement $owner )
$owner TXmlElement

getOwner() protected method

protected getOwner ( ) : TXmlElement
return TXmlElement owner of this list

insertAt() public method

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

removeAt() public method

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