Represents a page for showing the given policy document version.
More...
Represents a page for showing the given policy document version.
- Copyright
- 2018 Sara Arjona sara@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_policy\output\page_viewdoc::__construct |
( |
|
$policyid, |
|
|
|
$versionid, |
|
|
|
$returnurl, |
|
|
|
$behalfid, |
|
|
|
$manage, |
|
|
|
$numpolicy = 0 , |
|
|
|
$totalpolicies = 0 |
|
) |
| |
Prepare the page for rendering.
- Parameters
-
int | $policyid | The policy id for this page. |
int | $versionid | The version id to show. Empty tries to load the current one. |
string | $returnurl | URL of a page to continue after reading the policy text. |
int | $behalfid | The userid to view this policy version as (such as child's id). |
bool | $manage | View the policy as a part of the management UI. |
int | $numpolicy | Position of the current policy with respect to the total of policy docs to display. |
int | $totalpolicies | Total number of policy documents which the user has to agree to. |
◆ export_for_template()
tool_policy\output\page_viewdoc::export_for_template |
( |
renderer_base |
$output | ) |
|
Export the page data for the mustache template.
- Parameters
-
renderer_base | $output | renderer to be used to render the page elements. |
- Return values
-
Implements templatable.
◆ prepare_policy()
tool_policy\output\page_viewdoc::prepare_policy |
( |
|
$policyid, |
|
|
|
$versionid |
|
) |
| |
|
protected |
Loads the policy version to display on the page.
- Parameters
-
int | $policyid | The policy id for this page. |
int | $versionid | The version id to show. Empty tries to load the current one. |
The documentation for this class was generated from the following file: