Dodo
DOm DOcument implementation
Loading...
Searching...
No Matches
Wikimedia\Dodo\NodeList Class Reference

NodeList.php. More...

+ Inheritance diagram for Wikimedia\Dodo\NodeList:

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< NodegetIterator ()
 

Detailed Description

NodeList.php.

-forbid-undeclared-magic-properties

Member Function Documentation

◆ _append()

Wikimedia\Dodo\NodeList::_append ( Node $n)

For internal use only: append a node to the backing array.

Parameters
Node$n

◆ _set()

Wikimedia\Dodo\NodeList::_set ( int $index,
Node $n )

For internal use only: replace the node at the given index.

Parameters
int$index
Node$n

◆ _splice()

Wikimedia\Dodo\NodeList::_splice ( int $offset,
int $length,
array $replacement = [] )

For internal use only: splice nodes in the backing array.

Parameters
int$offset
int$length
Node[]$replacement

◆ getLength()

int Wikimedia\Dodo\NodeList::getLength ( )

◆ item()

Node Wikimedia\Dodo\NodeList::item ( int $i)

The documentation for this class was generated from the following file: