Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

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

Defines 1 class

load:: (5 methods):
  execute()
  show()
  preview()
  display_preset()
  get_explanatory_description()


Class: load  - X-Ref

This class extends base class and handles load function.

execute()   X-Ref
Executes the settings load into the system


show()   X-Ref
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.

preview()   X-Ref
Displays a preset information (name, description, settings different from the current configuration...).


display_preset(bool $displayform = true, bool $raiseexception = true)   X-Ref
Method to prepare the information to preview/load the preset.

param: bool $displayform Whether the form should be displayed in the page or not.
param: bool $raiseexception Whether the exception should be raised or not when the preset doesn't exist. When it's set

get_explanatory_description()   X-Ref
No description