W3cubDocs

/Symfony 4.1

DepthRangeFilterIterator

class DepthRangeFilterIterator extends FilterIterator

DepthRangeFilterIterator limits the directory depth.

Methods

__construct(RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = PHP_INT_MAX)
bool accept()

Filters the iterator values.

Details

__construct(RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = PHP_INT_MAX)

Parameters

RecursiveIteratorIterator $iterator The Iterator to filter
int $minDepth The min depth
int $maxDepth The max depth

bool accept()

Filters the iterator values.

Return Value

bool true if the value should be kept, false otherwise

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.html