|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __construct (RecursiveIterator $it, $mode=self::LEAVES_ONLY, $flags=0) | |
| beginChildren () | |
| callGetChildren () | |
| callHasChildren () | |
| current () | |
| endChildren () | |
| getDepth () | |
| getInnerIterator () | |
| getSubIterator ($level=NULL) | |
| key () | |
| next () | |
| nextElement () | |
| rewind () | |
| valid () | |
Public Attributes | |
| const | CATCH_GET_CHILD = 0x00000002 |
| const | CHILD_FIRST = 2 |
| const | LEAVES_ONLY = 0 |
| const | SELF_FIRST = 1 |
Private Member Functions | |
| callNextElement ($after_move) | |
Private Attributes | |
| $ait = array() | |
| $count = 0 | |
| $flags = 0 | |
| $mode = self::LEAVES_ONLY | |
Iterates through recursive iterators.
The objects of this class are created by instances of RecursiveIterator. Elements of those iterators may be traversable themselves. If so these sub elements are recursed into.
Definition at line 22 of file recursiveiteratoriterator.inc.
| RecursiveIteratorIterator::__construct | ( | RecursiveIterator | $it, |
$mode = self::LEAVES_ONLY, |
|||
$flags = 0 |
|||
| ) |
Construct from RecursiveIterator.
| it | RecursiveIterator to iterate |
| mode | Operation mode (one of):
|
| flags | Control flags, zero or any combination of the following (since PHP 5.1).
|
Definition at line 53 of file recursiveiteratoriterator.inc.
References $flags, $it, and $mode.
Referenced by DirectoryGraphIterator\__construct().
| RecursiveIteratorIterator::beginChildren | ( | ) |
Called right after calling getChildren() and its rewind().
Definition at line 201 of file recursiveiteratoriterator.inc.
Referenced by next().
| RecursiveIteratorIterator::callGetChildren | ( | ) |
Definition at line 193 of file recursiveiteratoriterator.inc.
References $count.
Referenced by next().
| RecursiveIteratorIterator::callHasChildren | ( | ) |
Definition at line 185 of file recursiveiteratoriterator.inc.
References $count.
Referenced by callNextElement(), and next().
|
private |
Definition at line 213 of file recursiveiteratoriterator.inc.
References callHasChildren(), nextElement(), and valid().
Referenced by next(), and rewind().

| RecursiveIteratorIterator::current | ( | ) |
Implements Iterator.
Definition at line 99 of file recursiveiteratoriterator.inc.
| RecursiveIteratorIterator::endChildren | ( | ) |
Called after current child iterator is invalid and right before it gets destructed.
Definition at line 209 of file recursiveiteratoriterator.inc.
| RecursiveIteratorIterator::getDepth | ( | ) |
Definition at line 177 of file recursiveiteratoriterator.inc.
Referenced by DirectoryTreeIterator\current(), and RecursiveTreeIterator\getPrefix().
| RecursiveIteratorIterator::getInnerIterator | ( | ) |
Implements OuterIterator.
Definition at line 170 of file recursiveiteratoriterator.inc.
References $it.
Referenced by RecursiveCompareDualIterator\areEqual(), RecursiveCompareDualIterator\areIdentical(), and RecursiveCompareDualIterator\endChildren().
| RecursiveIteratorIterator::getSubIterator | ( | $level = NULL | ) |
Definition at line 159 of file recursiveiteratoriterator.inc.
References $count.
Referenced by DirectoryTreeIterator\__call(), RecursiveTreeIterator\__call(), DirectoryTreeIterator\current(), and RecursiveTreeIterator\getPrefix().
| RecursiveIteratorIterator::key | ( | ) |
Implements Iterator.
Definition at line 91 of file recursiveiteratoriterator.inc.
| RecursiveIteratorIterator::next | ( | ) |
Forward to next element.
Implements Iterator.
Definition at line 107 of file recursiveiteratoriterator.inc.
References $count, $it, beginChildren(), callGetChildren(), callHasChildren(), callNextElement(), and endChildren().

| RecursiveIteratorIterator::nextElement | ( | ) |
Called when the next element is available.
Definition at line 232 of file recursiveiteratoriterator.inc.
Referenced by callNextElement().
| RecursiveIteratorIterator::rewind | ( | ) |
Rewind to top iterator as set in constructor.
Implements Iterator.
Definition at line 62 of file recursiveiteratoriterator.inc.
References callNextElement(), and endChildren().

| RecursiveIteratorIterator::valid | ( | ) |
Implements Iterator.
Definition at line 75 of file recursiveiteratoriterator.inc.
References $count, $it, and endChildren().
Referenced by callNextElement().

|
private |
Definition at line 35 of file recursiveiteratoriterator.inc.
|
private |
Definition at line 36 of file recursiveiteratoriterator.inc.
Referenced by callGetChildren(), callHasChildren(), current(), getSubIterator(), key(), next(), and valid().
|
private |
Definition at line 38 of file recursiveiteratoriterator.inc.
Referenced by __construct().
|
private |
Definition at line 37 of file recursiveiteratoriterator.inc.
Referenced by RecursiveTreeIterator\__construct(), and __construct().
| const RecursiveIteratorIterator::CATCH_GET_CHILD = 0x00000002 |
Flag: Catches exceptions during getChildren() calls and simply jumps to the next element.
Definition at line 33 of file recursiveiteratoriterator.inc.
| const RecursiveIteratorIterator::CHILD_FIRST = 2 |
Mode: Show all children prior to their parent.
Definition at line 29 of file recursiveiteratoriterator.inc.
| const RecursiveIteratorIterator::LEAVES_ONLY = 0 |
Mode: Only show leaves.
Definition at line 25 of file recursiveiteratoriterator.inc.
| const RecursiveIteratorIterator::SELF_FIRST = 1 |
Mode: Show parents prior to their children.
Definition at line 27 of file recursiveiteratoriterator.inc.
1.8.5