Iterator\DepthRangeFilterIterator (Component\Finder)
Symfony\Component\Finder\Iterator\DepthRangeFilterIterator
class DepthRangeFilterIterator extends FilterIterator
DepthRangeFilterIterator limits the directory depth.
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(RecursiveIteratorIterator $iterator, int $minDepth, int $maxDepth = PHP_INT_MAX) Constructor. | ||
bool | accept() Filters the iterator values. |
Details
public rewind()
This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.
public __construct(RecursiveIteratorIterator $iterator, int $minDepth, int $maxDepth = PHP_INT_MAX)
Constructor.
public bool accept()
Filters the iterator values.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.html