Class FilenameFilterIterator
FilenameFilterIterator filters files by patterns (a regexp, a glob, or a
string).
-
IteratorIterator
implements
Iterator,
Traversable,
OuterIterator
-
FilterIterator
-
Symfony\Component\Finder\Iterator\FilterIterator
-
Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator
-
Symfony\Component\Finder\Iterator\FilenameFilterIterator
Methods summary
public
Boolean
|
#
accept( )
Filters the iterator values.
Filters the iterator values.
Returns
Boolean true if the value should be kept, false otherwise
|
protected
string
|
#
toRegex( string $str )
Converts glob to regexp.
PCRE patterns are left unchanged. Glob strings are transformed with
Glob::toRegex().
Parameters
- $str
string $str Pattern: glob or regexp
Returns
string regexp corresponding to a given glob or regexp
|