Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Search area for sent messages.

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

Defines 1 class

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


Class: message_sent  - X-Ref

Search area for sent 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