Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Public Member Functions | |
display () | |
Main display method. | |
execute () | |
Executes the settings load into the system. | |
log () | |
Trigger an event based on the current action. | |
preview () | |
Displays a preset information (name, description, settings different from the current configuration...). | |
show () | |
Displays the select preset settings to select what to import. | |
Protected Member Functions | |
display_header () | |
Displays the header. | |
display_preset (bool $displayform=true, bool $raiseexception=true) | |
Method to prepare the information to preview/load the preset. | |
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. | |
|
inherited |
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 |
Method to prepare the information to preview/load the preset.
bool | $displayform | Whether the form should be displayed in the page or not. |
bool | $raiseexception | Whether the exception should be raised or not when the preset doesn't exist. When it's set to false, a message is displayed, instead of raising the exception. |
|
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 from tool_admin_presets\local\action\base.
|
protectedinherited |
Get page title for this action.
string | The page title to display into the page. |
Reimplemented in tool_admin_presets\local\action\rollback.
|
inherited |
Trigger an event based on the current action.
void |
tool_admin_presets\local\action\load::show | ( | ) |
Displays the select preset settings to select what to import.
Loads the preset data and displays a settings tree.
It checks the Moodle version and it only allows users to import the preset available settings.
Reimplemented from tool_admin_presets\local\action\base.
|
staticprotectedinherited |
Array map for the events.