Provides {@link tool_policy\output\user_agreement} class.
Copyright: | 2018 Marina Glancy |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 345 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
user_agreement:: (3 methods):
__construct()
export_for_template()
export_for_download()
Class: user_agreement - X-Ref
List of users and their acceptances__construct($userid, array $accepted, array $declined, moodle_url $pageurl, $versions, $onbehalf = false,$canaccept = null, $canrevoke = null) X-Ref |
user_agreement constructor param: int $userid param: array $accepted list of ids of accepted versions param: array $declined list of ids of declined versions param: moodle_url $pageurl param: array $versions list of versions (id=>name) param: bool $onbehalf whether at least one version was accepted by somebody else on behalf of the user param: bool $canaccept does the current user have permission to accept/decline the policy on behalf of user $userid param: bool $canrevoke does the current user have permission to revoke the policy on behalf of user $userid |
export_for_template(\renderer_base $output) X-Ref |
Export data to be rendered. return: stdClass param: renderer_base $output |
export_for_download() X-Ref |
Describe the status with a plain text for downloading purposes. return: string |