|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __call ($func, $params) | |
| __construct ($file) | |
| accept () | |
| current () | |
| getInnerIterator () | |
| getRegex () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Protected Member Functions | |
| __clone () | |
| fetch () | |
Class to iterate all groups within an ini file.
Using this class you can iterator over all groups of a ini file.
This class uses a 'is-a' relation to KeyFilter in contrast to a 'has-a' relation. Doing so both current() and key() methods must be overwritten. If it would use a 'has-a' relation there would be much more to type... but for puritists that would allow correctness in so far as then no key() would be needed.
Definition at line 28 of file inigroups.inc.
| IniGroups::__construct | ( | $file | ) |
Construct an ini file group iterator from a filename.
| file | Ini file to open. |
Definition at line 35 of file inigroups.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 |
|
inherited |
Definition at line 43 of file keyfilter.inc.
References FilterIterator\getInnerIterator(), and FilterIterator\key().

| IniGroups::current | ( | ) |
|
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().

|
inherited |
Implements OuterIterator.
Definition at line 111 of file filteriterator.inc.
References FilterIterator\$it.
Referenced by SearchIterator\__call(), DirectoryFilterDots\accept(), KeyFilter\accept(), RecursiveRegexIterator\getChildren(), RecursiveFilterIterator\getChildren(), RecursiveRegexIterator\hasChildren(), RecursiveFilterIterator\hasChildren(), and DirectoryFilterDots\key().
|
inherited |
Definition at line 50 of file keyfilter.inc.
References KeyFilter\$regex.
| IniGroups::key | ( | ) |
|
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.
1.8.5