Permalink
Browse files

MDL-32662 Added new groupings methods to services file

  • Loading branch information...
1 parent fb3f5d3 commit 7ce235909a442e60983a9a9059e89aa791d6615f @jleyva jleyva committed Apr 30, 2012
Showing with 56 additions and 0 deletions.
  1. +56 −0 lib/db/services.php
View
@@ -163,6 +163,62 @@
'capabilities'=> 'moodle/course:managegroups',
),
+ 'core_group_create_groupings' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'create_groupings',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Creates new groupings',
+ 'type' => 'write',
+ ),
+
+ 'core_group_update_groupings' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'update_groupings',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Updates existing groupings',
+ 'type' => 'write',
+ ),
+
+ 'core_group_get_groupings' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'get_groupings',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Returns groupings details.',
+ 'type' => 'read',
+ ),
+
+ 'core_group_get_course_groupings' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'get_course_groupings',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Returns all groupings in specified course.',
+ 'type' => 'read',
+ ),
+
+ 'core_group_delete_groupings' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'delete_groupings',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Deletes all specified groupings.',
+ 'type' => 'write',
+ ),
+
+ 'core_group_assign_grouping' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'assign_grouping',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Assing groups from groupings',
+ 'type' => 'write',
+ ),
+
+ 'core_group_unassign_grouping' => array(
+ 'classname' => 'core_group_external',
+ 'methodname' => 'unassign_grouping',
+ 'classpath' => 'group/externallib.php',
+ 'description' => 'Unassing groups from groupings',
+ 'type' => 'write',
+ ),
+
// === file related functions ===
'moodle_file_get_files' => array(

0 comments on commit 7ce2359

Please sign in to comment.