Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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. More...
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template. More...
 

Protected Member Functions

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

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: