|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __call ($func, $params) | |
| __construct (RecursiveIterator $it, $regex, $mode=0, $flags=0, $preg_flags=0) | |
| accept () | |
| current () | |
| getChildren () | |
| getFlags () | |
| getInnerIterator () | |
| getMode () | |
| getPregFlags () | |
| getRegex () | |
| hasChildren () | |
| key () | |
| next () | |
| rewind () | |
| setFlags ($flags) | |
| setMode ($mode) | |
| setPregFlags ($preg_flags) | |
| valid () | |
Public Attributes | |
| const | ALL_MATCHES = 2 |
| const | GET_MATCH = 1 |
| const | MATCH = 0 |
| const | REPLACE = 4 |
| const | SPLIT = 3 |
| const | USE_KEY = 0x00000001 |
Protected Member Functions | |
| __clone () | |
| fetch () | |
Private Attributes | |
| $ref | |
Recursive regular expression filter for iterators.
This filter iterator assumes that the inner iterator
Definition at line 20 of file recursiveregexiterator.inc.
| RecursiveRegexIterator::__construct | ( | RecursiveIterator | $it, |
| $regex, | |||
$mode = 0, |
|||
$flags = 0, |
|||
$preg_flags = 0 |
|||
| ) |
Constructs a regular expression filter around an iterator whose elemnts or keys are strings.
| it | inner iterator |
| regex | the regular expression to match |
| mode | operation mode (one of self::MATCH, self::GET_MATCH, self::ALL_MATCHES, self::SPLIT) |
| flags | special flags (self::USE_KEY) |
| preg_flags | global PREG_* flags, see preg_match(), preg_match_all(), preg_split() |
Definition at line 34 of file recursiveregexiterator.inc.
References RegexIterator\$flags, RegexIterator\$mode, RegexIterator\$preg_flags, and RegexIterator\$regex.
|
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 |
Match current or key against regular expression using mode, flags and preg_flags.
Definition at line 68 of file regexiterator.inc.
References RegexIterator\current(), and RegexIterator\key().

|
inherited |
Implements Iterator.
Definition at line 115 of file regexiterator.inc.
References RegexIterator\$current.
Referenced by RegexIterator\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().

| RecursiveRegexIterator::getChildren | ( | ) |
Implements RecursiveIterator.
Definition at line 49 of file recursiveregexiterator.inc.
References FilterIterator\getInnerIterator().

|
inherited |
Definition at line 136 of file regexiterator.inc.
References RegexIterator\$flags.
|
inherited |
Implements OuterIterator.
Definition at line 111 of file filteriterator.inc.
References FilterIterator\$it.
Referenced by SearchIterator\__call(), DirectoryFilterDots\accept(), KeyFilter\accept(), getChildren(), RecursiveFilterIterator\getChildren(), hasChildren(), RecursiveFilterIterator\hasChildren(), and DirectoryFilterDots\key().
|
inherited |
Definition at line 122 of file regexiterator.inc.
References RegexIterator\$mode.
|
inherited |
Definition at line 150 of file regexiterator.inc.
References RegexIterator\$preg_flags.
|
inherited |
Definition at line 164 of file regexiterator.inc.
References RegexIterator\$regex.
| RecursiveRegexIterator::hasChildren | ( | ) |
Implements RecursiveIterator.
Definition at line 40 of file recursiveregexiterator.inc.
References FilterIterator\getInnerIterator().

|
inherited |
Implements Iterator.
Definition at line 108 of file regexiterator.inc.
References RegexIterator\$key.
Referenced by RegexIterator\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 |
| flags | new operaion flags |
Definition at line 143 of file regexiterator.inc.
References RegexIterator\$flags.
|
inherited |
| mode | new operaion mode |
Definition at line 129 of file regexiterator.inc.
References RegexIterator\$mode.
|
inherited |
| preg_flags | new PREG flags |
Definition at line 157 of file regexiterator.inc.
References RegexIterator\$preg_flags.
|
inherited |
Implements Iterator.
Definition at line 83 of file filteriterator.inc.
|
private |
Definition at line 58 of file recursiveregexiterator.inc.
|
inherited |
Mode: Return all matches (if any)
Definition at line 27 of file regexiterator.inc.
|
inherited |
Mode: Return the first matche (if any)
Definition at line 26 of file regexiterator.inc.
|
inherited |
Mode: Executed a plain match only.
Definition at line 25 of file regexiterator.inc.
|
inherited |
Mode: Replace the input key or current.
Definition at line 29 of file regexiterator.inc.
|
inherited |
Mode: Return the split values (if any)
Definition at line 28 of file regexiterator.inc.
|
inherited |
If present in $flags the key is used rather then the current value.
Definition at line 22 of file regexiterator.inc.
1.8.5