Dodo
DOm DOcument implementation
|
NodeList.php. More...
Public Member Functions | |
__construct () | |
Create a new empty NodeList. | |
Node | item (int $i) |
int | getLength () |
_append (Node $n) | |
For internal use only: append a node to the backing array. | |
_set (int $index, Node $n) | |
For internal use only: replace the node at the given index. | |
_splice (int $offset, int $length, array $replacement=[]) | |
For internal use only: splice nodes in the backing array. | |
Public Member Functions inherited from Wikimedia::IDLeDOM::NodeList | |
Iterator< Node > | getIterator () |
NodeList.php.
-forbid-undeclared-magic-properties
Wikimedia\Dodo\NodeList::_append | ( | Node | $n | ) |
For internal use only: append a node to the backing array.
Node | $n |
Wikimedia\Dodo\NodeList::_set | ( | int | $index, |
Node | $n ) |
For internal use only: replace the node at the given index.
int | $index | |
Node | $n |
Wikimedia\Dodo\NodeList::_splice | ( | int | $offset, |
int | $length, | ||
array | $replacement = [] ) |
For internal use only: splice nodes in the backing array.
int | $offset | |
int | $length | |
Node[] | $replacement |
int Wikimedia\Dodo\NodeList::getLength | ( | ) |
Implements Wikimedia::IDLeDOM::NodeList.
Node Wikimedia\Dodo\NodeList::item | ( | int | $i | ) |
Implements Wikimedia::IDLeDOM::NodeList.