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 === |
30 | |
9a0df45a |
31 | 'moodle_group_create_groups' => array( |
32 | 'classname' => 'moodle_group_external', |
33 | 'methodname' => 'create_groups', |
34 | 'classpath' => 'group/externallib.php', |
9a0df45a |
35 | ), |
36 | |
37 | 'moodle_group_get_groups' => array( |
38 | 'classname' => 'moodle_group_external', |
39 | 'methodname' => 'get_groups', |
40 | 'classpath' => 'group/externallib.php', |
9a0df45a |
41 | ), |
42 | |
43 | 'moodle_group_delete_groups' => array( |
44 | 'classname' => 'moodle_group_external', |
45 | 'methodname' => 'delete_groups', |
46 | 'classpath' => 'group/externallib.php', |
9a0df45a |
47 | ), |
48 | |
49 | 'moodle_group_get_groupmembers' => array( |
50 | 'classname' => 'moodle_group_external', |
51 | 'methodname' => 'get_groupmembers', |
52 | 'classpath' => 'group/externallib.php', |
9a0df45a |
53 | ), |
54 | |
55 | 'moodle_group_add_groupmembers' => array( |
56 | 'classname' => 'moodle_group_external', |
57 | 'methodname' => 'add_groupmembers', |
58 | 'classpath' => 'group/externallib.php', |
9a0df45a |
59 | ), |
60 | |
61 | 'moodle_group_delete_groupmembers' => array( |
62 | 'classname' => 'moodle_group_external', |
63 | 'methodname' => 'delete_groupmembers', |
64 | 'classpath' => 'group/externallib.php', |
9a0df45a |
65 | ), |
66 | |
ef22c1b6 |
67 | // === user related functions === |
68 | |
69 | 'moodle_user_create_users' => array( |
70 | 'classname' => 'moodle_user_external', |
71 | 'methodname' => 'create_users', |
72 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
73 | ), |
74 | |
75 | 'moodle_user_get_users' => array( |
76 | 'classname' => 'moodle_user_external', |
77 | 'methodname' => 'get_users', |
78 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
79 | ), |
80 | |
81 | 'moodle_user_delete_users' => array( |
82 | 'classname' => 'moodle_user_external', |
83 | 'methodname' => 'delete_users', |
84 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
85 | ), |
86 | |
87 | 'moodle_user_update_users' => array( |
88 | 'classname' => 'moodle_user_external', |
89 | 'methodname' => 'update_users', |
90 | 'classpath' => 'user/externallib.php', |
ef22c1b6 |
91 | ), |
92 | |
9a0df45a |
93 | ); |