|
static | execute (int $courseid, ?int $cmid=null) |
| Given a course ID find the existing user groups and map some fields to the returned array of group objects.
|
|
static | execute_parameters () |
| Returns description of method parameters.
|
|
static | execute_returns () |
| Returns description of what the group search for the widget should return.
|
|
static | group_description () |
| Create group return value description.
|
|
◆ execute()
static core_group\external\get_groups_for_selector::execute |
( |
int | $courseid, |
|
|
?int | $cmid = null ) |
|
static |
Given a course ID find the existing user groups and map some fields to the returned array of group objects.
If a course module ID is provided, this function will return only the available groups within the given course module, adhering to the set group mode for that context. All validation checks will be performed within this specific context.
- Parameters
-
int | $courseid | |
int | null | $cmid | The course module ID (optional). |
- Return values
-
array | Groups and warnings to pass back to the calling widget. |
◆ execute_parameters()
static core_group\external\get_groups_for_selector::execute_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Return values
-
external_function_parameters | |
◆ execute_returns()
static core_group\external\get_groups_for_selector::execute_returns |
( |
| ) |
|
|
static |
Returns description of what the group search for the widget should return.
- Return values
-
external_single_structure | |
◆ group_description()
static core_group\external\get_groups_for_selector::group_description |
( |
| ) |
|
|
static |
Create group return value description.
- Return values
-
The documentation for this class was generated from the following file:
- group/classes/external/get_groups_for_selector.php