Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
tool_dataprivacy\output\defaults_page Class Reference

Class containing data for the data registry defaults. More...

Inheritance diagram for tool_dataprivacy\output\defaults_page:
renderable templatable

Public Member Functions

 __construct ($mode, $category, $purpose, $otherdefaults=[], $canedit=false)
 Construct this renderable. More...
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template. More...
 

Protected Attributes

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

Detailed Description

Class containing data for the data registry defaults.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

tool_dataprivacy\output\defaults_page::__construct (   $mode,
  $category,
  $purpose,
  $otherdefaults = [],
  $canedit = false 
)

Construct this renderable.

Parameters
int$modeThe display mode.
int$categoryThe default category for the given mode.
int$purposeThe default purpose for the given mode.
stdClass[]$otherdefaultsOther defaults for the given mode.
bool$caneditWhether editing is allowed.

Member Function Documentation

◆ export_for_template()

tool_dataprivacy\output\defaults_page::export_for_template ( renderer_base  $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
stdClass
Exceptions
coding_exception
moodle_exception

Implements templatable.


The documentation for this class was generated from the following file: