W3cubDocs

/Symfony 3.0

Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator

abstract class MultiplePcreFilterIterator extends FilterIterator

MultiplePcreFilterIterator filters files using patterns (regexps, globs or strings).

Methods

rewind()

This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.

from FilterIterator
__construct(Iterator $iterator, array $matchPatterns, array $noMatchPatterns)

Constructor.

Details

public rewind()

This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.

See also

FilterIterator::rewind()

public __construct(Iterator $iterator, array $matchPatterns, array $noMatchPatterns)

Constructor.

Parameters

Iterator $iterator The Iterator to filter
array $matchPatterns An array of patterns that need to match
array $noMatchPatterns An array of patterns that need to not match

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Finder/Iterator/MultiplePcreFilterIterator.html