DateRangeFilterIterator

class DateRangeFilterIterator extends FilterIterator

DateRangeFilterIterator filters out files that are not in the given date range (last modified dates).

Methods

__construct(Iterator $iterator, array $comparators)
bool accept()

Filters the iterator values.

Details

__construct(Iterator $iterator, array $comparators)

Parameters

Iterator $iterator The Iterator to filter
array $comparators An array of DateComparator instances

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.
http://api.symfony.com/4.0/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.html