TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
PathFilterIterator Class Reference
Inheritance diagram for PathFilterIterator:
MultiplePcreFilterIterator FilterIterator

Public Member Functions

 accept ()
 
- Public Member Functions inherited from MultiplePcreFilterIterator
 __construct (\Iterator $iterator, array $matchPatterns, array $noMatchPatterns)
 
- Public Member Functions inherited from FilterIterator
 rewind ()
 

Protected Member Functions

 toRegex ($str)
 
- Protected Member Functions inherited from MultiplePcreFilterIterator
 isRegex ($str)
 
 toRegex ($str)
 

Additional Inherited Members

- Protected Attributes inherited from MultiplePcreFilterIterator
 $matchRegexps = array()
 
 $noMatchRegexps = array()
 

Detailed Description

PathFilterIterator filters files by path patterns (e.g. some/special/dir).

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Włodzimierz Gajda gajda.nosp@m.w@ga.nosp@m.jdaw..nosp@m.pl

Definition at line 20 of file PathFilterIterator.php.

Member Function Documentation

accept ( )

Filters the iterator values.

Returns
bool true if the value should be kept, false otherwise

Definition at line 27 of file PathFilterIterator.php.

References $filename.

toRegex (   $str)
protected

Converts strings to regexp.

PCRE patterns are left unchanged.

Default conversion: 'lorem/ipsum/dolor' ==> 'lorem\/ipsum\/dolor/'

Use only / as directory separator (on Windows also).

Parameters
string$strPattern: regexp or dirname.
Returns
string regexp corresponding to a given string or regexp

Definition at line 70 of file PathFilterIterator.php.

References MultiplePcreFilterIterator\isRegex().