Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
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: