Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Namespaces | |
namespace | core_enrol\privacy |
| |
Classes | |
class | behat_enrol |
Steps definitions for general enrolment actions. More... | |
class | behat_enrol_deprecated |
class | core_enrol\privacy\provider |
Privacy Subsystem for core_enrol implementing metadata and plugin providers. More... | |
class | core_enrol_external |
Enrol external functions. More... | |
class | core_enrol_renderer |
This is the core renderer. More... | |
class | core_role_external |
Role external functions. More... | |
class | course_enrolment_manager |
This class provides a targeted tied together means of interfacing the enrolment tasks together with a course. More... | |
class | course_enrolment_other_users_table |
Table used for other users. More... | |
class | course_enrolment_table |
Main course enrolment table. More... | |
class | course_enrolment_users_table |
Table control used for enrolled users. More... | |
class | enrol_ajax_exception |
class | enrol_bulk_enrolment_change_form |
A base class that can be used to easily construct a form for use with bulk operations. More... | |
class | enrol_bulk_enrolment_confirm_form |
A convenience class to allow the quick generation of a confirmation form for a bulk operation. More... | |
class | enrol_bulk_enrolment_operation |
This class is used to manage a bulk operations for enrolment plugins. More... | |
class | enrol_instance_edit_form |
Standard edit form shared by all enrol plugins. More... | |
class | enrol_user_button |
A button that is used to enrol users in a course. More... | |
class | enrol_user_enrolment_form |
class | enrol_users_addmember_form |
class | enrol_users_assign_form |
class | enrol_users_filter_form |
Form that lets users filter the enrolled user list. More... | |
class | user_enrolment_action |
User enrolment action. 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. | |
get_default_enrol_roles (context $context, $addroleid=null) | |
Create a role menu suitable for default role selection in enrol plugins. | |
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 |
get_default_enrol_roles | ( | context | $context, |
$addroleid = null ) |
Create a role menu suitable for default role selection in enrol plugins.
context | $context | |
int | $addroleid | current or default role - always added to list |
array | roleid=>localised role name |
|
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 |