DepthRangeFilterIterator
class DepthRangeFilterIterator extends FilterIterator
DepthRangeFilterIterator ограничивает глубину каталога.
Методы
| __construct(RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = PHP_INT_MAX) | ||
| bool | accept() Фильтрует значения итератора. |
Подробности
__construct(RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = PHP_INT_MAX)
Параметры
| RecursiveIteratorIterator | $iterator | Итератор для фильтрации |
| int | $minDepth | Минимальная глубина |
| int | $maxDepth | Максимальная глубина |
bool accept()
Фильтрует значения итератора.
Возвращаемое значение
| bool | true, если значение следует сохранить, иначе false |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.html