|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __call ($func, $params) | |
| __construct (RecursiveIterator $it) | |
| accept () | |
| current () | |
| getChildren () | |
| getInnerIterator () | |
| hasChildren () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Protected Member Functions | |
| __clone () | |
| fetch () | |
Private Attributes | |
| $ref | |
Iterator to filter recursive iterators.
Passes the RecursiveIterator interface to the inner Iterator and provides the same functionality as FilterIterator. This allows you to skip parents and all their childs before loading them all. You need to care about function getChildren() because it may not always suit your needs. The builtin behavior uses reflection to return a new instance of the exact same class it is called from. That is you extend RecursiveFilterIterator and getChildren() will create instance of that class. The problem is that doing this does not transport any state or control information of your accept() implementation to the new instance. To overcome this problem you might need to overwrite getChildren(), call this implementation and pass the control vaules manually.
Definition at line 30 of file recursivefilteriterator.inc.
| RecursiveFilterIterator::__construct | ( | RecursiveIterator | $it | ) |
| $it | the RecursiveIterator to filter |
Definition at line 34 of file recursivefilteriterator.inc.
|
inherited |
Aggregate the inner iterator.
| func | Name of method to invoke |
| params | Array of parameters to pass to method |
Definition at line 121 of file filteriterator.inc.
|
protectedinherited |
|
abstractinherited |
Accept function to decide whether an element of the inner iterator should be accessible through the Filteriterator.
Referenced by FilterIterator\fetch().
|
inherited |
Implements Iterator.
Definition at line 97 of file filteriterator.inc.
Referenced by RegexFindFile\accept(), and FindFile\accept().
|
protectedinherited |
Fetch next element and store it.
Definition at line 61 of file filteriterator.inc.
References FilterIterator\accept().
Referenced by FilterIterator\next(), and FilterIterator\rewind().

| RecursiveFilterIterator::getChildren | ( | ) |
Implements RecursiveIterator.
Definition at line 50 of file recursivefilteriterator.inc.
References FilterIterator\getInnerIterator().

|
inherited |
Implements OuterIterator.
Definition at line 111 of file filteriterator.inc.
References FilterIterator\$it.
Referenced by SearchIterator\__call(), DirectoryFilterDots\accept(), KeyFilter\accept(), RecursiveRegexIterator\getChildren(), getChildren(), RecursiveRegexIterator\hasChildren(), hasChildren(), and DirectoryFilterDots\key().
| RecursiveFilterIterator::hasChildren | ( | ) |
Implements RecursiveIterator.
Definition at line 41 of file recursivefilteriterator.inc.
References FilterIterator\getInnerIterator().

|
inherited |
Implements Iterator.
Definition at line 90 of file filteriterator.inc.
Referenced by KeyFilter\accept().
|
inherited |
Move to next element.
Implements Iterator.
Definition at line 75 of file filteriterator.inc.
References FilterIterator\fetch().

|
inherited |
Rewind the inner iterator.
Implements Iterator.
Definition at line 42 of file filteriterator.inc.
References FilterIterator\fetch().

|
inherited |
Implements Iterator.
Definition at line 83 of file filteriterator.inc.
|
private |
Definition at line 59 of file recursivefilteriterator.inc.
1.8.5