mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-12886 updating groups external API
This commit is contained in:
parent
c29cca3023
commit
8c772ad78f
1 changed files with 21 additions and 2 deletions
|
@ -80,7 +80,17 @@ class moodle_group_external extends external_api {
|
|||
}
|
||||
|
||||
public static function get_groups_parameters() {
|
||||
//TODO
|
||||
return new external_function_parameters(
|
||||
array(
|
||||
'groups' => new external_multiple_structure(
|
||||
new external_single_structure(
|
||||
array(
|
||||
'groupid' => new external_param(PARAM_INT, 'Group ID')
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -112,7 +122,16 @@ class moodle_group_external extends external_api {
|
|||
}
|
||||
|
||||
public static function get_groups_returns() {
|
||||
//TODO
|
||||
return new external_multiple_structure(
|
||||
new external_single_structure(
|
||||
array(
|
||||
'id' => new external_param(PARAM_INT, 'some group id'),
|
||||
'name' => new external_param(PARAM_TEXT, 'multilang compatible name, course unique'),
|
||||
'description' => new external_param(PARAM_RAW, 'just some text'),
|
||||
'enrolmentkey' => new external_param(PARAM_RAW, 'group enrol secret phrase')
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public static function delete_groups_parameters() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue