Inheritance diagram for FilterIterator:


Public Member Functions | |
| __call ($func, $params) | |
| __construct (Iterator $it) | |
| accept () | |
| current () | |
| getInnerIterator () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Protected Member Functions | |
| __clone () | |
| fetch () | |
Private Attributes | |
| $it | |
The only thing that needs to be done to make this work is implementing method accept(). Typically this invloves reading the current element or key of the inner Iterator and checking whether it is acceptable.
Definition at line 26 of file filteriterator.inc.
|
||||||||||||
|
Aggregate the inner iterator.
Reimplemented in SearchIterator. Definition at line 121 of file filteriterator.inc.
|
|
|
hidden __clone
Reimplemented in KeyFilter. Definition at line 104 of file filteriterator.inc.
|
|
|
Constructs a filter around another iterator.
Definition at line 35 of file filteriterator.inc. References $it. 00035 { 00036 $this->it = $it; 00037 }
|
|
|
Accept function to decide whether an element of the inner iterator should be accessible through the Filteriterator.
Reimplemented in CallbackFilterIterator, DirectoryFilterDots, FindFile, KeyFilter, RegexFindFile, ParentIterator, and RegexIterator. |
|
|
Implements Iterator. Reimplemented in CallbackFilterIterator, IniGroups, and RegexIterator. Definition at line 97 of file filteriterator.inc. Referenced by RegexFindFile::accept().
|
|
|
Fetch next element and store it.
Definition at line 61 of file filteriterator.inc. Referenced by rewind(). 00061 { 00062 while ($this->it->valid()) { 00063 if ($this->accept()) { 00064 return; 00065 } 00066 $this->it->next(); 00067 }; 00068 }
|
|
|
Implements OuterIterator. Definition at line 111 of file filteriterator.inc. Referenced by DirectoryFilterDots::accept(), RecursiveRegexIterator::hasChildren(), RecursiveFilterIterator::hasChildren(), and DirectoryFilterDots::key().
|
|
|
Implements Iterator. Reimplemented in CallbackFilterIterator, DirectoryFilterDots, IniGroups, and RegexIterator. Definition at line 90 of file filteriterator.inc.
|
|
|
Move to next element.
Implements Iterator. Reimplemented in SearchIterator. Definition at line 75 of file filteriterator.inc. 00075 { 00076 $this->it->next(); 00077 $this->fetch(); 00078 }
|
|
|
Rewind the inner iterator.
Implements Iterator. Reimplemented in SearchIterator. Definition at line 42 of file filteriterator.inc. References fetch(). 00042 { 00043 $this->it->rewind(); 00044 $this->fetch(); 00045 }
Here is the call graph for this function: ![]() |
|
|
Implements Iterator. Reimplemented in SearchIterator. Definition at line 83 of file filteriterator.inc.
|
|
|
Definition at line 28 of file filteriterator.inc. Referenced by FindFile::__construct(), and __construct(). |
1.4.5-20051024