Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Iterator for skipping search recordset documents that are in the future. More...
Public Member Functions | |
__construct (\Iterator $parent, $cutoff=0) | |
Constructor. | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
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 |