The RecursiveTreeIterator class
Introduction
Allows iterating over a RecursiveIterator to generate an ASCII graphic tree.
Class synopsis
RecursiveTreeIterator
extends
RecursiveIteratorIterator
implements
OuterIterator
,
Traversable
,
Iterator
{
/* Constants */
/* Methods */
__construct
( RecursiveIterator|IteratorAggregate $it
[, int $flags = RecursiveTreeIterator::BYPASS_KEY
[, int $cit_flags = CachingIterator::CATCH_GET_CHILD
[, int $mode = RecursiveIteratorIterator::SELF_FIRST
]]] )
/* Inherited methods */
RecursiveIteratorIterator::__construct
( Traversable $iterator
[, int $mode = LEAVES_ONLY
[, int $flags = 0
]] )
}Predefined Constants
RecursiveTreeIterator Node Types
- RecursiveTreeIterator::BYPASS_CURRENT
- RecursiveTreeIterator::BYPASS_KEY
- RecursiveTreeIterator::PREFIX_LEFT
- RecursiveTreeIterator::PREFIX_MID_HAS_NEXT
- RecursiveTreeIterator::PREFIX_MID_LAST
- RecursiveTreeIterator::PREFIX_END_HAS_NEXT
- RecursiveTreeIterator::PREFIX_END_LAST
- RecursiveTreeIterator::PREFIX_RIGHT
Table of Contents
- RecursiveTreeIterator::beginChildren — Begin children
- RecursiveTreeIterator::beginIteration — Begin iteration
- RecursiveTreeIterator::callGetChildren — Get children
- RecursiveTreeIterator::callHasChildren — Has children
- RecursiveTreeIterator::__construct — Construct a RecursiveTreeIterator
- RecursiveTreeIterator::current — Get current element
- RecursiveTreeIterator::endChildren — End children
- RecursiveTreeIterator::endIteration — End iteration
- RecursiveTreeIterator::getEntry — Get current entry
- RecursiveTreeIterator::getPostfix — Get the postfix
- RecursiveTreeIterator::getPrefix — Get the prefix
- RecursiveTreeIterator::key — Get the key of the current element
- RecursiveTreeIterator::next — Move to next element
- RecursiveTreeIterator::nextElement — Next element
- RecursiveTreeIterator::rewind — Rewind iterator
- RecursiveTreeIterator::setPrefixPart — Set a part of the prefix
- RecursiveTreeIterator::valid — Check validity