MDL-32662 Added new groupings methods to services file
authorJuan Leyva <juanleyvadelgado@gmail.com>
Mon, 30 Apr 2012 15:00:03 +0000 (17:00 +0200)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 10 May 2012 09:41:03 +0000 (11:41 +0200)
lib/db/services.php

index 476b4bb..e943e1d 100644 (file)
@@ -163,6 +163,62 @@ $functions = array(
         '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(