Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

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

Defines 1 class

audience:: (7 methods):
  define_properties()
  validate_reportid()
  after_create()
  after_update()
  after_delete()
  get_report()
  get_formatted_heading()


Class: audience  - X-Ref

Persistent class to represent a report audience

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

return: array

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

return: bool|lang_string
param: int $reportid

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

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

return: report

get_formatted_heading(?context $context = null)   X-Ref
Return formatted audience heading

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