Class Symfony\Component\Finder\Iterator\DateRangeFilterIterator

InheritanceSymfony\Component\Finder\Iterator\DateRangeFilterIterator » Symfony\Component\Finder\Iterator\FilterIterator » FilterIterator

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. Symfony\Component\Finder\Iterator\DateRangeFilterIterator
accept() Filters the iterator values. Symfony\Component\Finder\Iterator\DateRangeFilterIterator
rewind() This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases. Symfony\Component\Finder\Iterator\FilterIterator

Method Details

__construct() public method


public void __construct ( Iterator $iterator, array $comparators )
$iterator Iterator

The Iterator to filter

$comparators Symfony\Component\Finder\Comparator\DateComparator[]

An array of DateComparator instances

accept() public method

Filters the iterator values.

public bool accept ( )
return bool

True if the value should be kept, false otherwise