Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Search area for received messages.

Copyright: 2016 Devang Gaur
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 106 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

message_received:: (3 methods):
  get_document_recordset()
  get_document()
  check_access()


Class: message_received  - X-Ref

Search area for received messages.

get_document_recordset($modifiedfrom = 0, \context $context = null)   X-Ref
Returns a recordset with the messages for indexing.

param: int $modifiedfrom
param: \context|null $context Optional context to restrict scope of returned results
return: moodle_recordset|null Recordset (or null if no results)

get_document($record, $options = array()   X-Ref
Returns the document associated with this message record.

param: stdClass $record
param: array    $options
return: \core_search\document

check_access($id)   X-Ref
Whether the user can access the document or not.

param: int $id The message instance id.
return: int