|
The RecursiveIteratorIterator classIntroductionCan be used to iterate through recursive iterators. Calls to methods that RecursiveIteratorIterator does not have are forwarded to the iterator at the current depth, as returned by RecursiveIteratorIterator::getSubIterator. This does not use __call(). Class synopsis
RecursiveIteratorIterator
implements
OuterIterator
/* Constants */
public
const
int
RecursiveIteratorIterator::LEAVES_ONLY;
public
const
int
RecursiveIteratorIterator::SELF_FIRST;
public
const
int
RecursiveIteratorIterator::CHILD_FIRST;
public
const
int
RecursiveIteratorIterator::CATCH_GET_CHILD;
/* Methods */
public __construct(Traversable
$iterator, int $mode = RecursiveIteratorIterator::LEAVES_ONLY, int $flags = 0)public void beginChildren()
public void beginIteration()
public RecursiveIteratornull callGetChildren()
public bool callHasChildren()
public mixed current()
public void endChildren()
public void endIteration()
public int getDepth()
public RecursiveIterator getInnerIterator()
public intfalse getMaxDepth()
public RecursiveIteratornull getSubIterator(intnull
$level = null)public mixed key()
public void next()
public void nextElement()
public void rewind()
public void setMaxDepth(int
$maxDepth = -1)public bool valid()
Predefined Constants
Changelog
|