Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
tool_policy\output\page_nopermission Class Reference

Represents a page for showing the error messages. More...

Inheritance diagram for tool_policy\output\page_nopermission:
renderable templatable

Public Member Functions

 __construct (array $versionids, $behalfid)
 Prepare the page for rendering.
 
 export_for_template (renderer_base $output)
 Export the page data for the mustache template.
 

Protected Member Functions

 prepare_global_page_access ()
 Sets up the global $PAGE and performs the access checks.
 

Protected Attributes

int $behalfid = null
 User id who wants to view this page.
 
object $behalfuser = null
 User who wants to accept this page.
 
bool $haspermissionagreedocs = true
 True if user has permission to accept policy documents; false otherwise.
 
array $policies = null
 $policies List of public policies objects.
 

Detailed Description

Represents a page for showing the error messages.

This is used when a user has no permission to agree to policies or accept policies on behalf of defined behalfid.

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

Constructor & Destructor Documentation

◆ __construct()

tool_policy\output\page_nopermission::__construct ( array $versionids,
$behalfid )

Prepare the page for rendering.

Parameters
array$versionidsint[] List of policy version ids that were checked.
int$behalfidThe userid to consent policies as (such as child's id).

Member Function Documentation

◆ export_for_template()

tool_policy\output\page_nopermission::export_for_template ( renderer_base $output)

Export the page data for the mustache template.

Parameters
renderer_base$outputrenderer to be used to render the page elements.
Return values
stdClass

Implements templatable.


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