DomIterator
in package
implements
RecursiveIterator
Dom iterator class
Tags
Interfaces, Classes and Traits
- RecursiveIterator
Table of Contents
- $nodeList : DOMNodeList
- Node List
- $position : int
- Current position
- __construct() : mixed
- Constructor
- current() : DOMNode
- Get current method
- getChildren() : DomIterator
- Get children method
- hasChildren() : bool
- Has children method
- key() : int
- Key method
- next() : mixed
- Next method
- rewind() : mixed
- Rewind method
- valid() : bool
- Is valid method
Properties
$nodeList
Node List
protected
DOMNodeList
$nodeList
$position
Current position
protected
int
$position
Methods
__construct()
Constructor
public
__construct(DOMNode $domNode) : mixed
Instantiate the DOM iterator object
Parameters
- $domNode : DOMNode
Return values
mixed —current()
Get current method
public
current() : DOMNode
Return values
DOMNode —getChildren()
Get children method
public
getChildren() : DomIterator
Return values
DomIterator —hasChildren()
Has children method
public
hasChildren() : bool
Return values
bool —key()
Key method
public
key() : int
Return values
int —next()
Next method
public
next() : mixed
Return values
mixed —rewind()
Rewind method
public
rewind() : mixed
Return values
mixed —valid()
Is valid method
public
valid() : bool