|
Moodle
2.2.1
http://www.collinsharper.com
|


Static Public Member Functions | |
| static | get_enrolled_users_parameters () |
| static | get_enrolled_users ($courseid, $withcapability=null, $groupid=null, $onlyactive=false) |
| static | get_enrolled_users_returns () |
| static | get_users_courses_parameters () |
| static | get_users_courses ($userid) |
| static | get_users_courses_returns () |
| static | role_assign_parameters () |
| static | role_assign ($assignments) |
| static | role_assign_returns () |
| static | role_unassign_parameters () |
| static | role_unassign ($unassignments) |
| static | role_unassign_returns () |
Deprecated enroll and role functions
Definition at line 446 of file externallib.php.
| static get_enrolled_users | ( | $ | courseid, |
| $ | withcapability = null, |
||
| $ | groupid = null, |
||
| $ | onlyactive = false |
||
| ) | [static] |
Get list of course participants.
| int | $courseid | |
| text | $withcapability | |
| int | $groupid | |
| bool | $onlyactive |
Definition at line 474 of file externallib.php.

| static get_enrolled_users_parameters | ( | ) | [static] |
Returns description of method parameters
Definition at line 454 of file externallib.php.
| static get_enrolled_users_returns | ( | ) | [static] |
Returns description of method result value
Definition at line 561 of file externallib.php.
| static get_users_courses | ( | $ | userid | ) | [static] |
Get list of courses user is enrolled in (only active enrolments are returned).
Please note the current user must be able to access the course, otherwise the course is not included.
| int | $userid |
Definition at line 595 of file externallib.php.
| static get_users_courses_parameters | ( | ) | [static] |
Returns description of method parameters
Definition at line 583 of file externallib.php.
| static get_users_courses_returns | ( | ) | [static] |
Returns description of method result value
Definition at line 604 of file externallib.php.
| static role_assign | ( | $ | assignments | ) | [static] |
Manual role assignments to users
| array | $assignment | An array of manual role assignment |
Definition at line 624 of file externallib.php.

| static role_assign_parameters | ( | ) | [static] |
Returns description of method parameters
Definition at line 614 of file externallib.php.

| static role_assign_returns | ( | ) | [static] |
Returns description of method result value
Definition at line 633 of file externallib.php.

| static role_unassign | ( | $ | unassignments | ) | [static] |
Unassign roles from users
| array | $unassignment | An array of unassignment |
Definition at line 653 of file externallib.php.

| static role_unassign_parameters | ( | ) | [static] |
Returns description of method parameters
Definition at line 643 of file externallib.php.

| static role_unassign_returns | ( | ) | [static] |
Returns description of method result value
Definition at line 662 of file externallib.php.
