Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Static Public Member Functions | |
static | add_group_members ($members) |
Add group members. | |
static | add_group_members_parameters () |
Returns description of method parameters. | |
static | add_group_members_returns () |
Returns description of method result value. | |
static | assign_grouping ($assignments) |
Assign a group to a grouping. | |
static | assign_grouping_parameters () |
Returns description of method parameters. | |
static | assign_grouping_returns () |
Returns description of method result value. | |
static | create_groupings ($groupings) |
Create groupings. | |
static | create_groupings_parameters () |
Returns description of method parameters. | |
static | create_groupings_returns () |
Returns description of method result value. | |
static | create_groups ($groups) |
Create groups. | |
static | create_groups_parameters () |
Returns description of method parameters. | |
static | create_groups_returns () |
Returns description of method result value. | |
static | delete_group_members ($members) |
Delete group members. | |
static | delete_group_members_parameters () |
Returns description of method parameters. | |
static | delete_group_members_returns () |
Returns description of method result value. | |
static | delete_groupings ($groupingids) |
Delete groupings. | |
static | delete_groupings_parameters () |
Returns description of method parameters. | |
static | delete_groupings_returns () |
Returns description of method result value. | |
static | delete_groups ($groupids) |
Delete groups. | |
static | delete_groups_parameters () |
Returns description of method parameters. | |
static | delete_groups_returns () |
Returns description of method result value. | |
static | get_activity_allowed_groups ($cmid, $userid=0) |
Gets a list of groups that the user is allowed to access within the specified activity. | |
static | get_activity_allowed_groups_parameters () |
Returns description of method parameters. | |
static | get_activity_allowed_groups_returns () |
Returns description of method result value. | |
static | get_activity_groupmode ($cmid) |
Returns effective groupmode used in a given activity. | |
static | get_activity_groupmode_parameters () |
Returns description of method parameters. | |
static | get_activity_groupmode_returns () |
Returns description of method result value. | |
static | get_course_groupings ($courseid) |
Get all groupings in the specified course. | |
static | get_course_groupings_parameters () |
Returns description of method parameters. | |
static | get_course_groupings_returns () |
Returns description of method result value. | |
static | get_course_groups ($courseid) |
Get all groups in the specified course. | |
static | get_course_groups_parameters () |
Returns description of method parameters. | |
static | get_course_groups_returns () |
Returns description of method result value. | |
static | get_course_user_groups ($courseid=0, $userid=0, $groupingid=0) |
Get all groups in the specified course for the specified user. | |
static | get_course_user_groups_parameters () |
Returns description of method parameters. | |
static | get_course_user_groups_returns () |
Returns description of method result value. | |
static | get_group_members ($groupids) |
Return all members for a group. | |
static | get_group_members_parameters () |
Returns description of method parameters. | |
static | get_group_members_returns () |
Returns description of method result value. | |
static | get_groupings ($groupingids, $returngroups=false) |
Get groupings definition specified by ids. | |
static | get_groupings_parameters () |
Returns description of method parameters. | |
static | get_groupings_returns () |
Returns description of method result value. | |
static | get_groups ($groupids) |
Get groups definition specified by ids. | |
static | get_groups_parameters () |
Returns description of method parameters. | |
static | get_groups_returns () |
Returns description of method result value. | |
static | group_description () |
Create group return value description. | |
static | unassign_grouping ($unassignments) |
Unassign a group from a grouping. | |
static | unassign_grouping_parameters () |
Returns description of method parameters. | |
static | unassign_grouping_returns () |
Returns description of method result value. | |
static | update_groupings ($groupings) |
Update groupings. | |
static | update_groupings_parameters () |
Returns description of method parameters. | |
static | update_groupings_returns () |
Returns description of method result value. | |
static | update_groups ($groups) |
Update groups. | |
static | update_groups_parameters () |
Returns description of method parameters. | |
static | update_groups_returns () |
Returns description of method result value. | |
Static Protected Member Functions | |
static | build_custom_field_name (string $shortname) |
Builds a suitable name of a custom field for a custom field handler based on provided shortname. | |
static | build_custom_fields_parameters_structure () |
Builds a structure for custom fields parameters. | |
static | build_custom_fields_returns_structure () |
Builds a structure for custom fields returns. | |
static | validate_visibility (int $visibility) |
Validate visibility. | |
|
static |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
static |
Assign a group to a grouping.
array | $assignments | of arrays with keys groupid, groupingid |
void |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
staticprotected |
Builds a suitable name of a custom field for a custom field handler based on provided shortname.
string | $shortname | shortname to use. |
string |
|
staticprotected |
Builds a structure for custom fields parameters.
core_external\external_multiple_structure |
|
staticprotected |
Builds a structure for custom fields returns.
core_external\external_multiple_structure |
|
static |
Create groupings.
array | $groupings | array of grouping description arrays (with keys groupname and courseid) |
array | of newly created groupings |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Create groups.
array | $groups | array of group description arrays (with keys groupname and courseid) |
array | of newly created groups |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
static |
Delete groupings.
array | $groupingids | array of grouping ids |
void |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
static |
Gets a list of groups that the user is allowed to access within the specified activity.
moodle_exception |
int | $cmid | course module id |
int | $userid | id of user. |
array | of group objects (id, name, description, format) and possible warnings. |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description | A single structure containing groups and possible warnings. |
|
static |
Returns effective groupmode used in a given activity.
moodle_exception |
int | $cmid | course module id. |
array | containing the group mode and possible warnings. |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Get all groupings in the specified course.
int | $courseid | id of course |
array | of grouping objects (id, courseid, name, enrolmentkey) |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Get all groups in the specified course.
int | $courseid | id of course |
array | of group objects (id, courseid, name, enrolmentkey) |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Get all groups in the specified course for the specified user.
moodle_exception |
int | $courseid | id of course. |
int | $userid | id of user. |
int | $groupingid | optional returns only groups in the specified grouping. |
array | of group objects (id, name, description, format) and possible warnings. |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description | A single structure containing groups and possible warnings. |
|
static |
Return all members for a group.
array | $groupids | array of group ids |
array | with group id keys containing arrays of user ids |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Get groupings definition specified by ids.
array | $groupingids | arrays of grouping ids |
boolean | $returngroups | return the associated groups if true. The default is false. |
array | of grouping objects (id, courseid, name) |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Get groups definition specified by ids.
array | $groupids | arrays of group ids |
array | of group objects (id, courseid, name, enrolmentkey) |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Create group return value description.
external_single_structure | The group description |
|
static |
Unassign a group from a grouping.
array | $unassignments | of arrays with keys groupid, groupingid |
void |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
static |
Update groupings.
array | $groupings | array of grouping description arrays (with keys groupname and courseid) |
array | of newly updated groupings |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
staticprotected |
Validate visibility.
int | $visibility | Visibility string, must one of the visibility class constants. |
invalid_parameter_exception | if visibility is not an allowed value. |