Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Iterator for skipping search recordset documents that are in the future. More...
Public Member Functions | |
__construct (\Iterator $parent, $cutoff=0) | |
Constructor. More... | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
Protected Attributes | |
mixed | $currentdoc |
Current value of iterator. | |
int | $cutoff |
Cutoff time; anything later than this will cause the iterator to stop. | |
bool | $gotcurrent |
True if current value is available. | |
Iterator | $parent |
Parent iterator. | |
Iterator for skipping search recordset documents that are in the future.
This iterator stops iterating if it receives a document that was modified later than the specified cut-off time (usually current time).
This iterator assumes that its parent iterator returns documents in modified order (which is required to be the case for search indexing). This means we will stop retrieving data from the recordset
core_search\skip_future_documents_iterator::__construct | ( | \Iterator | $parent, |
$cutoff = 0 |
|||
) |
Constructor.
Iterator | $parent | Parent iterator, must return search documents in modified order |
int | $cutoff | Cut-off time, default is current time |