MDL-12886 updating groups external API

This commit is contained in:
skodak 2009-10-01 21:53:58 +00:00
parent c29cca3023
commit 8c772ad78f

View file

@ -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() {