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.

(no description)

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

Defines 1 class

task_logs:: (6 methods):
  initialise()
  can_view()
  get_name()
  add_columns()
  add_filters()
  add_actions()


Class: task_logs  - X-Ref

Task logs system report class implementation

initialise()   X-Ref
Initialise report, we need to set the main table, load our entities and set columns/filters


can_view()   X-Ref
Validates access to view this report

return: bool

get_name()   X-Ref
Get the visible name of the report

return: string

add_columns()   X-Ref
Adds the columns we want to display in the report

They are all provided by the entities we previously added in the {@see initialise} method, referencing each by their
unique identifier

add_filters()   X-Ref
Adds the filters we want to display in the report

They are all provided by the entities we previously added in the {@see initialise} method, referencing each by their
unique identifier

add_actions()   X-Ref
Add the system report actions. An extra column will be appended to each row, containing all actions added here

Note the use of ":id" placeholder which will be substituted according to actual values in the row