Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

File Size: 227 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

schedule:: (7 methods):
  define_properties()
  validate_reportid()
  get_report()
  get_formatted_name()
  after_create()
  after_update()
  after_delete()


Class: schedule  - X-Ref

Persistent class to represent a report schedule

define_properties()   X-Ref
Return the definition of the properties of this model.

return: array

validate_reportid(int $reportid)   X-Ref
Validate reportid property

param: int $reportid
return: bool|lang_string

get_report()   X-Ref
Return the report this schedule belongs to

return: report

get_formatted_name(?context $context = null)   X-Ref
Return formatted schedule name

param: context|null $context If the context of the report is already known, it should be passed here
return: string

after_create()   X-Ref
Hook to execute after creation


after_update($result)   X-Ref
Hook to execute after update

param: bool $result

after_delete($result)   X-Ref
Hook to execute after deletion

param: bool $result