## Class TXmlElementList

Description

TXmlElementList class.

TXmlElementList represents a collection of TXmlElement. You may manipulate the collection with the operations defined in TList.

- since: 3.0
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Xml/TXmlDocument.php (line 399)

    TComponent
       |
       --TList
          |
          --TXmlElementList

Method Summary
TXmlElementList __construct (TXmlElement $owner)
TXmlElement getOwner ()
void insertAt (integer $index, mixed $item)
mixed removeAt (integer $index)
Methods
Constructor __construct (line 410)

Constructor.

- access: public

TXmlElementList __construct (TXmlElement $owner)

- TXmlElement $owner: owner of this list

Redefinition of:

TList::__construct()
  Constructor.

getOwner (line 418)

- return: owner of this list
- access: protected

TXmlElement getOwner ()
insertAt (line 431)

Inserts an item at the specified position.

This overrides the parent implementation by performing additional operations for each newly added TXmlElement object.

- access: public
- throws: TInvalidDataTypeException if the item to be inserted is not a TXmlElement object.

void insertAt (integer $index, mixed $item)

- integer $index: the speicified position.
- mixed $item: new item

Redefinition of:

TList::insertAt()
  Inserts an item at the specified position.

removeAt (line 451)

Removes an item at the specified position.

This overrides the parent implementation by performing additional cleanup work when removing a TXmlElement object.

- return: the removed item.
- access: public

mixed removeAt (integer $index)

- integer $index: the index of the item to be removed.

Redefinition of:

TList::removeAt()
  Removes an item at the specified position.

#### Inherited Methods

Inherited From TList

> TList::__construct()
> TList::add()
> TList::clear()
> TList::contains()
> TList::copyFrom()
> TList::getCount()
> TList::getIterator()
> TList::getReadOnly()
> TList::indexOf()
> TList::insertAt()
> TList::itemAt()
> TList::mergeWith()
> TList::offsetExists()
> TList::offsetGet()
> TList::offsetSet()
> TList::offsetUnset()
> TList::remove()
> TList::removeAt()
> TList::setReadOnly()
> TList::toArray()

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Sun, 04 Jun 2006 19:00:49 -0400 by phpDocumentor 1.3.0RC4