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