Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Public Member Functions | |
__construct () | |
Loads common class attributes. | |
display () | |
Main display method. | |
log () | |
Trigger an event based on the current action. | |
show () | |
Method to list the presets available on the system. | |
Protected Member Functions | |
display_header () | |
Displays the header. | |
get_explanatory_description () | |
Get explanatory description to be displayed below the heading. | |
get_title () | |
Get page title for this action. | |
Protected Attributes | |
string | $action |
The main action (delete, export, import, load...). | |
int | $id |
Admin preset identifier. | |
manager | $manager |
The manager helper class instance. | |
string | $mode |
The mode (show, execute...). | |
moodleform | $moodleform |
The moodle form to display in the page. | |
int | $outputs |
The output content to display in the page. | |
Static Protected Attributes | |
static array | $eventsactionsmap |
Array map for the events. | |
tool_admin_presets\local\action\base::display | ( | ) |
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
|
protected |
Get explanatory description to be displayed below the heading.
It's optional and might change depending on the action and the mode.
string|null | The explanatory description for the current action and mode. |
Reimplemented in tool_admin_presets\local\action\export, tool_admin_presets\local\action\import, tool_admin_presets\local\action\load, and tool_admin_presets\local\action\rollback.
|
protected |
Get page title for this action.
string | The page title to display into the page. |
Reimplemented in tool_admin_presets\local\action\rollback.
tool_admin_presets\local\action\base::log | ( | ) |
Trigger an event based on the current action.
void |
tool_admin_presets\local\action\base::show | ( | ) |
Method to list the presets available on the system.
It allows users to access the different preset actions (preview, load, download, delete and rollback)
Reimplemented in tool_admin_presets\local\action\delete, tool_admin_presets\local\action\export, tool_admin_presets\local\action\import, tool_admin_presets\local\action\load, and tool_admin_presets\local\action\rollback.
|
staticprotected |
Array map for the events.