Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Class containing data for the data registry defaults.

Copyright: 2018 Jun Pataleta
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 178 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

defaults_page:: (2 methods):
  __construct()
  export_for_template()


Class: defaults_page  - X-Ref

Class containing data for the data registry defaults.

__construct($mode, $category, $purpose, $otherdefaults = [], $canedit = false)   X-Ref
Construct this renderable.

param: int $mode The display mode.
param: int $category The default category for the given mode.
param: int $purpose The default purpose for the given mode.
param: stdClass[] $otherdefaults Other defaults for the given mode.
param: bool $canedit Whether editing is allowed.

export_for_template(renderer_base $output)   X-Ref
Export this data so it can be used as the context for a mustache template.

return: stdClass
param: renderer_base $output