Symfony\Component\Finder\Iterator\FilecontentFilterIterator
FilecontentFilterIterator filters files by their contents using patterns (regexps or strings).
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FilecontentFilterIterator
extends MultiplePcreFilterIterator
{
- // Inherited members from MultiplePcreFilterIterator
- protected $matchRegexps;
- protected $noMatchRegexps;
- // Inherited methods from MultiplePcreFilterIterator
- public void __construct()
- protected Boolean isRegex()
- protected abstract string toRegex()
- // Inherited methods from FilterIterator
- public void rewind()
- // Inherited methods from FilterIterator
- public bool accept()
- public void __construct()
- public mixed current()
- public Iterator getInnerIterator()
- public mixed key()
- public void next()
- public void rewind()
- public bool valid()
Hierarchy
Members
protected
- $matchRegexps
- $noMatchRegexps
Methods
protected
- toRegex() — Converts string to regexp if necessary.
public
- accept() — Filters the iterator values.
Inherited from Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator
protected
Inherited from Symfony\Component\Finder\Iterator\FilterIterator
public
- rewind() — This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.
Inherited from FilterIterator
public
- accept() — Check whether the current element of the iterator is acceptable
- current() — Get the current element value
- getInnerIterator() — Get the inner iterator
- key() — Get the current key
- next() — Move the iterator forward
- rewind() — Rewind the iterator
- valid() — Check whether the current element is valid