RecursiveDOMIterator
in package
implements
RecursiveIterator
Recursive Iterator class for the DOM class
Tags
Table of Contents
Interfaces
- RecursiveIterator
Properties
- $_nodeList : DOMNodeList
- The DOMNodeList with all children to iterate over
- $_position : int
- Current Position in DOMNodeList
Methods
- __construct() : mixed
- Constructor
- current() : DOMNode
- Returns the current DOMNode
- getChildren() : RecursiveDOMIterator
- Returns an iterator for the current iterator entry
- hasChildren() : bool
- Returns if an iterator can be created for the current entry
- key() : mixed
- Returns the current position
- next() : void
- Moves the current position to the next element
- rewind() : void
- Rewind the Iterator to the first element
- valid() : bool
- Checks if current position is valid
Properties
$_nodeList
The DOMNodeList with all children to iterate over
protected
DOMNodeList
$_nodeList
$_position
Current Position in DOMNodeList
protected
int
$_position
Methods
__construct()
Constructor
public
__construct(DOMNode $domNode) : mixed
Parameters
- $domNode : DOMNode
current()
Returns the current DOMNode
public
current() : DOMNode
Return values
DOMNodegetChildren()
Returns an iterator for the current iterator entry
public
getChildren() : RecursiveDOMIterator
Return values
RecursiveDOMIteratorhasChildren()
Returns if an iterator can be created for the current entry
public
hasChildren() : bool
Return values
boolkey()
Returns the current position
public
key() : mixed
next()
Moves the current position to the next element
public
next() : void
rewind()
Rewind the Iterator to the first element
public
rewind() : void
valid()
Checks if current position is valid
public
valid() : bool