FileTypeFilterIterator
FileTypeFilterIterator
class FileTypeFilterIterator extends FilterIterator
FileTypeFilterIterator only keeps files, directories, or both.
Constants
ONLY_FILES | |
ONLY_DIRECTORIES |
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, int $mode) Constructor. | ||
bool | accept() Filters the iterator values. |
Details
rewind()
This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.
__construct(Iterator $iterator, int $mode)
Constructor.
bool accept()
Filters the iterator values.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Finder/Iterator/FileTypeFilterIterator.html