public function get_recordset_by_timestamp($modifiedfrom = 0) {
        $result = $this->get_document_recordset($modifiedfrom);
        if ($result === false) {
            throw new \coding_exception(
                    'Search area must implement get_document_recordset or get_recordset_by_timestamp');
        }
        return $result;
    }
public function get_recordset_by_timestamp($modifiedfrom = 0) {
        $result = $this->get_document_recordset($modifiedfrom);
        if ($result === false) {
            throw new \coding_exception(
                    'Search area must implement get_document_recordset or get_recordset_by_timestamp');
        }
        return $result;
    }
public function get_recordset_by_timestamp ( $ modifiedfrom = 0 ) { $ result = $ this -> get_document_recordset ( $ modifiedfrom ) ; if ( $ result === false ) { throw new \ coding_exception ( 'Search area must implement get_document_recordset or get_recordset_by_timestamp' ) ; } return $ result ; }
Returns a recordset ordered by modification date ASC.

Each record can include any data self::get_document might need but it must:
- Include an 'id' field: Unique identifier (in this area's scope) of a document to index in the search engine
If the indexed content field can contain embedded files, the 'id' value should match the filearea itemid.
- Only return data modified since $modifiedfrom, including $modifiedform to prevent
some records from not being indexed (e.g. your-timemodified-fieldname >= $modifiedfrom)
- Order the returned data by time modified in ascending order, as \core_search::manager will need to store the modified time
of the last indexed document.

Since Moodle 3.4, subclasses should instead implement get_document_recordset, which has
an additional context parameter. This function continues to work for implementations which
haven't been updated, or where the context parameter is not required.

@param int $modifiedfrom
@return \moodle_recordset
Returns a recordset ordered by modification date ASC .