List of users and their acceptances.
More...
|
| __construct ($userid, array $accepted, array $declined, moodle_url $pageurl, $versions, $onbehalf=false, $canaccept=null, $canrevoke=null) |
| user_agreement constructor
|
|
| export_for_download () |
| Describe the status with a plain text for downloading purposes.
|
|
| export_for_template (\renderer_base $output) |
| Export data to be rendered.
|
|
|
array | $accepted |
|
bool | $canaccept |
|
bool | $canrevoke |
|
array | $declined |
|
bool | $onbehalf |
|
moodle_url | $pageurl |
|
int | $userid |
|
array | $versions |
|
List of users and their acceptances.
- Copyright
- 2018 Marina Glancy
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_policy\output\user_agreement::__construct |
( |
| $userid, |
|
|
array | $accepted, |
|
|
array | $declined, |
|
|
moodle_url | $pageurl, |
|
|
| $versions, |
|
|
| $onbehalf = false, |
|
|
| $canaccept = null, |
|
|
| $canrevoke = null ) |
user_agreement constructor
- Parameters
-
int | $userid | |
array | $accepted | list of ids of accepted versions |
array | $declined | list of ids of declined versions |
moodle_url | $pageurl | |
array | $versions | list of versions (id=>name) |
bool | $onbehalf | whether at least one version was accepted by somebody else on behalf of the user |
bool | $canaccept | does the current user have permission to accept/decline the policy on behalf of user $userid |
bool | $canrevoke | does the current user have permission to revoke the policy on behalf of user $userid |
◆ export_for_download()
tool_policy\output\user_agreement::export_for_download |
( |
| ) |
|
Describe the status with a plain text for downloading purposes.
- Return values
-
◆ export_for_template()
tool_policy\output\user_agreement::export_for_template |
( |
\renderer_base | $output | ) |
|
Export data to be rendered.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/policy/classes/output/user_agreement.php