9a0df45a |
1 | <?php |
2 | |
3 | // This file is part of Moodle - http://moodle.org/ |
4 | // |
5 | // Moodle is free software: you can redistribute it and/or modify |
6 | // it under the terms of the GNU General Public License as published by |
7 | // the Free Software Foundation, either version 3 of the License, or |
8 | // (at your option) any later version. |
9 | // |
10 | // Moodle is distributed in the hope that it will be useful, |
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | // GNU General Public License for more details. |
14 | // |
15 | // You should have received a copy of the GNU General Public License |
16 | // along with Moodle. If not, see <http://www.gnu.org/licenses/>. |
17 | |
18 | /** |
19 | * Core external functions and service definitions. |
20 | * |
21 | * @package moodlecore |
22 | * @subpackage webservice |
23 | * @copyright 2009 Petr Skoda (http://skodak.org) |
24 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
25 | */ |
26 | |
27 | $functions = array( |
ef22c1b6 |
28 | |
29 | // === group related functions === |
f5072177 |
30 | |
9a0df45a |
31 | 'moodle_group_create_groups' => array( |
32 | 'classname' => 'moodle_group_external', |
33 | 'methodname' => 'create_groups', |
34 | 'classpath' => 'group/externallib.php', |
f5072177 |
35 | 'description' => 'Creates new groups.', |
36 | 'type' => 'write', |
9a0df45a |
37 | ), |
f5072177 |
38 | |
9a0df45a |
39 | 'moodle_group_get_groups' => array( |
40 | 'classname' => 'moodle_group_external', |
41 | 'methodname' => 'get_groups', |
42 | 'classpath' => 'group/externallib.php', |
cfb99b75 |
43 | 'description' => 'Returns group details.', |
f5072177 |
44 | 'type' => 'read', |
9a0df45a |
45 | ), |
cfb99b75 |
46 | /* |
9a0df45a |
47 | 'moodle_group_delete_groups' => array( |
48 | 'classname' => 'moodle_group_external', |
49 | 'methodname' => 'delete_groups', |
50 | 'classpath' => 'group/externallib.php', |
9a0df45a |
51 | ), |
52 | |
53 | 'moodle_group_get_groupmembers' => array( |
54 | 'classname' => 'moodle_group_external', |
55 | 'methodname' => 'get_groupmembers', |
56 | 'classpath' => 'group/externallib.php', |
9a0df45a |
57 | ), |
58 | |
59 | 'moodle_group_add_groupmembers' => array( |
60 | 'classname' => 'moodle_group_external', |
61 | 'methodname' => 'add_groupmembers', |
62 | 'classpath' => 'group/externallib.php', |
9a0df45a |
63 | ), |
64 | |
65 | 'moodle_group_delete_groupmembers' => array( |
66 | 'classname' => 'moodle_group_external', |
67 | 'methodname' => 'delete_groupmembers', |
68 | 'classpath' => 'group/externallib.php', |
9a0df45a |
69 | ), |
70 | |
ef22c1b6 |
71 | // === user related functions === |
72 | |
73 | 'moodle_user_create_users' => array( |
74 | 'classname' => 'moodle_user_external', |
75 | 'methodname' => 'create_users', |
76 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
77 | ), |
78 | |
79 | 'moodle_user_get_users' => array( |
80 | 'classname' => 'moodle_user_external', |
81 | 'methodname' => 'get_users', |
82 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
83 | ), |
84 | |
85 | 'moodle_user_delete_users' => array( |
86 | 'classname' => 'moodle_user_external', |
87 | 'methodname' => 'delete_users', |
88 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
89 | ), |
90 | |
91 | 'moodle_user_update_users' => array( |
92 | 'classname' => 'moodle_user_external', |
93 | 'methodname' => 'update_users', |
94 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
95 | ), |
cfb99b75 |
96 | */ |
9a0df45a |
97 | ); |