Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Classes | |
class | core_enrol_external |
Enrol external functions. More... | |
class | core_role_external |
Role external functions. More... | |
Functions | |
static | get_course_enrolment_methods ($courseid) |
Get list of active course enrolment methods for current user. | |
static | get_course_enrolment_methods_parameters () |
Returns description of get_course_enrolment_methods() parameters. | |
static | get_course_enrolment_methods_returns () |
Returns description of get_course_enrolment_methods() result value. | |
static | get_enrolled_users ($courseid, $options=[]) |
Get course participants details. | |
static | get_enrolled_users_parameters () |
Returns description of method parameters. | |
static | get_enrolled_users_returns () |
Returns description of method result value. | |
static | get_potential_users_returns () |
Returns description of method result value. | |
static | search_users (int $courseid, string $search, bool $searchanywhere, int $page, int $perpage, ?int $contextid=null) |
Search course participants. | |
static | search_users_parameters () |
Returns description of method parameters. | |
static | search_users_returns () |
Returns description of method result value. | |
static | submit_user_enrolment_form ($formdata) |
External function that handles the user enrolment form submission. | |
static | submit_user_enrolment_form_parameters () |
Returns description of submit_user_enrolment_form parameters. | |
static | submit_user_enrolment_form_returns () |
Returns description of submit_user_enrolment_form() result value. | |
static | unenrol_user_enrolment ($ueid) |
External function that unenrols a given user enrolment. | |
static | unenrol_user_enrolment_parameters () |
Returns description of unenrol_user_enrolment() parameters. | |
static | unenrol_user_enrolment_returns () |
Returns description of unenrol_user_enrolment() result value. | |
|
static |
Get list of active course enrolment methods for current user.
int | $courseid |
array | of course enrolment methods |
moodle_exception |
|
static |
Returns description of get_course_enrolment_methods() parameters.
external_function_parameters |
|
static |
Returns description of get_course_enrolment_methods() result value.
core_external\external_description |
|
static |
Get course participants details.
int | $courseid | course id |
array | $options | options { 'name' => option name 'value' => option value } |
array | An array of users |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Search course participants.
int | $courseid | Course id |
string | $search | The query |
bool | $searchanywhere | Match anywhere in the string |
int | $page | Page number |
int | $perpage | Max per page |
?int | $contextid | Context ID we are in - we might use search on activity level and its group mode can be different from course group mode. |
array | An array of users |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
external_multiple_structure |
|
static |
External function that handles the user enrolment form submission.
string | $formdata | The user enrolment form data in s URI encoded param string |
array | An array consisting of the processing result and error flag, if available |
|
static |
Returns description of submit_user_enrolment_form parameters.
external_function_parameters |
|
static |
Returns description of submit_user_enrolment_form() result value.
core_external\external_description |
|
static |
External function that unenrols a given user enrolment.
int | $ueid | The user enrolment ID. |
array | An array consisting of the processing result, errors. |
|
static |
Returns description of unenrol_user_enrolment() parameters.
external_function_parameters |
|
static |
Returns description of unenrol_user_enrolment() result value.
core_external\external_description |