TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
FilecontentFilterIterator Class Reference
Inheritance diagram for FilecontentFilterIterator:
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

FilecontentFilterIterator filters files by their contents using patterns (regexps or strings).

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 FilecontentFilterIterator.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 FilecontentFilterIterator.php.

toRegex (   $str)
protected

Converts string to regexp if necessary.

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

Definition at line 72 of file FilecontentFilterIterator.php.

References MultiplePcreFilterIterator\isRegex().