See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 401] [Versions 401 and 402] [Versions 401 and 403]
Contains class core_user\output\user_roles_editable
Copyright: | 2017 Damyon Wiese |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 245 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
user_roles_editable:: (3 methods):
__construct()
export_for_template()
update()
Class: user_roles_editable - X-Ref
Class to display list of user roles.__construct($course, $context, $user, $courseroles, $assignableroles, $profileroles, $userroles, $viewableroles = null) X-Ref |
Constructor. param: \stdClass $course The current course param: \context $context The course context param: \stdClass $user The current user param: \stdClass[] $courseroles The list of course roles. param: \stdClass[] $assignableroles The list of assignable roles in this course. param: \stdClass[] $profileroles The list of roles that should be visible in a users profile. param: \stdClass[] $userroles The list of user roles. |
export_for_template(\renderer_base $output) X-Ref |
Export this data so it can be used as the context for a mustache template. param: \renderer_base $output return: array |
update($itemid, $newvalue) X-Ref |
Updates the value in database and returns itself, called from inplace_editable callback param: int $itemid param: mixed $newvalue return: \self |