[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
This file contains helper classes for testing the web service and external files.
Copyright: | 2012 Jerome Mouneyrac |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 101 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 47 times |
Includes or requires: | 0 files |
assignUserCapability($capability, $contextid, $roleid = null) X-Ref |
Assign a capability to $USER The function creates a student $USER if $USER->id is empty param: string $capability capability name param: int $contextid param: int $roleid return: int the role id - mainly returned for creation, so calling function can reuse it |
unassignUserCapability($capability, $contextid = null, $roleid = null, $courseid = null, $enrol = 'manual') X-Ref |
Unassign a capability to $USER. param: string $capability capability name. param: int $contextid set the context id if you used assignUserCapability. param: int $roleid set the role id if you used assignUserCapability. param: int $courseid set the course id if you used getDataGenerator->enrol_users. param: string $enrol set the enrol plugin name if you used getDataGenerator->enrol_users with a different plugin than 'manual'. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |