Symfony\Component\Finder\Iterator\FileTypeFilterIterator
FileTypeFilterIterator only keeps files, directories, or both.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FileTypeFilterIterator
extends FilterIterator
{
- // constants
- const ONLY_FILES = 1;
- const ONLY_DIRECTORIES = 2;
- // members
- private $mode;
- // 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
Constants
Name | Value |
---|---|
ONLY_FILES | 1 |
ONLY_DIRECTORIES | 2 |
Members
private
- $mode
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