Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tool_dataprivacy\output\purposes Class Reference

Class containing the purposes page renderable. More...

Inheritance diagram for tool_dataprivacy\output\purposes:
tool_dataprivacy\output\crud_element renderable templatable

Public Member Functions

 __construct ($purposes)
 Construct this renderable.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Protected Member Functions

 action_menu ($elementname, $exported, $persistent)
 Adds an action menu for the provided element.
 
 get_navigation ()
 Returns the top navigation buttons.
 

Protected Attributes

array $purposes = []
 $purposes All system purposes.
 

Detailed Description

Class containing the purposes page renderable.

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

Constructor & Destructor Documentation

◆ __construct()

tool_dataprivacy\output\purposes::__construct ( $purposes)

Construct this renderable.

Parameters
tool_dataprivacy\purpose[]$purposes

Member Function Documentation

◆ action_menu()

tool_dataprivacy\output\crud_element::action_menu ( $elementname,
$exported,
$persistent )
finalprotectedinherited

Adds an action menu for the provided element.

Parameters
string$elementname'purpose' or 'category'.
stdClass$exported
core\persistent$persistent
Return values
action_menu

◆ export_for_template()

tool_dataprivacy\output\purposes::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

Implements templatable.

◆ get_navigation()

tool_dataprivacy\output\crud_element::get_navigation ( )
finalprotectedinherited

Returns the top navigation buttons.

Return values
action_link[]

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