MDL-55415 webservice: Allow validate_courses to return contexts
[moodle.git] / lib / db / services.php
CommitLineData
9a0df45a 1<?php
9a0df45a 2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
a0a07014 17
9a0df45a 18/**
19 * Core external functions and service definitions.
20 *
39b90b51
EL
21 * The functions and services defined on this file are
22 * processed and registered into the Moodle DB after any
23 * install or upgrade operation. All plugins support this.
24 *
25 * For more information, take a look to the documentation available:
26 * - Webservices API: {@link http://docs.moodle.org/dev/Web_services_API}
27 * - External API: {@link http://docs.moodle.org/dev/External_functions_API}
28 * - Upgrade API: {@link http://docs.moodle.org/dev/Upgrade_API}
29 *
a0a07014
JM
30 * @package core_webservice
31 * @category webservice
32 * @copyright 2009 Petr Skodak
9a0df45a 33 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34 */
35
36$functions = array(
f23e9b6b
CB
37 'core_badges_get_user_badges' => array(
38 'classname' => 'core_badges_external',
39 'methodname' => 'get_user_badges',
40 'description' => 'Returns the list of badges awarded to a user.',
41 'type' => 'read',
ee7295ee
JL
42 'capabilities' => 'moodle/badges:viewotherbadges',
43 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 44 ),
f23e9b6b
CB
45 'core_calendar_create_calendar_events' => array(
46 'classname' => 'core_calendar_external',
47 'methodname' => 'create_calendar_events',
48 'description' => 'Create calendar events',
49 'classpath' => 'calendar/externallib.php',
50 'type' => 'write',
51 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries'
088645e2 52 ),
f23e9b6b
CB
53 'core_calendar_delete_calendar_events' => array(
54 'classname' => 'core_calendar_external',
55 'methodname' => 'delete_calendar_events',
56 'description' => 'Delete calendar events',
57 'classpath' => 'calendar/externallib.php',
58 'type' => 'write',
59 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries'
088645e2 60 ),
f23e9b6b
CB
61 'core_calendar_get_calendar_events' => array(
62 'classname' => 'core_calendar_external',
63 'methodname' => 'get_calendar_events',
64 'description' => 'Get calendar events',
65 'classpath' => 'calendar/externallib.php',
66 'type' => 'read',
ee7295ee
JL
67 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
68 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 69 ),
088645e2 70 'core_cohort_add_cohort_members' => array(
f23e9b6b
CB
71 'classname' => 'core_cohort_external',
72 'methodname' => 'add_cohort_members',
73 'classpath' => 'cohort/externallib.php',
088645e2 74 'description' => 'Adds cohort members.',
f23e9b6b
CB
75 'type' => 'write',
76 'capabilities' => 'moodle/cohort:assign'
77 ),
78 'core_cohort_create_cohorts' => array(
79 'classname' => 'core_cohort_external',
80 'methodname' => 'create_cohorts',
81 'classpath' => 'cohort/externallib.php',
82 'description' => 'Creates new cohorts.',
83 'type' => 'write',
84 'capabilities' => 'moodle/cohort:manage'
088645e2 85 ),
088645e2 86 'core_cohort_delete_cohort_members' => array(
f23e9b6b
CB
87 'classname' => 'core_cohort_external',
88 'methodname' => 'delete_cohort_members',
89 'classpath' => 'cohort/externallib.php',
088645e2 90 'description' => 'Deletes cohort members.',
0a4f3eb2 91 'type' => 'write',
f23e9b6b
CB
92 'capabilities' => 'moodle/cohort:assign'
93 ),
94 'core_cohort_delete_cohorts' => array(
95 'classname' => 'core_cohort_external',
96 'methodname' => 'delete_cohorts',
97 'classpath' => 'cohort/externallib.php',
98 'description' => 'Deletes all specified cohorts.',
0a4f3eb2 99 'type' => 'write',
f23e9b6b 100 'capabilities' => 'moodle/cohort:manage'
088645e2 101 ),
088645e2 102 'core_cohort_get_cohort_members' => array(
f23e9b6b
CB
103 'classname' => 'core_cohort_external',
104 'methodname' => 'get_cohort_members',
105 'classpath' => 'cohort/externallib.php',
088645e2 106 'description' => 'Returns cohort members.',
f23e9b6b
CB
107 'type' => 'read',
108 'capabilities' => 'moodle/cohort:view'
e77a0f36 109 ),
f23e9b6b
CB
110 'core_cohort_get_cohorts' => array(
111 'classname' => 'core_cohort_external',
112 'methodname' => 'get_cohorts',
113 'classpath' => 'cohort/externallib.php',
114 'description' => 'Returns cohort details.',
115 'type' => 'read',
116 'capabilities' => 'moodle/cohort:view'
d3549931 117 ),
f23e9b6b
CB
118 'core_cohort_update_cohorts' => array(
119 'classname' => 'core_cohort_external',
120 'methodname' => 'update_cohorts',
121 'classpath' => 'cohort/externallib.php',
122 'description' => 'Updates existing cohorts.',
123 'type' => 'write',
124 'capabilities' => 'moodle/cohort:manage'
d3549931 125 ),
f23e9b6b
CB
126 'core_comment_get_comments' => array(
127 'classname' => 'core_comment_external',
128 'methodname' => 'get_comments',
129 'description' => 'Returns comments.',
130 'type' => 'read',
ee7295ee
JL
131 'capabilities' => 'moodle/comment:view',
132 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 133 ),
f23e9b6b
CB
134 'core_completion_get_activities_completion_status' => array(
135 'classname' => 'core_completion_external',
136 'methodname' => 'get_activities_completion_status',
137 'description' => 'Return the activities completion status for a user in a course.',
138 'type' => 'read',
ee7295ee 139 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 140 ),
f23e9b6b
CB
141 'core_completion_get_course_completion_status' => array(
142 'classname' => 'core_completion_external',
143 'methodname' => 'get_course_completion_status',
144 'description' => 'Returns course completion status.',
145 'type' => 'read',
ee7295ee
JL
146 'capabilities' => 'report/completion:view',
147 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 148 ),
f23e9b6b
CB
149 'core_completion_mark_course_self_completed' => array(
150 'classname' => 'core_completion_external',
151 'methodname' => 'mark_course_self_completed',
152 'description' => 'Update the course completion status for the current user (if course self-completion is enabled).',
153 'type' => 'write',
ee7295ee 154 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 155 ),
f23e9b6b
CB
156 'core_completion_update_activity_completion_status_manually' => array(
157 'classname' => 'core_completion_external',
158 'methodname' => 'update_activity_completion_status_manually',
159 'description' => 'Update completion status for the current user in an activity, only for activities with manual tracking.',
160 'type' => 'write',
ee7295ee 161 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 162 ),
f23e9b6b
CB
163 'core_course_create_categories' => array(
164 'classname' => 'core_course_external',
165 'methodname' => 'create_categories',
166 'classpath' => 'course/externallib.php',
167 'description' => 'Create course categories',
168 'type' => 'write',
169 'capabilities' => 'moodle/category:manage'
246f6da2 170 ),
f23e9b6b
CB
171 'core_course_create_courses' => array(
172 'classname' => 'core_course_external',
173 'methodname' => 'create_courses',
174 'classpath' => 'course/externallib.php',
175 'description' => 'Create new courses',
176 'type' => 'write',
177 'capabilities' => 'moodle/course:create, moodle/course:visibility'
5d1017e1 178 ),
f23e9b6b
CB
179 'core_course_delete_categories' => array(
180 'classname' => 'core_course_external',
181 'methodname' => 'delete_categories',
182 'classpath' => 'course/externallib.php',
183 'description' => 'Delete course categories',
184 'type' => 'write',
185 'capabilities' => 'moodle/category:manage'
9a0df45a 186 ),
f23e9b6b
CB
187 'core_course_delete_courses' => array(
188 'classname' => 'core_course_external',
189 'methodname' => 'delete_courses',
190 'classpath' => 'course/externallib.php',
191 'description' => 'Deletes all specified courses',
192 'type' => 'write',
193 'capabilities' => 'moodle/course:delete'
5d1017e1 194 ),
f23e9b6b
CB
195 'core_course_delete_modules' => array(
196 'classname' => 'core_course_external',
197 'methodname' => 'delete_modules',
198 'classpath' => 'course/externallib.php',
199 'description' => 'Deletes all specified module instances',
200 'type' => 'write',
201 'capabilities' => 'moodle/course:manageactivities'
9a0df45a 202 ),
f23e9b6b
CB
203 'core_course_duplicate_course' => array(
204 'classname' => 'core_course_external',
205 'methodname' => 'duplicate_course',
206 'classpath' => 'course/externallib.php',
207 'description' => 'Duplicate an existing course (creating a new one), without user data',
208 'type' => 'write',
209 'capabilities' => 'moodle/backup:backupcourse, moodle/restore:restorecourse, moodle/course:create'
5d1017e1 210 ),
f23e9b6b
CB
211 'core_course_get_categories' => array(
212 'classname' => 'core_course_external',
213 'methodname' => 'get_categories',
214 'classpath' => 'course/externallib.php',
215 'description' => 'Return category details',
216 'type' => 'read',
331e038b
JL
217 'capabilities' => 'moodle/category:viewhiddencategories',
218 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 219 ),
f23e9b6b
CB
220 'core_course_get_contents' => array(
221 'classname' => 'core_course_external',
222 'methodname' => 'get_course_contents',
223 'classpath' => 'course/externallib.php',
224 'description' => 'Get course contents',
225 'type' => 'read',
ee7295ee
JL
226 'capabilities' => 'moodle/course:update, moodle/course:viewhiddencourses',
227 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 228 ),
f23e9b6b
CB
229 'core_course_get_course_module' => array(
230 'classname' => 'core_course_external',
231 'methodname' => 'get_course_module',
232 'classpath' => 'course/externallib.php',
233 'description' => 'Return information about a course module',
234 'type' => 'read',
ee7295ee 235 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 236 ),
f23e9b6b
CB
237 'core_course_get_course_module_by_instance' => array(
238 'classname' => 'core_course_external',
239 'methodname' => 'get_course_module_by_instance',
240 'classpath' => 'course/externallib.php',
241 'description' => 'Return information about a given module name and instance id',
242 'type' => 'read',
ee7295ee 243 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 244 ),
f23e9b6b
CB
245 'core_course_get_courses' => array(
246 'classname' => 'core_course_external',
247 'methodname' => 'get_courses',
248 'classpath' => 'course/externallib.php',
249 'description' => 'Return course details',
250 'type' => 'read',
251 'capabilities' => 'moodle/course:view, moodle/course:update, moodle/course:viewhiddencourses',
5041600d 252 'ajax' => true,
ee7295ee 253 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 254 ),
f23e9b6b
CB
255 'core_course_import_course' => array(
256 'classname' => 'core_course_external',
257 'methodname' => 'import_course',
258 'classpath' => 'course/externallib.php',
259 'description' => 'Import course data from a course into another course. Does not include any user data.',
260 'type' => 'write',
261 'capabilities' => 'moodle/backup:backuptargetimport, moodle/restore:restoretargetimport'
7ce23590 262 ),
f23e9b6b
CB
263 'core_course_search_courses' => array(
264 'classname' => 'core_course_external',
265 'methodname' => 'search_courses',
266 'classpath' => 'course/externallib.php',
267 'description' => 'Search courses by (name, module, block, tag)',
268 'type' => 'read',
5041600d 269 'ajax' => true,
ee7295ee 270 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 271 ),
f23e9b6b
CB
272 'core_course_update_categories' => array(
273 'classname' => 'core_course_external',
274 'methodname' => 'update_categories',
275 'classpath' => 'course/externallib.php',
276 'description' => 'Update categories',
277 'type' => 'write',
278 'capabilities' => 'moodle/category:manage',
7ce23590 279 ),
f23e9b6b
CB
280 'core_course_update_courses' => array(
281 'classname' => 'core_course_external',
282 'methodname' => 'update_courses',
283 'classpath' => 'course/externallib.php',
284 'description' => 'Update courses',
285 'type' => 'write',
286 'capabilities' => 'moodle/course:update, moodle/course:changecategory, moodle/course:changefullname, '
287 . 'moodle/course:changeshortname, moodle/course:changeidnumber, moodle/course:changesummary, moodle/course:visibility'
7ce23590 288 ),
f23e9b6b
CB
289 'core_course_view_course' => array(
290 'classname' => 'core_course_external',
291 'methodname' => 'view_course',
292 'classpath' => 'course/externallib.php',
293 'description' => 'Log that the course was viewed',
294 'type' => 'write',
ee7295ee 295 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 296 ),
7c4e686f
JL
297 'core_course_get_activities_overview' => array(
298 'classname' => 'core_course_external',
299 'methodname' => 'get_activities_overview',
300 'classpath' => 'course/externallib.php',
301 'description' => 'Return activities overview for the given courses.',
302 'type' => 'read',
303 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
304 ),
f23e9b6b
CB
305 'core_enrol_get_course_enrolment_methods' => array(
306 'classname' => 'core_enrol_external',
307 'methodname' => 'get_course_enrolment_methods',
308 'classpath' => 'enrol/externallib.php',
309 'description' => 'Get the list of course enrolment methods',
310 'type' => 'read',
ee7295ee 311 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d62e813 312 ),
f23e9b6b
CB
313 'core_enrol_get_enrolled_users' => array(
314 'classname' => 'core_enrol_external',
315 'methodname' => 'get_enrolled_users',
316 'classpath' => 'enrol/externallib.php',
317 'description' => 'Get enrolled users by course id.',
318 'type' => 'read',
319 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, '
ee7295ee
JL
320 . 'moodle/site:accessallgroups',
321 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7107c2f0 322 ),
f23e9b6b
CB
323 'core_enrol_get_enrolled_users_with_capability' => array(
324 'classname' => 'core_enrol_external',
325 'methodname' => 'get_enrolled_users_with_capability',
326 'classpath' => 'enrol/externallib.php',
327 'description' => 'For each course and capability specified, return a list of the users that are enrolled in the course
328 and have that capability',
329 'type' => 'read',
c0ef63eb 330 ),
f23e9b6b
CB
331 'core_enrol_get_users_courses' => array(
332 'classname' => 'core_enrol_external',
333 'methodname' => 'get_users_courses',
334 'classpath' => 'enrol/externallib.php',
335 'description' => 'Get the list of courses where a user is enrolled in',
336 'type' => 'read',
ee7295ee
JL
337 'capabilities' => 'moodle/course:viewparticipants',
338 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9857381d 339 ),
f23e9b6b
CB
340 'core_fetch_notifications' => array(
341 'classname' => 'core_external',
342 'methodname' => 'fetch_notifications',
343 'classpath' => 'lib/external/externallib.php',
344 'description' => 'Return a list of notifications for the current session',
345 'type' => 'read',
5041600d
RT
346 'loginrequired' => false,
347 'ajax' => true,
5d1017e1 348 ),
5d1017e1 349 'core_files_get_files' => array(
f23e9b6b
CB
350 'classname' => 'core_files_external',
351 'methodname' => 'get_files',
249c4f60 352 'description' => 'browse moodle files',
f23e9b6b
CB
353 'type' => 'read',
354 'classpath' => 'files/externallib.php',
ee7295ee 355 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 356 ),
5d1017e1 357 'core_files_upload' => array(
f23e9b6b
CB
358 'classname' => 'core_files_external',
359 'methodname' => 'upload',
249c4f60
DC
360 'description' => 'upload a file to moodle',
361 'type' => 'write',
362 'classpath' => 'files/externallib.php',
363 ),
f23e9b6b
CB
364 'core_get_component_strings' => array(
365 'classname' => 'core_external',
366 'methodname' => 'get_component_strings',
367 'classpath' => 'lib/external/externallib.php',
faeca20d
DM
368 'description' => 'Return all raw strings (with {$a->xxx}), for a specific component ' .
369 '- similar to core get_component_strings(), call',
f23e9b6b 370 'type' => 'read',
5041600d
RT
371 'loginrequired' => false,
372 'ajax' => true,
ee7295ee 373 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3364dbb5 374 ),
f23e9b6b
CB
375 'core_get_fragment' => array(
376 'classname' => 'core_external',
377 'methodname' => 'get_fragment',
378 'classpath' => 'lib/external/externallib.php',
379 'description' => 'Return a fragment for inclusion, such as a JavaScript page.',
380 'type' => 'read',
5041600d 381 'ajax' => true,
5d1017e1 382 ),
f23e9b6b
CB
383 'core_get_string' => array(
384 'classname' => 'core_external',
385 'methodname' => 'get_string',
386 'classpath' => 'lib/external/externallib.php',
387 'description' => 'Return a translated string - similar to core get_string(), call',
388 'type' => 'read',
5041600d
RT
389 'loginrequired' => false,
390 'ajax' => true,
be9bf94e 391 ),
f23e9b6b
CB
392 'core_get_strings' => array(
393 'classname' => 'core_external',
394 'methodname' => 'get_strings',
395 'classpath' => 'lib/external/externallib.php',
396 'description' => 'Return some translated strings - like several core get_string(), calls',
397 'type' => 'read',
5041600d
RT
398 'loginrequired' => false,
399 'ajax' => true,
5d1017e1 400 ),
f23e9b6b
CB
401 'core_grades_get_grades' => array(
402 'classname' => 'core_grades_external',
403 'methodname' => 'get_grades',
aa7e371a
JL
404 'description' => '** DEPRECATED ** Please do not call this function any more.
405 Returns student course total grade and grades for activities.
f23e9b6b
CB
406 This function does not return category or manual items.
407 This function is suitable for managers or teachers not students.',
408 'type' => 'read',
409 'capabilities' => 'moodle/grade:view, moodle/grade:viewall, moodle/grade:viewhidden'
e9b66095 410 ),
f23e9b6b
CB
411 'core_grades_update_grades' => array(
412 'classname' => 'core_grades_external',
413 'methodname' => 'update_grades',
414 'description' => 'Update a grade item and associated student grades.',
415 'type' => 'write',
5d1017e1 416 ),
f23e9b6b
CB
417 'core_grading_get_definitions' => array(
418 'classname' => 'core_grading_external',
419 'methodname' => 'get_definitions',
420 'description' => 'Get grading definitions',
421 'type' => 'read',
e9b66095 422 ),
f23e9b6b
CB
423 'core_grading_get_gradingform_instances' => array(
424 'classname' => 'core_grading_external',
425 'methodname' => 'get_gradingform_instances',
426 'description' => 'Get grading form instances',
427 'type' => 'read',
f2229c68 428 ),
f23e9b6b
CB
429 'core_grading_save_definitions' => array(
430 'classname' => 'core_grading_external',
431 'methodname' => 'save_definitions',
432 'description' => 'Save grading definitions',
433 'type' => 'write',
5d1017e1 434 ),
f23e9b6b
CB
435 'core_group_add_group_members' => array(
436 'classname' => 'core_group_external',
437 'methodname' => 'add_group_members',
438 'classpath' => 'group/externallib.php',
439 'description' => 'Adds group members.',
440 'type' => 'write',
441 'capabilities' => 'moodle/course:managegroups',
6bb31e40 442 ),
f23e9b6b
CB
443 'core_group_assign_grouping' => array(
444 'classname' => 'core_group_external',
445 'methodname' => 'assign_grouping',
446 'classpath' => 'group/externallib.php',
447 'description' => 'Assing groups from groupings',
448 'type' => 'write',
740c354f 449 ),
f23e9b6b
CB
450 'core_group_create_groupings' => array(
451 'classname' => 'core_group_external',
452 'methodname' => 'create_groupings',
453 'classpath' => 'group/externallib.php',
454 'description' => 'Creates new groupings',
455 'type' => 'write',
5d1017e1 456 ),
f23e9b6b
CB
457 'core_group_create_groups' => array(
458 'classname' => 'core_group_external',
459 'methodname' => 'create_groups',
460 'classpath' => 'group/externallib.php',
461 'description' => 'Creates new groups.',
462 'type' => 'write',
463 'capabilities' => 'moodle/course:managegroups'
6bb31e40 464 ),
f23e9b6b
CB
465 'core_group_delete_group_members' => array(
466 'classname' => 'core_group_external',
467 'methodname' => 'delete_group_members',
468 'classpath' => 'group/externallib.php',
469 'description' => 'Deletes group members.',
0a4f3eb2 470 'type' => 'write',
f23e9b6b 471 'capabilities' => 'moodle/course:managegroups'
63a85dc7 472 ),
f23e9b6b
CB
473 'core_group_delete_groupings' => array(
474 'classname' => 'core_group_external',
475 'methodname' => 'delete_groupings',
476 'classpath' => 'group/externallib.php',
477 'description' => 'Deletes all specified groupings.',
79949c1b 478 'type' => 'write',
79949c1b 479 ),
f23e9b6b
CB
480 'core_group_delete_groups' => array(
481 'classname' => 'core_group_external',
482 'methodname' => 'delete_groups',
483 'classpath' => 'group/externallib.php',
484 'description' => 'Deletes all specified groups.',
0a4f3eb2 485 'type' => 'write',
f23e9b6b 486 'capabilities' => 'moodle/course:managegroups'
3dc1d76e 487 ),
f23e9b6b
CB
488 'core_group_get_activity_allowed_groups' => array(
489 'classname' => 'core_group_external',
490 'methodname' => 'get_activity_allowed_groups',
491 'classpath' => 'group/externallib.php',
492 'description' => 'Gets a list of groups that the user is allowed to access within the specified activity.',
493 'type' => 'read',
ee7295ee 494 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
791723c3 495 ),
f23e9b6b
CB
496 'core_group_get_activity_groupmode' => array(
497 'classname' => 'core_group_external',
498 'methodname' => 'get_activity_groupmode',
499 'classpath' => 'group/externallib.php',
500 'description' => 'Returns effective groupmode used in a given activity.',
501 'type' => 'read',
ee7295ee 502 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c4f7bf29 503 ),
f23e9b6b
CB
504 'core_group_get_course_groupings' => array(
505 'classname' => 'core_group_external',
506 'methodname' => 'get_course_groupings',
507 'classpath' => 'group/externallib.php',
508 'description' => 'Returns all groupings in specified course.',
509 'type' => 'read',
c5158499 510 ),
f23e9b6b
CB
511 'core_group_get_course_groups' => array(
512 'classname' => 'core_group_external',
513 'methodname' => 'get_course_groups',
514 'classpath' => 'group/externallib.php',
515 'description' => 'Returns all groups in specified course.',
516 'type' => 'read',
517 'capabilities' => 'moodle/course:managegroups'
13bb6819 518 ),
f23e9b6b
CB
519 'core_group_get_course_user_groups' => array(
520 'classname' => 'core_group_external',
521 'methodname' => 'get_course_user_groups',
522 'classpath' => 'group/externallib.php',
523 'description' => 'Returns all groups in specified course for the specified user.',
524 'type' => 'read',
ee7295ee
JL
525 'capabilities' => 'moodle/course:managegroups',
526 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3ec163dd 527 ),
f23e9b6b
CB
528 'core_group_get_group_members' => array(
529 'classname' => 'core_group_external',
530 'methodname' => 'get_group_members',
531 'classpath' => 'group/externallib.php',
532 'description' => 'Returns group members.',
533 'type' => 'read',
534 'capabilities' => 'moodle/course:managegroups'
479a5db1 535 ),
f23e9b6b
CB
536 'core_group_get_groupings' => array(
537 'classname' => 'core_group_external',
538 'methodname' => 'get_groupings',
539 'classpath' => 'group/externallib.php',
540 'description' => 'Returns groupings details.',
541 'type' => 'read',
3ec163dd 542 ),
f23e9b6b
CB
543 'core_group_get_groups' => array(
544 'classname' => 'core_group_external',
545 'methodname' => 'get_groups',
546 'classpath' => 'group/externallib.php',
547 'description' => 'Returns group details.',
548 'type' => 'read',
549 'capabilities' => 'moodle/course:managegroups'
2f951d86 550 ),
f23e9b6b
CB
551 'core_group_unassign_grouping' => array(
552 'classname' => 'core_group_external',
553 'methodname' => 'unassign_grouping',
554 'classpath' => 'group/externallib.php',
555 'description' => 'Unassing groups from groupings',
556 'type' => 'write',
8430d87b 557 ),
f23e9b6b
CB
558 'core_group_update_groupings' => array(
559 'classname' => 'core_group_external',
560 'methodname' => 'update_groupings',
561 'classpath' => 'group/externallib.php',
562 'description' => 'Updates existing groupings',
563 'type' => 'write',
5d1017e1 564 ),
f23e9b6b
CB
565 'core_message_block_contacts' => array(
566 'classname' => 'core_message_external',
567 'methodname' => 'block_contacts',
568 'classpath' => 'message/externallib.php',
569 'description' => 'Block contacts',
570 'type' => 'write',
ee7295ee 571 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a623b6b8 572 ),
d6731600 573 'core_message_create_contacts' => array(
f23e9b6b
CB
574 'classname' => 'core_message_external',
575 'methodname' => 'create_contacts',
576 'classpath' => 'message/externallib.php',
d6731600 577 'description' => 'Add contacts to the contact list',
f23e9b6b 578 'type' => 'write',
ee7295ee 579 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 580 ),
d6731600 581 'core_message_delete_contacts' => array(
f23e9b6b
CB
582 'classname' => 'core_message_external',
583 'methodname' => 'delete_contacts',
584 'classpath' => 'message/externallib.php',
d6731600 585 'description' => 'Remove contacts from the contact list',
f23e9b6b 586 'type' => 'write',
ee7295ee 587 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 588 ),
f23e9b6b
CB
589 'core_message_delete_message' => array(
590 'classname' => 'core_message_external',
591 'methodname' => 'delete_message',
592 'classpath' => 'message/externallib.php',
593 'description' => 'Deletes a message.',
594 'type' => 'write',
ee7295ee
JL
595 'capabilities' => 'moodle/site:deleteownmessage',
596 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 597 ),
f23e9b6b
CB
598 'core_message_get_blocked_users' => array(
599 'classname' => 'core_message_external',
600 'methodname' => 'get_blocked_users',
601 'classpath' => 'message/externallib.php',
602 'description' => 'Retrieve a list of users blocked',
603 'type' => 'read',
ee7295ee 604 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 605 ),
d6731600 606 'core_message_get_contacts' => array(
f23e9b6b
CB
607 'classname' => 'core_message_external',
608 'methodname' => 'get_contacts',
609 'classpath' => 'message/externallib.php',
d6731600 610 'description' => 'Retrieve the contact list',
f23e9b6b 611 'type' => 'read',
ee7295ee 612 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 613 ),
aff9da17 614 'core_message_get_messages' => array(
f23e9b6b
CB
615 'classname' => 'core_message_external',
616 'methodname' => 'get_messages',
617 'classpath' => 'message/externallib.php',
618 'description' => 'Retrieve a list of messages sent and received by a user (conversations, notifications or both)',
619 'type' => 'read',
ee7295ee 620 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
60ab2e1b 621 ),
a84f89ca 622 'core_message_mark_message_read' => array(
f23e9b6b
CB
623 'classname' => 'core_message_external',
624 'methodname' => 'mark_message_read',
625 'classpath' => 'message/externallib.php',
626 'description' => 'Mark a single message as read, trigger message_viewed event.',
627 'type' => 'write',
ee7295ee 628 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a84f89ca 629 ),
f23e9b6b
CB
630 'core_message_search_contacts' => array(
631 'classname' => 'core_message_external',
632 'methodname' => 'search_contacts',
633 'classpath' => 'message/externallib.php',
634 'description' => 'Search for contacts',
635 'type' => 'read',
ee7295ee 636 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
419b1128 637 ),
f23e9b6b
CB
638 'core_message_send_instant_messages' => array(
639 'classname' => 'core_message_external',
640 'methodname' => 'send_instant_messages',
641 'classpath' => 'message/externallib.php',
642 'description' => 'Send instant messages',
643 'type' => 'write',
ee7295ee
JL
644 'capabilities' => 'moodle/site:sendmessage',
645 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b
CB
646 ),
647 'core_message_unblock_contacts' => array(
648 'classname' => 'core_message_external',
649 'methodname' => 'unblock_contacts',
650 'classpath' => 'message/externallib.php',
651 'description' => 'Unblock contacts',
652 'type' => 'write',
ee7295ee 653 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 654 ),
5d1017e1 655 'core_notes_create_notes' => array(
f23e9b6b
CB
656 'classname' => 'core_notes_external',
657 'methodname' => 'create_notes',
658 'classpath' => 'notes/externallib.php',
8d46dabb 659 'description' => 'Create notes',
f23e9b6b 660 'type' => 'write',
ee7295ee
JL
661 'capabilities' => 'moodle/notes:manage',
662 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8d46dabb 663 ),
34348b2b 664 'core_notes_delete_notes' => array(
f23e9b6b
CB
665 'classname' => 'core_notes_external',
666 'methodname' => 'delete_notes',
667 'classpath' => 'notes/externallib.php',
34348b2b 668 'description' => 'Delete notes',
f23e9b6b 669 'type' => 'write',
ee7295ee
JL
670 'capabilities' => 'moodle/notes:manage',
671 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b
CB
672 ),
673 'core_notes_get_course_notes' => array(
674 'classname' => 'core_notes_external',
675 'methodname' => 'get_course_notes',
676 'classpath' => 'notes/externallib.php',
677 'description' => 'Returns all notes in specified course (or site), for the specified user.',
678 'type' => 'read',
ee7295ee
JL
679 'capabilities' => 'moodle/notes:view',
680 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
34348b2b 681 ),
34348b2b 682 'core_notes_get_notes' => array(
f23e9b6b
CB
683 'classname' => 'core_notes_external',
684 'methodname' => 'get_notes',
685 'classpath' => 'notes/externallib.php',
34348b2b 686 'description' => 'Get notes',
f23e9b6b
CB
687 'type' => 'read',
688 'capabilities' => 'moodle/notes:view'
34348b2b 689 ),
34348b2b 690 'core_notes_update_notes' => array(
f23e9b6b
CB
691 'classname' => 'core_notes_external',
692 'methodname' => 'update_notes',
693 'classpath' => 'notes/externallib.php',
34348b2b 694 'description' => 'Update notes',
f23e9b6b
CB
695 'type' => 'write',
696 'capabilities' => 'moodle/notes:manage'
34348b2b 697 ),
a80b5518 698 'core_notes_view_notes' => array(
f23e9b6b
CB
699 'classname' => 'core_notes_external',
700 'methodname' => 'view_notes',
701 'classpath' => 'notes/externallib.php',
702 'description' => 'Simulates the web interface view of notes/index.php: trigger events.',
703 'type' => 'write',
ee7295ee
JL
704 'capabilities' => 'moodle/notes:view',
705 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9028d9b5 706 ),
f23e9b6b
CB
707 'core_output_load_template' => array(
708 'classname' => 'core\output\external',
709 'methodname' => 'load_template',
710 'description' => 'Load a template for a renderable',
711 'type' => 'read',
5041600d
RT
712 'loginrequired' => false,
713 'ajax' => true,
0ff4ebb4 714 ),
f23e9b6b
CB
715 // Question related functions.
716 'core_question_update_flag' => array(
717 'classname' => 'core_question_external',
718 'methodname' => 'update_flag',
719 'description' => 'Update the flag state of a question attempt.',
720 'type' => 'write',
721 'capabilities' => 'moodle/question:flag',
ee7295ee 722 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3f0ea6d8 723 ),
f23e9b6b
CB
724 'core_rating_get_item_ratings' => array(
725 'classname' => 'core_rating_external',
726 'methodname' => 'get_item_ratings',
727 'description' => 'Retrieve all the ratings for an item.',
728 'type' => 'read',
ee7295ee
JL
729 'capabilities' => 'moodle/rating:view',
730 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 731 ),
f23e9b6b
CB
732 'core_role_assign_roles' => array(
733 'classname' => 'core_role_external',
734 'methodname' => 'assign_roles',
735 'classpath' => 'enrol/externallib.php',
736 'description' => 'Manual role assignments.',
737 'type' => 'write',
738 'capabilities' => 'moodle/role:assign'
0bf486a6 739 ),
f23e9b6b
CB
740 'core_role_unassign_roles' => array(
741 'classname' => 'core_role_external',
742 'methodname' => 'unassign_roles',
743 'classpath' => 'enrol/externallib.php',
744 'description' => 'Manual role unassignments.',
745 'type' => 'write',
746 'capabilities' => 'moodle/role:assign'
11e76602 747 ),
f23e9b6b
CB
748 'core_tag_get_tagindex' => array(
749 'classname' => 'core_tag_external',
750 'methodname' => 'get_tagindex',
751 'description' => 'Gets tag index page for one tag and one tag area',
752 'type' => 'read',
5041600d 753 'ajax' => true,
11e76602 754 ),
f23e9b6b
CB
755 'core_tag_get_tags' => array(
756 'classname' => 'core_tag_external',
757 'methodname' => 'get_tags',
758 'description' => 'Gets tags by their ids',
759 'type' => 'read',
5041600d 760 'ajax' => true,
11e76602 761 ),
f23e9b6b
CB
762 'core_tag_update_tags' => array(
763 'classname' => 'core_tag_external',
764 'methodname' => 'update_tags',
765 'description' => 'Updates tags',
766 'type' => 'write',
5041600d 767 'ajax' => true,
cc73ea07 768 ),
cdc5f978 769 'core_update_inplace_editable' => array(
f23e9b6b
CB
770 'classname' => 'core_external',
771 'methodname' => 'update_inplace_editable',
772 'classpath' => 'lib/external/externallib.php',
cdc5f978 773 'description' => 'Generic service to update title',
f23e9b6b 774 'type' => 'write',
5041600d
RT
775 'loginrequired' => true,
776 'ajax' => true,
c66dc3df 777 ),
f23e9b6b
CB
778 'core_user_add_user_device' => array(
779 'classname' => 'core_user_external',
780 'methodname' => 'add_user_device',
781 'classpath' => 'user/externallib.php',
782 'description' => 'Store mobile user devices information for PUSH Notifications.',
783 'type' => 'write',
ee7295ee 784 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9bdcf579 785 ),
f23e9b6b
CB
786 'core_user_add_user_private_files' => array(
787 'classname' => 'core_user_external',
788 'methodname' => 'add_user_private_files',
789 'classpath' => 'user/externallib.php',
790 'description' => 'Copy files from a draft area to users private files area.',
791 'type' => 'write',
ee7295ee
JL
792 'capabilities' => 'moodle/user:manageownfiles',
793 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
25c49a85 794 ),
f23e9b6b
CB
795 'core_user_create_users' => array(
796 'classname' => 'core_user_external',
797 'methodname' => 'create_users',
798 'classpath' => 'user/externallib.php',
799 'description' => 'Create users.',
800 'type' => 'write',
801 'capabilities' => 'moodle/user:create'
23b398fc 802 ),
f23e9b6b
CB
803 'core_user_delete_users' => array(
804 'classname' => 'core_user_external',
805 'methodname' => 'delete_users',
806 'classpath' => 'user/externallib.php',
807 'description' => 'Delete users.',
808 'type' => 'write',
809 'capabilities' => 'moodle/user:delete'
6c785afa 810 ),
f23e9b6b
CB
811 'core_user_get_course_user_profiles' => array(
812 'classname' => 'core_user_external',
813 'methodname' => 'get_course_user_profiles',
814 'classpath' => 'user/externallib.php',
815 'description' => 'Get course user profiles (each of the profils matching a course id and a user id),.',
816 'type' => 'read',
817 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, '
ee7295ee
JL
818 . 'moodle/site:accessallgroups',
819 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
6c785afa 820 ),
f23e9b6b
CB
821 'core_user_get_users' => array(
822 'classname' => 'core_user_external',
823 'methodname' => 'get_users',
824 'classpath' => 'user/externallib.php',
825 'description' => 'search for users matching the parameters',
826 'type' => 'read',
827 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'
db5b6971 828 ),
f23e9b6b
CB
829 'core_user_get_users_by_field' => array(
830 'classname' => 'core_user_external',
831 'methodname' => 'get_users_by_field',
832 'classpath' => 'user/externallib.php',
833 'description' => 'Retrieve users\' information for a specified unique field - If you want to do a user search, use '
834 . 'core_user_get_users()',
835 'type' => 'read',
ee7295ee 836 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
5041600d 837 'ajax' => true,
ee7295ee 838 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8e355853 839 ),
f23e9b6b
CB
840 'core_user_remove_user_device' => array(
841 'classname' => 'core_user_external',
842 'methodname' => 'remove_user_device',
843 'classpath' => 'user/externallib.php',
844 'description' => 'Remove a user device from the Moodle database.',
845 'type' => 'write',
ee7295ee 846 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
ef4c23cc 847 ),
f23e9b6b
CB
848 'core_user_update_users' => array(
849 'classname' => 'core_user_external',
850 'methodname' => 'update_users',
851 'classpath' => 'user/externallib.php',
852 'description' => 'Update users.',
853 'type' => 'write',
854 'capabilities' => 'moodle/user:update',
c026a28d 855 ),
f23e9b6b
CB
856 'core_user_view_user_list' => array(
857 'classname' => 'core_user_external',
858 'methodname' => 'view_user_list',
859 'classpath' => 'user/externallib.php',
860 'description' => 'Simulates the web-interface view of user/index.php (triggering events),.',
861 'type' => 'write',
862 'capabilities' => 'moodle/course:viewparticipants',
ee7295ee 863 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7361b968 864 ),
f23e9b6b
CB
865 'core_user_view_user_profile' => array(
866 'classname' => 'core_user_external',
867 'methodname' => 'view_user_profile',
868 'classpath' => 'user/externallib.php',
869 'description' => 'Simulates the web-interface view of user/view.php and user/profile.php (triggering events),.',
870 'type' => 'write',
871 'capabilities' => 'moodle/user:viewdetails',
ee7295ee 872 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f4fb827e 873 ),
45fec983
JL
874 'core_user_get_user_preferences' => array(
875 'classname' => 'core_user_external',
876 'methodname' => 'get_user_preferences',
877 'classpath' => 'user/externallib.php',
878 'description' => 'Return user preferences.',
879 'type' => 'read',
880 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
881 ),
f4fb827e 882
81de839f
FM
883 // Competencies functions.
884 'core_competency_create_competency_framework' => array(
885 'classname' => 'core_competency\external',
886 'methodname' => 'create_competency_framework',
887 'classpath' => '',
888 'description' => 'Creates new competency frameworks.',
889 'type' => 'write',
890 'capabilities' => 'moodle/competency:competencymanage',
891 'ajax' => true,
892 ),
893 'core_competency_read_competency_framework' => array(
894 'classname' => 'core_competency\external',
895 'methodname' => 'read_competency_framework',
896 'classpath' => '',
897 'description' => 'Load a summary of a competency framework.',
898 'type' => 'read',
899 'capabilities' => 'moodle/competency:competencyview',
900 'ajax' => true,
901 ),
902 'core_competency_duplicate_competency_framework' => array(
903 'classname' => 'core_competency\external',
904 'methodname' => 'duplicate_competency_framework',
905 'classpath' => '',
906 'description' => 'Duplicate a competency framework.',
907 'type' => 'write',
908 'capabilities' => 'moodle/competency:competencymanage',
909 'ajax' => true,
910 ),
911 'core_competency_delete_competency_framework' => array(
912 'classname' => 'core_competency\external',
913 'methodname' => 'delete_competency_framework',
914 'classpath' => '',
915 'description' => 'Delete a competency framework.',
916 'type' => 'write',
917 'capabilities' => 'moodle/competency:competencymanage',
918 'ajax' => true,
919 ),
920 'core_competency_update_competency_framework' => array(
921 'classname' => 'core_competency\external',
922 'methodname' => 'update_competency_framework',
923 'classpath' => '',
924 'description' => 'Update a competency framework.',
925 'type' => 'write',
926 'capabilities' => 'moodle/competency:competencymanage',
927 'ajax' => true,
928 ),
929 'core_competency_list_competency_frameworks' => array(
930 'classname' => 'core_competency\external',
931 'methodname' => 'list_competency_frameworks',
932 'classpath' => '',
933 'description' => 'Load a list of a competency frameworks.',
934 'type' => 'read',
935 'capabilities' => 'moodle/competency:competencyview',
936 'ajax' => true,
937 ),
938 'core_competency_count_competency_frameworks' => array(
939 'classname' => 'core_competency\external',
940 'methodname' => 'count_competency_frameworks',
941 'classpath' => '',
942 'description' => 'Count a list of a competency frameworks.',
943 'type' => 'read',
944 'capabilities' => 'moodle/competency:competencyview',
945 'ajax' => true,
946 ),
947 'core_competency_competency_framework_viewed' => array(
948 'classname' => 'core_competency\external',
949 'methodname' => 'competency_framework_viewed',
950 'classpath' => '',
951 'description' => 'Log event competency framework viewed',
952 'type' => 'read',
953 'capabilities' => 'moodle/competency:competencyview',
954 'ajax' => true,
955 ),
956 'core_competency_create_competency' => array(
957 'classname' => 'core_competency\external',
958 'methodname' => 'create_competency',
959 'classpath' => '',
960 'description' => 'Creates new competencies.',
961 'type' => 'write',
962 'capabilities' => 'moodle/competency:competencymanage',
963 'ajax' => true,
964 ),
965 'core_competency_read_competency' => array(
966 'classname' => 'core_competency\external',
967 'methodname' => 'read_competency',
968 'classpath' => '',
969 'description' => 'Load a summary of a competency.',
970 'type' => 'read',
971 'capabilities' => 'moodle/competency:competencyview',
972 'ajax' => true,
973 ),
974 'core_competency_competency_viewed' => array(
975 'classname' => 'core_competency\external',
976 'methodname' => 'competency_viewed',
977 'classpath' => '',
978 'description' => 'Log event competency viewed',
979 'type' => 'read',
980 'capabilities' => 'moodle/competency:competencyview',
981 'ajax' => true,
3123c2cf 982 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
983 ),
984 'core_competency_delete_competency' => array(
985 'classname' => 'core_competency\external',
986 'methodname' => 'delete_competency',
987 'classpath' => '',
988 'description' => 'Delete a competency.',
989 'type' => 'write',
990 'capabilities' => 'moodle/competency:competencymanage',
991 'ajax' => true,
992 ),
993 'core_competency_update_competency' => array(
994 'classname' => 'core_competency\external',
995 'methodname' => 'update_competency',
996 'classpath' => '',
997 'description' => 'Update a competency.',
998 'type' => 'write',
999 'capabilities' => 'moodle/competency:competencymanage',
1000 'ajax' => true,
1001 ),
1002 'core_competency_list_competencies' => array(
1003 'classname' => 'core_competency\external',
1004 'methodname' => 'list_competencies',
1005 'classpath' => '',
1006 'description' => 'Load a list of a competencies.',
1007 'type' => 'read',
1008 'capabilities' => 'moodle/competency:competencyview',
1009 'ajax' => true,
1010 ),
1011 'core_competency_list_competencies_in_template' => array(
1012 'classname' => 'core_competency\external',
1013 'methodname' => 'list_competencies_in_template',
1014 'classpath' => '',
1015 'description' => 'Load a list of a competencies for a given template.',
1016 'type' => 'read',
1017 'capabilities' => 'moodle/competency:competencyview',
1018 'ajax' => true,
1019 ),
1020 'core_competency_count_competencies' => array(
1021 'classname' => 'core_competency\external',
1022 'methodname' => 'count_competencies',
1023 'classpath' => '',
1024 'description' => 'Count a list of a competencies.',
1025 'type' => 'read',
1026 'capabilities' => 'moodle/competency:competencyview',
1027 'ajax' => true,
1028 ),
1029 'core_competency_count_competencies_in_template' => array(
1030 'classname' => 'core_competency\external',
1031 'methodname' => 'count_competencies_in_template',
1032 'classpath' => '',
1033 'description' => 'Count a list of a competencies for a given template.',
1034 'type' => 'read',
1035 'capabilities' => 'moodle/competency:competencyview',
1036 'ajax' => true,
1037 ),
1038 'core_competency_search_competencies' => array(
1039 'classname' => 'core_competency\external',
1040 'methodname' => 'search_competencies',
1041 'classpath' => '',
1042 'description' => 'Search a list of a competencies.',
1043 'type' => 'read',
1044 'capabilities' => 'moodle/competency:competencyview',
1045 'ajax' => true,
1046 ),
1047 'core_competency_set_parent_competency' => array(
1048 'classname' => 'core_competency\external',
1049 'methodname' => 'set_parent_competency',
1050 'classpath' => '',
1051 'description' => 'Set a new parent for a competency.',
1052 'type' => 'write',
1053 'capabilities' => 'moodle/competency:competencymanage',
1054 'ajax' => true,
1055 ),
1056 'core_competency_move_up_competency' => array(
1057 'classname' => 'core_competency\external',
1058 'methodname' => 'move_up_competency',
1059 'classpath' => '',
1060 'description' => 'Re-order a competency.',
1061 'type' => 'write',
1062 'capabilities' => 'moodle/competency:competencymanage',
1063 'ajax' => true,
1064 ),
1065 'core_competency_move_down_competency' => array(
1066 'classname' => 'core_competency\external',
1067 'methodname' => 'move_down_competency',
1068 'classpath' => '',
1069 'description' => 'Re-order a competency.',
1070 'type' => 'write',
1071 'capabilities' => 'moodle/competency:competencymanage',
1072 'ajax' => true,
1073 ),
1074 'core_competency_list_course_competencies' => array(
1075 'classname' => 'core_competency\external',
1076 'methodname' => 'list_course_competencies',
1077 'classpath' => '',
1078 'description' => 'List the competencies in a course',
1079 'type' => 'read',
1080 'capabilities' => 'moodle/competency:coursecompetencyview',
1081 'ajax' => true,
3123c2cf 1082 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1083 ),
1084 'core_competency_count_competencies_in_course' => array(
1085 'classname' => 'core_competency\external',
1086 'methodname' => 'count_competencies_in_course',
1087 'classpath' => '',
1088 'description' => 'List the competencies in a course',
1089 'type' => 'read',
1090 'capabilities' => 'moodle/competency:coursecompetencyview',
1091 'ajax' => true,
1092 ),
1093 'core_competency_count_courses_using_competency' => array(
1094 'classname' => 'core_competency\external',
1095 'methodname' => 'count_courses_using_competency',
1096 'classpath' => '',
1097 'description' => 'List the courses using a competency',
1098 'type' => 'read',
1099 'capabilities' => 'moodle/competency:coursecompetencyview',
1100 'ajax' => true,
1101 ),
1102 'core_competency_add_competency_to_course' => array(
1103 'classname' => 'core_competency\external',
1104 'methodname' => 'add_competency_to_course',
1105 'classpath' => '',
1106 'description' => 'Add the competency to a course',
1107 'type' => 'write',
1108 'capabilities' => 'moodle/competency:coursecompetencymanage',
1109 'ajax' => true,
1110 ),
1111 'core_competency_add_competency_to_template' => array(
1112 'classname' => 'core_competency\external',
1113 'methodname' => 'add_competency_to_template',
1114 'classpath' => '',
1115 'description' => 'Add the competency to a template',
1116 'type' => 'write',
1117 'capabilities' => 'moodle/competency:templatemanage',
1118 'ajax' => true,
1119 ),
1120 'core_competency_remove_competency_from_course' => array(
1121 'classname' => 'core_competency\external',
1122 'methodname' => 'remove_competency_from_course',
1123 'classpath' => '',
1124 'description' => 'Remove a competency from a course',
1125 'type' => 'write',
1126 'capabilities' => 'moodle/competency:coursecompetencymanage',
1127 'ajax' => true,
1128 ),
1129 'core_competency_set_course_competency_ruleoutcome' => array(
1130 'classname' => 'core_competency\external',
1131 'methodname' => 'set_course_competency_ruleoutcome',
1132 'classpath' => '',
1133 'description' => 'Modify the ruleoutcome value for course competency',
1134 'type' => 'write',
1135 'capabilities' => 'moodle/competency:coursecompetencymanage',
1136 'ajax' => true,
1137 ),
1138 'core_competency_remove_competency_from_template' => array(
1139 'classname' => 'core_competency\external',
1140 'methodname' => 'remove_competency_from_template',
1141 'classpath' => '',
1142 'description' => 'Remove a competency from a template',
1143 'type' => 'write',
1144 'capabilities' => 'moodle/competency:templatemanage',
1145 'ajax' => true,
1146 ),
1147 'core_competency_reorder_course_competency' => array(
1148 'classname' => 'core_competency\external',
1149 'methodname' => 'reorder_course_competency',
1150 'classpath' => '',
1151 'description' => 'Move a course competency to a new relative sort order.',
1152 'type' => 'write',
1153 'capabilities' => 'moodle/competency:coursecompetencymanage',
1154 'ajax' => true,
1155 ),
1156 'core_competency_reorder_template_competency' => array(
1157 'classname' => 'core_competency\external',
1158 'methodname' => 'reorder_template_competency',
1159 'classpath' => '',
1160 'description' => 'Move a template competency to a new relative sort order.',
1161 'type' => 'write',
1162 'capabilities' => 'moodle/competency:templatemanage',
1163 'ajax' => true,
1164 ),
1165 'core_competency_create_template' => array(
1166 'classname' => 'core_competency\external',
1167 'methodname' => 'create_template',
1168 'classpath' => '',
1169 'description' => 'Creates new learning plan templates.',
1170 'type' => 'write',
1171 'capabilities' => 'moodle/competency:templatemanage',
1172 'ajax' => true,
1173 ),
1174 'core_competency_duplicate_template' => array(
1175 'classname' => 'core_competency\external',
1176 'methodname' => 'duplicate_template',
1177 'classpath' => '',
1178 'description' => 'Duplicate learning plan template.',
1179 'type' => 'write',
1180 'capabilities' => 'moodle/competency:templatemanage',
1181 'ajax' => true,
1182 ),
1183 'core_competency_read_template' => array(
1184 'classname' => 'core_competency\external',
1185 'methodname' => 'read_template',
1186 'classpath' => '',
1187 'description' => 'Load a summary of a learning plan template.',
1188 'type' => 'read',
1189 'capabilities' => 'moodle/competency:templateview',
1190 'ajax' => true,
1191 ),
1192 'core_competency_delete_template' => array(
1193 'classname' => 'core_competency\external',
1194 'methodname' => 'delete_template',
1195 'classpath' => '',
1196 'description' => 'Delete a learning plan template.',
1197 'type' => 'write',
1198 'capabilities' => 'moodle/competency:templatemanage',
1199 'ajax' => true,
1200 ),
1201 'core_competency_update_template' => array(
1202 'classname' => 'core_competency\external',
1203 'methodname' => 'update_template',
1204 'classpath' => '',
1205 'description' => 'Update a learning plan template.',
1206 'type' => 'write',
1207 'capabilities' => 'moodle/competency:templatemanage',
1208 'ajax' => true,
1209 ),
1210 'core_competency_list_templates' => array(
1211 'classname' => 'core_competency\external',
1212 'methodname' => 'list_templates',
1213 'classpath' => '',
1214 'description' => 'Load a list of a learning plan templates.',
1215 'type' => 'read',
1216 'capabilities' => 'moodle/competency:templateview',
1217 'ajax' => true,
1218 ),
1219 'core_competency_list_templates_using_competency' => array(
1220 'classname' => 'core_competency\external',
1221 'methodname' => 'list_templates_using_competency',
1222 'classpath' => '',
1223 'description' => 'Load a list of a learning plan templates for a given competency.',
1224 'type' => 'read',
1225 'capabilities' => 'moodle/competency:templateview',
1226 'ajax' => true,
1227 ),
1228 'core_competency_count_templates' => array(
1229 'classname' => 'core_competency\external',
1230 'methodname' => 'count_templates',
1231 'classpath' => '',
1232 'description' => 'Count a list of a learning plan templates.',
1233 'type' => 'read',
1234 'capabilities' => 'moodle/competency:templateview',
1235 'ajax' => true,
1236 ),
1237 'core_competency_count_templates_using_competency' => array(
1238 'classname' => 'core_competency\external',
1239 'methodname' => 'count_templates_using_competency',
1240 'classpath' => '',
1241 'description' => 'Count a list of a learning plan templates for a given competency.',
1242 'type' => 'read',
1243 'capabilities' => 'moodle/competency:templateview',
1244 'ajax' => true,
1245 ),
1246 'core_competency_create_plan' => array(
1247 'classname' => 'core_competency\external',
1248 'methodname' => 'create_plan',
1249 'classpath' => '',
1250 'description' => 'Creates a learning plan.',
1251 'type' => 'write',
1252 'capabilities' => 'moodle/competency:planmanage',
1253 'ajax' => true,
1254 ),
1255 'core_competency_update_plan' => array(
1256 'classname' => 'core_competency\external',
1257 'methodname' => 'update_plan',
1258 'classpath' => '',
1259 'description' => 'Updates a learning plan.',
1260 'type' => 'write',
1261 'capabilities' => 'moodle/competency:planmanage',
1262 'ajax' => true,
1263 ),
1264 'core_competency_complete_plan' => array(
1265 'classname' => 'core_competency\external',
1266 'methodname' => 'complete_plan',
1267 'classpath' => '',
1268 'description' => 'Complete learning plan.',
1269 'type' => 'write',
1270 'capabilities' => 'moodle/competency:planmanage',
1271 'ajax' => true,
1272 ),
1273 'core_competency_reopen_plan' => array(
1274 'classname' => 'core_competency\external',
1275 'methodname' => 'reopen_plan',
1276 'classpath' => '',
1277 'description' => 'Reopen learning plan.',
1278 'type' => 'write',
1279 'capabilities' => 'moodle/competency:planmanage',
1280 'ajax' => true,
1281 ),
1282 'core_competency_read_plan' => array(
1283 'classname' => 'core_competency\external',
1284 'methodname' => 'read_plan',
1285 'classpath' => '',
1286 'description' => 'Load a learning plan.',
1287 'type' => 'read',
1288 'capabilities' => 'moodle/competency:planviewown',
1289 'ajax' => true,
1290 ),
1291 'core_competency_delete_plan' => array(
1292 'classname' => 'core_competency\external',
1293 'methodname' => 'delete_plan',
1294 'classpath' => '',
1295 'description' => 'Delete a learning plan.',
1296 'type' => 'write',
1297 'capabilities' => 'moodle/competency:planmanage',
1298 'ajax' => true,
1299 ),
1300 'core_competency_list_user_plans' => array(
1301 'classname' => 'core_competency\external',
1302 'methodname' => 'list_user_plans',
1303 'classpath' => '',
1304 'description' => 'List a user\'s learning plans.',
1305 'type' => 'read',
1306 'capabilities' => 'moodle/competency:planviewown',
1307 'ajax' => true,
1308 ),
1309 'core_competency_list_plan_competencies' => array(
1310 'classname' => 'core_competency\external',
1311 'methodname' => 'list_plan_competencies',
1312 'classpath' => '',
1313 'description' => 'List the competencies in a plan',
1314 'type' => 'read',
1315 'capabilities' => 'moodle/competency:planviewown',
1316 'ajax' => true,
1317 ),
1318 'core_competency_add_competency_to_plan' => array(
1319 'classname' => 'core_competency\external',
1320 'methodname' => 'add_competency_to_plan',
1321 'classpath' => '',
1322 'description' => 'Add the competency to a learning plan',
1323 'type' => 'write',
1324 'capabilities' => 'moodle/competency:planmanage',
1325 'ajax' => true,
1326 ),
1327 'core_competency_remove_competency_from_plan' => array(
1328 'classname' => 'core_competency\external',
1329 'methodname' => 'remove_competency_from_plan',
1330 'classpath' => '',
1331 'description' => 'Remove the competency from a learning plan',
1332 'type' => 'write',
1333 'capabilities' => 'moodle/competency:planmanage',
1334 'ajax' => true,
1335 ),
1336 'core_competency_reorder_plan_competency' => array(
1337 'classname' => 'core_competency\external',
1338 'methodname' => 'reorder_plan_competency',
1339 'classpath' => '',
1340 'description' => 'Move a plan competency to a new relative sort order.',
1341 'type' => 'write',
1342 'capabilities' => 'moodle/competency:planmanage',
1343 'ajax' => true,
1344 ),
1345 'core_competency_plan_request_review' => array(
1346 'classname' => 'core_competency\external',
1347 'methodname' => 'plan_request_review',
1348 'classpath' => '',
1349 'description' => 'Request for a plan to be reviewed.',
1350 'type' => 'write',
1351 'capabilities' => 'moodle/competency:planmanagedraft',
1352 'ajax' => true,
1353 ),
1354 'core_competency_plan_start_review' => array(
1355 'classname' => 'core_competency\external',
1356 'methodname' => 'plan_start_review',
1357 'classpath' => '',
1358 'description' => 'Start the review of a plan.',
1359 'type' => 'write',
1360 'capabilities' => 'moodle/competency:planmanage',
1361 'ajax' => true,
1362 ),
1363 'core_competency_plan_stop_review' => array(
1364 'classname' => 'core_competency\external',
1365 'methodname' => 'plan_stop_review',
1366 'classpath' => '',
1367 'description' => 'Stop the review of a plan.',
1368 'type' => 'write',
1369 'capabilities' => 'moodle/competency:planmanage',
1370 'ajax' => true,
1371 ),
1372 'core_competency_plan_cancel_review_request' => array(
1373 'classname' => 'core_competency\external',
1374 'methodname' => 'plan_cancel_review_request',
1375 'classpath' => '',
1376 'description' => 'Cancel the review of a plan.',
1377 'type' => 'write',
1378 'capabilities' => 'moodle/competency:planmanagedraft',
1379 'ajax' => true,
1380 ),
1381 'core_competency_approve_plan' => array(
1382 'classname' => 'core_competency\external',
1383 'methodname' => 'approve_plan',
1384 'classpath' => '',
1385 'description' => 'Approve a plan.',
1386 'type' => 'write',
1387 'capabilities' => 'moodle/competency:planmanage',
1388 'ajax' => true,
1389 ),
1390 'core_competency_unapprove_plan' => array(
1391 'classname' => 'core_competency\external',
1392 'methodname' => 'unapprove_plan',
1393 'classpath' => '',
1394 'description' => 'Unapprove a plan.',
1395 'type' => 'write',
1396 'capabilities' => 'moodle/competency:planmanage',
1397 'ajax' => true,
1398 ),
1399 'core_competency_template_has_related_data' => array(
1400 'classname' => 'core_competency\external',
1401 'methodname' => 'template_has_related_data',
1402 'classpath' => '',
1403 'description' => 'Check if a template has related data',
1404 'type' => 'read',
1405 'capabilities' => 'moodle/competency:templateview',
1406 'ajax' => true,
1407 ),
1408 'core_competency_get_scale_values' => array(
1409 'classname' => 'core_competency\external',
1410 'methodname' => 'get_scale_values',
1411 'classpath' => '',
1412 'description' => 'Fetch the values for a specific scale',
1413 'type' => 'read',
1414 'capabilities' => 'moodle/competency:competencymanage',
1415 'ajax' => true,
3123c2cf 1416 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1417 ),
1418 'core_competency_add_related_competency' => array(
1419 'classname' => 'core_competency\external',
1420 'methodname' => 'add_related_competency',
1421 'classpath' => '',
1422 'description' => 'Adds a related competency',
1423 'type' => 'write',
1424 'capabilities' => 'moodle/competency:competencymanage',
1425 'ajax' => true,
1426 ),
1427 'core_competency_remove_related_competency' => array(
1428 'classname' => 'core_competency\external',
1429 'methodname' => 'remove_related_competency',
1430 'classpath' => '',
1431 'description' => 'Remove a related competency',
1432 'type' => 'write',
1433 'capabilities' => 'moodle/competency:competencymanage',
1434 'ajax' => true,
1435 ),
1436 'core_competency_read_user_evidence' => array(
1437 'classname' => 'core_competency\external',
1438 'methodname' => 'read_user_evidence',
1439 'classpath' => '',
1440 'description' => 'Read an evidence of prior learning.',
1441 'type' => 'read',
1442 'capabilities' => 'moodle/competency:userevidenceview',
1443 'ajax' => true,
1444 ),
1445 'core_competency_delete_user_evidence' => array(
1446 'classname' => 'core_competency\external',
1447 'methodname' => 'delete_user_evidence',
1448 'classpath' => '',
1449 'description' => 'Delete an evidence of prior learning.',
1450 'type' => 'write',
1451 'capabilities' => 'moodle/competency:userevidencemanageown',
1452 'ajax' => true,
1453 ),
1454 'core_competency_create_user_evidence_competency' => array(
1455 'classname' => 'core_competency\external',
1456 'methodname' => 'create_user_evidence_competency',
1457 'classpath' => '',
1458 'description' => 'Create an evidence of prior learning relationship with a competency.',
1459 'type' => 'read',
1460 'capabilities' => 'moodle/competency:userevidencemanageown, moodle/competency:competencyview',
1461 'ajax' => true,
1462 ),
1463 'core_competency_delete_user_evidence_competency' => array(
1464 'classname' => 'core_competency\external',
1465 'methodname' => 'delete_user_evidence_competency',
1466 'classpath' => '',
1467 'description' => 'Delete an evidence of prior learning relationship with a competency.',
1468 'type' => 'write',
1469 'capabilities' => 'moodle/competency:userevidencemanageown',
1470 'ajax' => true,
1471 ),
1472 'core_competency_user_competency_cancel_review_request' => array(
1473 'classname' => 'core_competency\external',
1474 'methodname' => 'user_competency_cancel_review_request',
1475 'classpath' => '',
1476 'description' => 'Cancel a review request.',
1477 'type' => 'write',
1478 'capabilities' => 'moodle/competency:userevidencemanageown',
1479 'ajax' => true,
1480 ),
1481 'core_competency_user_competency_request_review' => array(
1482 'classname' => 'core_competency\external',
1483 'methodname' => 'user_competency_request_review',
1484 'classpath' => '',
1485 'description' => 'Request a review.',
1486 'type' => 'write',
1487 'capabilities' => 'moodle/competency:userevidencemanageown',
1488 'ajax' => true,
1489 ),
1490 'core_competency_user_competency_start_review' => array(
1491 'classname' => 'core_competency\external',
1492 'methodname' => 'user_competency_start_review',
1493 'classpath' => '',
1494 'description' => 'Start a review.',
1495 'type' => 'write',
1496 'capabilities' => 'moodle/competency:competencygrade',
1497 'ajax' => true,
1498 ),
1499 'core_competency_user_competency_stop_review' => array(
1500 'classname' => 'core_competency\external',
1501 'methodname' => 'user_competency_stop_review',
1502 'classpath' => '',
1503 'description' => 'Stop a review.',
1504 'type' => 'write',
1505 'capabilities' => 'moodle/competency:competencygrade',
1506 'ajax' => true,
1507 ),
1508 'core_competency_user_competency_viewed' => array(
1509 'classname' => 'core_competency\external',
1510 'methodname' => 'user_competency_viewed',
1511 'classpath' => '',
1512 'description' => 'Log the user competency viewed event.',
1513 'type' => 'read',
1514 'capabilities' => 'moodle/competency:usercompetencyview',
1515 'ajax' => true,
3123c2cf 1516 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1517 ),
1518 'core_competency_user_competency_viewed_in_plan' => array(
1519 'classname' => 'core_competency\external',
1520 'methodname' => 'user_competency_viewed_in_plan',
1521 'classpath' => '',
1522 'description' => 'Log the user competency viewed in plan event.',
1523 'type' => 'read',
1524 'capabilities' => 'moodle/competency:usercompetencyview',
1525 'ajax' => true,
3123c2cf 1526 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1527 ),
1528 'core_competency_user_competency_viewed_in_course' => array(
1529 'classname' => 'core_competency\external',
1530 'methodname' => 'user_competency_viewed_in_course',
1531 'classpath' => '',
1532 'description' => 'Log the user competency viewed in course event',
1533 'type' => 'read',
1534 'capabilities' => 'moodle/competency:usercompetencyview',
1535 'ajax' => true,
3123c2cf 1536 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1537 ),
1538 'core_competency_user_competency_plan_viewed' => array(
1539 'classname' => 'core_competency\external',
1540 'methodname' => 'user_competency_plan_viewed',
1541 'classpath' => '',
1542 'description' => 'Log the user competency plan viewed event.',
1543 'type' => 'read',
1544 'capabilities' => 'moodle/competency:usercompetencyview',
1545 'ajax' => true,
3123c2cf 1546 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1547 ),
1548 'core_competency_grade_competency' => array(
1549 'classname' => 'core_competency\external',
1550 'methodname' => 'grade_competency',
1551 'classpath' => '',
1552 'description' => 'Grade a competency.',
1553 'type' => 'write',
1554 'capabilities' => 'moodle/competency:competencygrade',
1555 'ajax' => true,
1556 ),
1557 'core_competency_grade_competency_in_plan' => array(
1558 'classname' => 'core_competency\external',
1559 'methodname' => 'grade_competency_in_plan',
1560 'classpath' => '',
1561 'description' => 'Grade a competency from the user plan page.',
1562 'type' => 'write',
1563 'capabilities' => 'moodle/competency:competencygrade',
1564 'ajax' => true,
1565 ),
1566 'core_competency_grade_competency_in_course' => array(
1567 'classname' => 'core_competency\external',
1568 'methodname' => 'grade_competency_in_course',
1569 'classpath' => '',
1570 'description' => 'Grade a competency from the course page.',
1571 'type' => 'write',
1572 'capabilities' => 'moodle/competency:competencygrade',
1573 'ajax' => true,
3123c2cf 1574 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1575 ),
1576 'core_competency_unlink_plan_from_template' => array(
1577 'classname' => 'core_competency\external',
1578 'methodname' => 'unlink_plan_from_template',
1579 'classpath' => '',
1580 'description' => 'Unlink a plan form it template.',
1581 'type' => 'write',
1582 'capabilities' => 'moodle/competency:planmanage',
1583 'ajax' => true,
1584 ),
1585 'core_competency_template_viewed' => array(
1586 'classname' => 'core_competency\external',
1587 'methodname' => 'template_viewed',
1588 'classpath' => '',
1589 'description' => 'Log event template viewed',
1590 'type' => 'read',
1591 'capabilities' => 'moodle/competency:templateview',
1592 'ajax' => true,
1593 ),
1594 'core_competency_request_review_of_user_evidence_linked_competencies' => array(
1595 'classname' => 'core_competency\external',
1596 'methodname' => 'request_review_of_user_evidence_linked_competencies',
1597 'classpath' => '',
1598 'description' => 'Send user evidence competencies in review',
1599 'type' => 'write',
1600 'capabilities' => 'moodle/competency:userevidencemanageown',
1601 'ajax' => true,
1602 ),
1603 'core_competency_update_course_competency_settings' => array(
1604 'classname' => 'core_competency\external',
1605 'methodname' => 'update_course_competency_settings',
1606 'classpath' => '',
1607 'description' => 'Update the course competency settings',
1608 'type' => 'write',
1609 'capabilities' => 'moodle/competency:coursecompetencyconfigure',
1610 'ajax' => true,
1611 ),
1e99f31e
FM
1612 'core_competency_delete_evidence' => array(
1613 'classname' => 'core_competency\external',
1614 'methodname' => 'delete_evidence',
1615 'classpath' => '',
1616 'description' => 'Delete an evidence',
1617 'type' => 'write',
1618 'capabilities' => 'moodle/competency:evidencedelete',
1619 'ajax' => true,
3123c2cf 1620 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1e99f31e 1621 ),
f23e9b6b
CB
1622
1623 'core_webservice_get_site_info' => array(
1624 'classname' => 'core_webservice_external',
1625 'methodname' => 'get_site_info',
1626 'classpath' => 'webservice/externallib.php',
1627 'description' => 'Return some site info / user info / list web service functions',
1628 'type' => 'read',
ee7295ee 1629 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b 1630 )
9a0df45a 1631);
c1b65883
JM
1632
1633$services = array(
96e0194c 1634 'Moodle mobile web service' => array(
12c52b91 1635 'functions' => array(), // Unused as we add the service in each function definition, third party services would use this.
96e0194c
SH
1636 'enabled' => 0,
1637 'restrictedusers' => 0,
af03513f 1638 'shortname' => MOODLE_OFFICIAL_MOBILE_SERVICE,
106c55fb
DW
1639 'downloadfiles' => 1,
1640 'uploadfiles' => 1
96e0194c
SH
1641 ),
1642);