Symfony\Component\Finder\Iterator\CustomFilterIterator
CustomFilterIterator filters files by applying anonymous functions.
The anonymous function receives a \SplFileInfo and must return false
to remove files.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class CustomFilterIterator
extends FilterIterator
{
- // members
- private array $filters;
- // methods
- public void __construct()
- public Boolean accept()
- // 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
private
- $filters
Methods
public
- __construct() — Constructor.
- accept() — Filters the iterator values.
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