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.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

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

Defines 1 class

base:: (7 methods):
  __construct()
  show()
  display()
  display_header()
  get_title()
  get_explanatory_description()
  log()


Class: base  - X-Ref

Admin tool presets main controller class.

__construct()   X-Ref
Loads common class attributes.


show()   X-Ref
Method to list the presets available on the system

It allows users to access the different preset
actions (preview, load, download, delete and rollback)

display()   X-Ref
Main display method

Prints the block header and the common block outputs, the
selected action outputs, his form and the footer

$outputs value depends on $mode and $action selected

display_header()   X-Ref
Displays the header


get_title()   X-Ref
Get page title for this action.

return: string The page title to display into the page.

get_explanatory_description()   X-Ref
Get explanatory description to be displayed below the heading. It's optional and might change depending on the
action and the mode.

return: string|null The explanatory description for the current action and mode.

log()   X-Ref
Trigger an event based on the current action.

return: void