DateRangeFilterIterator

class DateRangeFilterIterator extends FilterIterator

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

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 $comparators)

Constructor.

bool accept()

Filters the iterator values.

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 $comparators)

Constructor.

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
doc_Symfony
2016-10-28 06:13:07
Comments
Leave a Comment

Please login to continue.