|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __call ($func, $params) | |
| __construct (Iterator $it, $flags=self::CALL_TOSTRING) | |
| __toString () | |
| current () | |
| getInnerIterator () | |
| hasNext () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Public Attributes | |
| const | CALL_TOSTRING = 0x00000001 |
| const | CATCH_GET_CHILD = 0x00000002 |
| const | TOSTRING_USE_CURRENT = 0x00000020 |
| const | TOSTRING_USE_KEY = 0x00000010 |
Private Attributes | |
| $current | |
| $it | |
| $key | |
| $strValue | |
| $valid | |
Cached iteration over another Iterator.
This iterator wrapper does a one ahead iteration. This way it knows whether the inner iterator has one more element.
Definition at line 28 of file cachingiterator.inc.
| CachingIterator::__construct | ( | Iterator | $it, |
$flags = self::CALL_TOSTRING |
|||
| ) |
Construct from another iterator.
| it | Iterator to cache |
| flags | Bitmask:
|
Definition at line 47 of file cachingiterator.inc.

| CachingIterator::__call | ( | $func, | |
| $params | |||
| ) |
Aggregate the inner iterator.
| func | Name of method to invoke |
| params | Array of parameters to pass to method |
Definition at line 122 of file cachingiterator.inc.
| CachingIterator::__toString | ( | ) |
| exception | when CALL_TOSTRING was not specified in constructor |
Definition at line 131 of file cachingiterator.inc.
| CachingIterator::current | ( | ) |
Implements Iterator.
Definition at line 105 of file cachingiterator.inc.
References $current.
Referenced by next().
| CachingIterator::getInnerIterator | ( | ) |
Implements OuterIterator.
Definition at line 151 of file cachingiterator.inc.
References $it.
| CachingIterator::hasNext | ( | ) |
Definition at line 98 of file cachingiterator.inc.
| CachingIterator::key | ( | ) |
Implements Iterator.
Definition at line 112 of file cachingiterator.inc.
References $key.
Referenced by next().
| CachingIterator::next | ( | ) |
Forward to the next element.
Implements Iterator.
Definition at line 69 of file cachingiterator.inc.
References current(), key(), and valid().
Referenced by __construct(), and rewind().

| CachingIterator::rewind | ( | ) |
Rewind the Iterator.
Implements Iterator.
Definition at line 61 of file cachingiterator.inc.
References next().

| CachingIterator::valid | ( | ) |
Implements Iterator.
Definition at line 91 of file cachingiterator.inc.
References $valid.
Referenced by next().
|
private |
Definition at line 36 of file cachingiterator.inc.
Referenced by __toString(), and current().
|
private |
Definition at line 35 of file cachingiterator.inc.
Referenced by __construct(), and getInnerIterator().
|
private |
Definition at line 37 of file cachingiterator.inc.
Referenced by __toString(), and key().
|
private |
Definition at line 39 of file cachingiterator.inc.
Referenced by __toString().
|
private |
Definition at line 38 of file cachingiterator.inc.
Referenced by valid().
| const CachingIterator::CALL_TOSTRING = 0x00000001 |
Definition at line 30 of file cachingiterator.inc.
Referenced by DirectoryGraphIterator\__construct(), and DirectoryTreeIterator\__construct().
| const CachingIterator::CATCH_GET_CHILD = 0x00000002 |
Definition at line 31 of file cachingiterator.inc.
Referenced by DirectoryGraphIterator\__construct(), and DirectoryTreeIterator\__construct().
| const CachingIterator::TOSTRING_USE_CURRENT = 0x00000020 |
Definition at line 33 of file cachingiterator.inc.
| const CachingIterator::TOSTRING_USE_KEY = 0x00000010 |
Definition at line 32 of file cachingiterator.inc.
1.8.5