Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
tool_dataprivacy\page_helper Class Reference

Page helper. More...

Static Public Member Functions

static setup (moodle_url $url, $title, $attachtoparentnode='', $requiredcapability='tool/dataprivacy:managedataregistry')
 Sets up $PAGE for data privacy admin pages. More...
 

Detailed Description

Page helper.

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

Member Function Documentation

◆ setup()

static tool_dataprivacy\page_helper::setup ( moodle_url  $url,
  $title,
  $attachtoparentnode = '',
  $requiredcapability = 'tool/dataprivacy:managedataregistry' 
)
static

Sets up $PAGE for data privacy admin pages.

Parameters
moodle_url$urlThe page URL.
string$titleThe page's title.
string$attachtoparentnodeThe parent navigation node where this page can be accessed from.
string$requiredcapabilityThe required capability to view this page.

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