ExcludeDirectoryFilterIterator
class ExcludeDirectoryFilterIterator extends FilterIterator implements RecursiveIterator
ExcludeDirectoryFilterIterator filters out 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, array $directories) Constructor. | ||
| bool | accept() Filters the iterator values. | |
| hasChildren() | ||
| getChildren() |
Details
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() |
__construct(Iterator $iterator, array $directories)
Constructor.
Parameters
| Iterator | $iterator | The Iterator to filter |
| array | $directories | An array of directories to exclude |
bool accept()
Filters the iterator values.
Return Value
| bool | True if the value should be kept, false otherwise |
hasChildren()
getChildren()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.html