MDL-36941 core: added events for notifications
[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(
83e4dc17
JL
37 'core_auth_confirm_user' => array(
38 'classname' => 'core_auth_external',
39 'methodname' => 'confirm_user',
40 'description' => 'Confirm a user account.',
41 'type' => 'write',
42 'ajax' => true,
43 'loginrequired' => false,
44 ),
b6f70a37
JL
45 'core_auth_request_password_reset' => array(
46 'classname' => 'core_auth_external',
47 'methodname' => 'request_password_reset',
48 'description' => 'Requests a password reset.',
49 'type' => 'write',
50 'ajax' => true,
51 'loginrequired' => false,
52 ),
25dbbdf9
MG
53 'core_auth_is_minor' => array(
54 'classname' => 'core_auth_external',
55 'methodname' => 'is_minor',
56 'description' => 'Requests a check if a user is a digital minor.',
57 'type' => 'read',
1f7565c1
JL
58 'ajax' => true,
59 'loginrequired' => false,
60 ),
61 'core_auth_is_age_digital_consent_verification_enabled' => array(
62 'classname' => 'core_auth_external',
63 'methodname' => 'is_age_digital_consent_verification_enabled',
64 'description' => 'Checks if age digital consent verification is enabled.',
65 'type' => 'read',
66 'ajax' => true,
25dbbdf9
MG
67 'loginrequired' => false,
68 ),
f23e9b6b
CB
69 'core_badges_get_user_badges' => array(
70 'classname' => 'core_badges_external',
71 'methodname' => 'get_user_badges',
72 'description' => 'Returns the list of badges awarded to a user.',
73 'type' => 'read',
ee7295ee
JL
74 'capabilities' => 'moodle/badges:viewotherbadges',
75 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 76 ),
695c5726
AN
77 'core_calendar_get_calendar_monthly_view' => array(
78 'classname' => 'core_calendar_external',
79 'methodname' => 'get_calendar_monthly_view',
80 'description' => 'Fetch the monthly view data for a calendar',
81 'classpath' => 'calendar/externallib.php',
3ea4f446
AN
82 'type' => 'read',
83 'capabilities' => '',
84 'ajax' => true,
85 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
86 ),
87 'core_calendar_get_calendar_day_view' => array(
88 'classname' => 'core_calendar_external',
89 'methodname' => 'get_calendar_day_view',
90 'description' => 'Fetch the day view data for a calendar',
91 'classpath' => 'calendar/externallib.php',
695c5726
AN
92 'type' => 'read',
93 'capabilities' => '',
94 'ajax' => true,
95 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
96 ),
e8306438
SL
97 'core_calendar_get_calendar_upcoming_view' => array(
98 'classname' => 'core_calendar_external',
99 'methodname' => 'get_calendar_upcoming_view',
100 'description' => 'Fetch the upcoming view data for a calendar',
101 'classpath' => 'calendar/externallib.php',
102 'type' => 'read',
103 'capabilities' => '',
104 'ajax' => true,
105 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
106 ),
c6fb9310
RW
107 'core_calendar_update_event_start_day' => array(
108 'classname' => 'core_calendar_external',
109 'methodname' => 'update_event_start_day',
110 'description' => 'Update the start day (but not time) for an event.',
111 'classpath' => 'calendar/externallib.php',
112 'type' => 'write',
113 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
114 'ajax' => true,
115 ),
f23e9b6b
CB
116 'core_calendar_create_calendar_events' => array(
117 'classname' => 'core_calendar_external',
118 'methodname' => 'create_calendar_events',
119 'description' => 'Create calendar events',
120 'classpath' => 'calendar/externallib.php',
121 'type' => 'write',
e453ed68
JL
122 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
123 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 124 ),
f23e9b6b
CB
125 'core_calendar_delete_calendar_events' => array(
126 'classname' => 'core_calendar_external',
127 'methodname' => 'delete_calendar_events',
128 'description' => 'Delete calendar events',
129 'classpath' => 'calendar/externallib.php',
130 'type' => 'write',
e453ed68 131 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
542f5afa 132 'ajax' => true,
e453ed68 133 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 134 ),
f23e9b6b
CB
135 'core_calendar_get_calendar_events' => array(
136 'classname' => 'core_calendar_external',
137 'methodname' => 'get_calendar_events',
138 'description' => 'Get calendar events',
139 'classpath' => 'calendar/externallib.php',
140 'type' => 'read',
ee7295ee
JL
141 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
142 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 143 ),
c0f877fa
MN
144 'core_calendar_get_action_events_by_timesort' => array(
145 'classname' => 'core_calendar_external',
146 'methodname' => 'get_calendar_action_events_by_timesort',
147 'description' => 'Get calendar action events by tiemsort',
148 'classpath' => 'calendar/externallib.php',
149 'type' => 'read',
150 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
60774b28 151 'ajax' => true,
569d091b 152 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
60774b28
RW
153 ),
154 'core_calendar_get_action_events_by_course' => array(
155 'classname' => 'core_calendar_external',
156 'methodname' => 'get_calendar_action_events_by_course',
157 'description' => 'Get calendar action events by course',
158 'classpath' => 'calendar/externallib.php',
159 'type' => 'read',
160 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
9b8e5057 161 'ajax' => true,
569d091b 162 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9b8e5057
RW
163 ),
164 'core_calendar_get_action_events_by_courses' => array(
165 'classname' => 'core_calendar_external',
166 'methodname' => 'get_calendar_action_events_by_courses',
167 'description' => 'Get calendar action events by courses',
168 'classpath' => 'calendar/externallib.php',
169 'type' => 'read',
170 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
c0f877fa 171 'ajax' => true,
569d091b 172 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c0f877fa 173 ),
5813d1b9
SL
174 'core_calendar_get_calendar_event_by_id' => array(
175 'classname' => 'core_calendar_external',
176 'methodname' => 'get_calendar_event_by_id',
177 'description' => 'Get calendar event by id',
178 'classpath' => 'calendar/externallib.php',
179 'type' => 'read',
180 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
181 'ajax' => true,
182 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
183 ),
aa091225
RW
184 'core_calendar_submit_create_update_form' => array(
185 'classname' => 'core_calendar_external',
186 'methodname' => 'submit_create_update_form',
187 'description' => 'Submit form data for event form',
188 'classpath' => 'calendar/externallib.php',
189 'type' => 'write',
190 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
191 'ajax' => true,
192 ),
088645e2 193 'core_cohort_add_cohort_members' => array(
f23e9b6b
CB
194 'classname' => 'core_cohort_external',
195 'methodname' => 'add_cohort_members',
196 'classpath' => 'cohort/externallib.php',
088645e2 197 'description' => 'Adds cohort members.',
f23e9b6b
CB
198 'type' => 'write',
199 'capabilities' => 'moodle/cohort:assign'
200 ),
201 'core_cohort_create_cohorts' => array(
202 'classname' => 'core_cohort_external',
203 'methodname' => 'create_cohorts',
204 'classpath' => 'cohort/externallib.php',
205 'description' => 'Creates new cohorts.',
206 'type' => 'write',
207 'capabilities' => 'moodle/cohort:manage'
088645e2 208 ),
088645e2 209 'core_cohort_delete_cohort_members' => array(
f23e9b6b
CB
210 'classname' => 'core_cohort_external',
211 'methodname' => 'delete_cohort_members',
212 'classpath' => 'cohort/externallib.php',
088645e2 213 'description' => 'Deletes cohort members.',
0a4f3eb2 214 'type' => 'write',
f23e9b6b
CB
215 'capabilities' => 'moodle/cohort:assign'
216 ),
217 'core_cohort_delete_cohorts' => array(
218 'classname' => 'core_cohort_external',
219 'methodname' => 'delete_cohorts',
220 'classpath' => 'cohort/externallib.php',
221 'description' => 'Deletes all specified cohorts.',
0a4f3eb2 222 'type' => 'write',
f23e9b6b 223 'capabilities' => 'moodle/cohort:manage'
088645e2 224 ),
088645e2 225 'core_cohort_get_cohort_members' => array(
f23e9b6b
CB
226 'classname' => 'core_cohort_external',
227 'methodname' => 'get_cohort_members',
228 'classpath' => 'cohort/externallib.php',
088645e2 229 'description' => 'Returns cohort members.',
f23e9b6b
CB
230 'type' => 'read',
231 'capabilities' => 'moodle/cohort:view'
e77a0f36 232 ),
a60e8ba5
DW
233 'core_cohort_search_cohorts' => array(
234 'classname' => 'core_cohort_external',
235 'methodname' => 'search_cohorts',
236 'classpath' => 'cohort/externallib.php',
237 'description' => 'Search for cohorts.',
238 'type' => 'read',
239 'ajax' => true,
240 'capabilities' => 'moodle/cohort:view'
241 ),
f23e9b6b
CB
242 'core_cohort_get_cohorts' => array(
243 'classname' => 'core_cohort_external',
244 'methodname' => 'get_cohorts',
245 'classpath' => 'cohort/externallib.php',
246 'description' => 'Returns cohort details.',
247 'type' => 'read',
248 'capabilities' => 'moodle/cohort:view'
d3549931 249 ),
f23e9b6b
CB
250 'core_cohort_update_cohorts' => array(
251 'classname' => 'core_cohort_external',
252 'methodname' => 'update_cohorts',
253 'classpath' => 'cohort/externallib.php',
254 'description' => 'Updates existing cohorts.',
255 'type' => 'write',
256 'capabilities' => 'moodle/cohort:manage'
d3549931 257 ),
f23e9b6b
CB
258 'core_comment_get_comments' => array(
259 'classname' => 'core_comment_external',
260 'methodname' => 'get_comments',
261 'description' => 'Returns comments.',
262 'type' => 'read',
ee7295ee
JL
263 'capabilities' => 'moodle/comment:view',
264 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 265 ),
f23e9b6b
CB
266 'core_completion_get_activities_completion_status' => array(
267 'classname' => 'core_completion_external',
268 'methodname' => 'get_activities_completion_status',
269 'description' => 'Return the activities completion status for a user in a course.',
270 'type' => 'read',
ee7295ee 271 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 272 ),
f23e9b6b
CB
273 'core_completion_get_course_completion_status' => array(
274 'classname' => 'core_completion_external',
275 'methodname' => 'get_course_completion_status',
276 'description' => 'Returns course completion status.',
277 'type' => 'read',
ee7295ee
JL
278 'capabilities' => 'report/completion:view',
279 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 280 ),
f23e9b6b
CB
281 'core_completion_mark_course_self_completed' => array(
282 'classname' => 'core_completion_external',
283 'methodname' => 'mark_course_self_completed',
284 'description' => 'Update the course completion status for the current user (if course self-completion is enabled).',
285 'type' => 'write',
ee7295ee 286 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 287 ),
f23e9b6b
CB
288 'core_completion_update_activity_completion_status_manually' => array(
289 'classname' => 'core_completion_external',
290 'methodname' => 'update_activity_completion_status_manually',
291 'description' => 'Update completion status for the current user in an activity, only for activities with manual tracking.',
292 'type' => 'write',
ee7295ee 293 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 294 ),
a39918da
EEAK
295 'core_completion_override_activity_completion_status' => array(
296 'classname' => 'core_completion_external',
297 'methodname' => 'override_activity_completion_status',
298 'description' => 'Update completion status for a user in an activity by overriding it.',
299 'type' => 'write',
300 'capabilities' => 'moodle/course:overridecompletion',
301 'ajax' => true,
302 ),
f23e9b6b
CB
303 'core_course_create_categories' => array(
304 'classname' => 'core_course_external',
305 'methodname' => 'create_categories',
306 'classpath' => 'course/externallib.php',
307 'description' => 'Create course categories',
308 'type' => 'write',
309 'capabilities' => 'moodle/category:manage'
246f6da2 310 ),
f23e9b6b
CB
311 'core_course_create_courses' => array(
312 'classname' => 'core_course_external',
313 'methodname' => 'create_courses',
314 'classpath' => 'course/externallib.php',
315 'description' => 'Create new courses',
316 'type' => 'write',
317 'capabilities' => 'moodle/course:create, moodle/course:visibility'
5d1017e1 318 ),
f23e9b6b
CB
319 'core_course_delete_categories' => array(
320 'classname' => 'core_course_external',
321 'methodname' => 'delete_categories',
322 'classpath' => 'course/externallib.php',
323 'description' => 'Delete course categories',
324 'type' => 'write',
325 'capabilities' => 'moodle/category:manage'
9a0df45a 326 ),
f23e9b6b
CB
327 'core_course_delete_courses' => array(
328 'classname' => 'core_course_external',
329 'methodname' => 'delete_courses',
330 'classpath' => 'course/externallib.php',
331 'description' => 'Deletes all specified courses',
332 'type' => 'write',
333 'capabilities' => 'moodle/course:delete'
5d1017e1 334 ),
f23e9b6b
CB
335 'core_course_delete_modules' => array(
336 'classname' => 'core_course_external',
337 'methodname' => 'delete_modules',
338 'classpath' => 'course/externallib.php',
339 'description' => 'Deletes all specified module instances',
340 'type' => 'write',
341 'capabilities' => 'moodle/course:manageactivities'
9a0df45a 342 ),
f23e9b6b
CB
343 'core_course_duplicate_course' => array(
344 'classname' => 'core_course_external',
345 'methodname' => 'duplicate_course',
346 'classpath' => 'course/externallib.php',
67adb4d8 347 'description' => 'Duplicate an existing course (creating a new one).',
f23e9b6b
CB
348 'type' => 'write',
349 'capabilities' => 'moodle/backup:backupcourse, moodle/restore:restorecourse, moodle/course:create'
5d1017e1 350 ),
f23e9b6b
CB
351 'core_course_get_categories' => array(
352 'classname' => 'core_course_external',
353 'methodname' => 'get_categories',
354 'classpath' => 'course/externallib.php',
355 'description' => 'Return category details',
356 'type' => 'read',
331e038b
JL
357 'capabilities' => 'moodle/category:viewhiddencategories',
358 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 359 ),
f23e9b6b
CB
360 'core_course_get_contents' => array(
361 'classname' => 'core_course_external',
362 'methodname' => 'get_course_contents',
363 'classpath' => 'course/externallib.php',
364 'description' => 'Get course contents',
365 'type' => 'read',
ee7295ee
JL
366 'capabilities' => 'moodle/course:update, moodle/course:viewhiddencourses',
367 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 368 ),
f23e9b6b
CB
369 'core_course_get_course_module' => array(
370 'classname' => 'core_course_external',
371 'methodname' => 'get_course_module',
372 'classpath' => 'course/externallib.php',
373 'description' => 'Return information about a course module',
374 'type' => 'read',
ee7295ee 375 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 376 ),
f23e9b6b
CB
377 'core_course_get_course_module_by_instance' => array(
378 'classname' => 'core_course_external',
379 'methodname' => 'get_course_module_by_instance',
380 'classpath' => 'course/externallib.php',
381 'description' => 'Return information about a given module name and instance id',
382 'type' => 'read',
ee7295ee 383 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 384 ),
4529327a
MG
385 'core_course_get_module' => array(
386 'classname' => 'core_course_external',
387 'methodname' => 'get_module',
388 'classpath' => 'course/externallib.php',
389 'description' => 'Returns html with one activity module on course page',
390 'type' => 'read',
391 'ajax' => true,
392 ),
393 'core_course_edit_module' => array(
394 'classname' => 'core_course_external',
395 'methodname' => 'edit_module',
396 'classpath' => 'course/externallib.php',
397 'description' => 'Performs an action on course module (change visibility, duplicate, delete, etc.)',
398 'type' => 'write',
399 'ajax' => true,
400 ),
401 'core_course_edit_section' => array(
402 'classname' => 'core_course_external',
403 'methodname' => 'edit_section',
404 'classpath' => 'course/externallib.php',
405 'description' => 'Performs an action on course section (change visibility, set marker, delete)',
406 'type' => 'write',
407 'ajax' => true,
408 ),
f23e9b6b
CB
409 'core_course_get_courses' => array(
410 'classname' => 'core_course_external',
411 'methodname' => 'get_courses',
412 'classpath' => 'course/externallib.php',
413 'description' => 'Return course details',
414 'type' => 'read',
415 'capabilities' => 'moodle/course:view, moodle/course:update, moodle/course:viewhiddencourses',
5041600d 416 'ajax' => true,
ee7295ee 417 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 418 ),
f23e9b6b
CB
419 'core_course_import_course' => array(
420 'classname' => 'core_course_external',
421 'methodname' => 'import_course',
422 'classpath' => 'course/externallib.php',
423 'description' => 'Import course data from a course into another course. Does not include any user data.',
424 'type' => 'write',
425 'capabilities' => 'moodle/backup:backuptargetimport, moodle/restore:restoretargetimport'
7ce23590 426 ),
f23e9b6b
CB
427 'core_course_search_courses' => array(
428 'classname' => 'core_course_external',
429 'methodname' => 'search_courses',
430 'classpath' => 'course/externallib.php',
431 'description' => 'Search courses by (name, module, block, tag)',
432 'type' => 'read',
5041600d 433 'ajax' => true,
ee7295ee 434 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 435 ),
f23e9b6b
CB
436 'core_course_update_categories' => array(
437 'classname' => 'core_course_external',
438 'methodname' => 'update_categories',
439 'classpath' => 'course/externallib.php',
440 'description' => 'Update categories',
441 'type' => 'write',
442 'capabilities' => 'moodle/category:manage',
7ce23590 443 ),
f23e9b6b
CB
444 'core_course_update_courses' => array(
445 'classname' => 'core_course_external',
446 'methodname' => 'update_courses',
447 'classpath' => 'course/externallib.php',
448 'description' => 'Update courses',
449 'type' => 'write',
450 'capabilities' => 'moodle/course:update, moodle/course:changecategory, moodle/course:changefullname, '
451 . 'moodle/course:changeshortname, moodle/course:changeidnumber, moodle/course:changesummary, moodle/course:visibility'
7ce23590 452 ),
f23e9b6b
CB
453 'core_course_view_course' => array(
454 'classname' => 'core_course_external',
455 'methodname' => 'view_course',
456 'classpath' => 'course/externallib.php',
457 'description' => 'Log that the course was viewed',
458 'type' => 'write',
ee7295ee 459 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 460 ),
7c4e686f
JL
461 'core_course_get_activities_overview' => array(
462 'classname' => 'core_course_external',
463 'methodname' => 'get_activities_overview',
464 'classpath' => 'course/externallib.php',
e9dfeec9
MN
465 'description' => '** DEPRECATED ** Please do not call this function any more.
466 Return activities overview for the given courses.',
7c4e686f
JL
467 'type' => 'read',
468 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
469 ),
c115ff6a
JL
470 'core_course_get_user_navigation_options' => array(
471 'classname' => 'core_course_external',
472 'methodname' => 'get_user_navigation_options',
473 'classpath' => 'course/externallib.php',
474 'description' => 'Return a list of navigation options in a set of courses that are avaialable or not for the current user.',
475 'type' => 'read',
476 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
477 ),
b9050b10
JL
478 'core_course_get_user_administration_options' => array(
479 'classname' => 'core_course_external',
480 'methodname' => 'get_user_administration_options',
481 'classpath' => 'course/externallib.php',
482 'description' => 'Return a list of administration options in a set of courses that are avaialable or not for the current
483 user.',
484 'type' => 'read',
485 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
486 ),
80adabef
JL
487 'core_course_get_courses_by_field' => array(
488 'classname' => 'core_course_external',
489 'methodname' => 'get_courses_by_field',
490 'classpath' => 'course/externallib.php',
491 'description' => 'Get courses matching a specific field (id/s, shortname, idnumber, category)',
492 'type' => 'read',
493 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
494 ),
26659f62
JL
495 'core_course_check_updates' => array(
496 'classname' => 'core_course_external',
497 'methodname' => 'check_updates',
498 'classpath' => 'course/externallib.php',
499 'description' => 'Check if there is updates affecting the user for the given course and contexts.',
500 'type' => 'read',
501 'ajax' => true,
502 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
503 ),
879a8f56
JL
504 'core_course_get_updates_since' => array(
505 'classname' => 'core_course_external',
506 'methodname' => 'get_updates_since',
507 'classpath' => 'course/externallib.php',
508 'description' => 'Check if there are updates affecting the user for the given course since the given time stamp.',
509 'type' => 'read',
510 'ajax' => true,
511 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
512 ),
f23e9b6b
CB
513 'core_enrol_get_course_enrolment_methods' => array(
514 'classname' => 'core_enrol_external',
515 'methodname' => 'get_course_enrolment_methods',
516 'classpath' => 'enrol/externallib.php',
517 'description' => 'Get the list of course enrolment methods',
518 'type' => 'read',
ee7295ee 519 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d62e813 520 ),
f23e9b6b
CB
521 'core_enrol_get_enrolled_users' => array(
522 'classname' => 'core_enrol_external',
523 'methodname' => 'get_enrolled_users',
524 'classpath' => 'enrol/externallib.php',
525 'description' => 'Get enrolled users by course id.',
526 'type' => 'read',
527 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, '
ee7295ee
JL
528 . 'moodle/site:accessallgroups',
529 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7107c2f0 530 ),
f23e9b6b
CB
531 'core_enrol_get_enrolled_users_with_capability' => array(
532 'classname' => 'core_enrol_external',
533 'methodname' => 'get_enrolled_users_with_capability',
534 'classpath' => 'enrol/externallib.php',
535 'description' => 'For each course and capability specified, return a list of the users that are enrolled in the course
536 and have that capability',
537 'type' => 'read',
c0ef63eb 538 ),
a60e8ba5
DW
539 'core_enrol_get_potential_users' => array(
540 'classname' => 'core_enrol_external',
541 'methodname' => 'get_potential_users',
542 'classpath' => 'enrol/externallib.php',
543 'description' => 'Get the list of potential users to enrol',
0fa35b1a 544 'ajax' => true,
a60e8ba5
DW
545 'type' => 'read',
546 'capabilities' => 'moodle/course:enrolreview'
547 ),
f23e9b6b
CB
548 'core_enrol_get_users_courses' => array(
549 'classname' => 'core_enrol_external',
550 'methodname' => 'get_users_courses',
551 'classpath' => 'enrol/externallib.php',
552 'description' => 'Get the list of courses where a user is enrolled in',
553 'type' => 'read',
ee7295ee
JL
554 'capabilities' => 'moodle/course:viewparticipants',
555 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9857381d 556 ),
58c20c81
JP
557 'core_enrol_edit_user_enrolment' => array(
558 'classname' => 'core_enrol_external',
559 'methodname' => 'edit_user_enrolment',
560 'classpath' => 'enrol/externallib.php',
561 'description' => 'External function that updates a given user enrolment',
562 'type' => 'write',
563 'ajax' => true,
564 ),
c8351261
MG
565 'core_enrol_unenrol_user_enrolment' => array(
566 'classname' => 'core_enrol_external',
567 'methodname' => 'unenrol_user_enrolment',
568 'classpath' => 'enrol/externallib.php',
569 'description' => 'External function that unenrols a given user enrolment',
570 'type' => 'write',
571 'ajax' => true,
572 ),
f23e9b6b
CB
573 'core_fetch_notifications' => array(
574 'classname' => 'core_external',
575 'methodname' => 'fetch_notifications',
576 'classpath' => 'lib/external/externallib.php',
577 'description' => 'Return a list of notifications for the current session',
578 'type' => 'read',
5041600d
RT
579 'loginrequired' => false,
580 'ajax' => true,
5d1017e1 581 ),
5d1017e1 582 'core_files_get_files' => array(
f23e9b6b
CB
583 'classname' => 'core_files_external',
584 'methodname' => 'get_files',
249c4f60 585 'description' => 'browse moodle files',
f23e9b6b
CB
586 'type' => 'read',
587 'classpath' => 'files/externallib.php',
ee7295ee 588 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 589 ),
5d1017e1 590 'core_files_upload' => array(
f23e9b6b
CB
591 'classname' => 'core_files_external',
592 'methodname' => 'upload',
249c4f60
DC
593 'description' => 'upload a file to moodle',
594 'type' => 'write',
595 'classpath' => 'files/externallib.php',
596 ),
8b493eb0
DM
597 'core_form_get_filetypes_browser_data' => array(
598 'classname' => 'core_form\external',
599 'methodname' => 'get_filetypes_browser_data',
600 'classpath' => '',
601 'description' => 'Provides data for the filetypes element browser.',
602 'type' => 'read',
603 'loginrequired' => false,
604 'ajax' => true,
605 ),
f23e9b6b
CB
606 'core_get_component_strings' => array(
607 'classname' => 'core_external',
608 'methodname' => 'get_component_strings',
609 'classpath' => 'lib/external/externallib.php',
faeca20d
DM
610 'description' => 'Return all raw strings (with {$a->xxx}), for a specific component ' .
611 '- similar to core get_component_strings(), call',
f23e9b6b 612 'type' => 'read',
5041600d
RT
613 'loginrequired' => false,
614 'ajax' => true,
ee7295ee 615 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3364dbb5 616 ),
f23e9b6b
CB
617 'core_get_fragment' => array(
618 'classname' => 'core_external',
619 'methodname' => 'get_fragment',
620 'classpath' => 'lib/external/externallib.php',
621 'description' => 'Return a fragment for inclusion, such as a JavaScript page.',
622 'type' => 'read',
5041600d 623 'ajax' => true,
5d1017e1 624 ),
f23e9b6b
CB
625 'core_get_string' => array(
626 'classname' => 'core_external',
627 'methodname' => 'get_string',
628 'classpath' => 'lib/external/externallib.php',
629 'description' => 'Return a translated string - similar to core get_string(), call',
630 'type' => 'read',
5041600d
RT
631 'loginrequired' => false,
632 'ajax' => true,
be9bf94e 633 ),
f23e9b6b
CB
634 'core_get_strings' => array(
635 'classname' => 'core_external',
636 'methodname' => 'get_strings',
637 'classpath' => 'lib/external/externallib.php',
638 'description' => 'Return some translated strings - like several core get_string(), calls',
639 'type' => 'read',
5041600d
RT
640 'loginrequired' => false,
641 'ajax' => true,
5d1017e1 642 ),
88c2941b
RW
643 'core_get_user_dates' => array(
644 'classname' => 'core_external',
645 'methodname' => 'get_user_dates',
646 'classpath' => 'lib/external/externallib.php',
647 'description' => 'Return formatted timestamps',
648 'type' => 'read',
649 'ajax' => true,
650 ),
f23e9b6b
CB
651 'core_grades_get_grades' => array(
652 'classname' => 'core_grades_external',
653 'methodname' => 'get_grades',
aa7e371a
JL
654 'description' => '** DEPRECATED ** Please do not call this function any more.
655 Returns student course total grade and grades for activities.
f23e9b6b
CB
656 This function does not return category or manual items.
657 This function is suitable for managers or teachers not students.',
658 'type' => 'read',
659 'capabilities' => 'moodle/grade:view, moodle/grade:viewall, moodle/grade:viewhidden'
e9b66095 660 ),
f23e9b6b
CB
661 'core_grades_update_grades' => array(
662 'classname' => 'core_grades_external',
663 'methodname' => 'update_grades',
664 'description' => 'Update a grade item and associated student grades.',
665 'type' => 'write',
5d1017e1 666 ),
f23e9b6b
CB
667 'core_grading_get_definitions' => array(
668 'classname' => 'core_grading_external',
669 'methodname' => 'get_definitions',
670 'description' => 'Get grading definitions',
671 'type' => 'read',
e9b66095 672 ),
f23e9b6b
CB
673 'core_grading_get_gradingform_instances' => array(
674 'classname' => 'core_grading_external',
675 'methodname' => 'get_gradingform_instances',
676 'description' => 'Get grading form instances',
677 'type' => 'read',
f2229c68 678 ),
f23e9b6b
CB
679 'core_grading_save_definitions' => array(
680 'classname' => 'core_grading_external',
681 'methodname' => 'save_definitions',
682 'description' => 'Save grading definitions',
683 'type' => 'write',
5d1017e1 684 ),
f23e9b6b
CB
685 'core_group_add_group_members' => array(
686 'classname' => 'core_group_external',
687 'methodname' => 'add_group_members',
688 'classpath' => 'group/externallib.php',
689 'description' => 'Adds group members.',
690 'type' => 'write',
691 'capabilities' => 'moodle/course:managegroups',
6bb31e40 692 ),
f23e9b6b
CB
693 'core_group_assign_grouping' => array(
694 'classname' => 'core_group_external',
695 'methodname' => 'assign_grouping',
696 'classpath' => 'group/externallib.php',
697 'description' => 'Assing groups from groupings',
698 'type' => 'write',
740c354f 699 ),
f23e9b6b
CB
700 'core_group_create_groupings' => array(
701 'classname' => 'core_group_external',
702 'methodname' => 'create_groupings',
703 'classpath' => 'group/externallib.php',
704 'description' => 'Creates new groupings',
705 'type' => 'write',
5d1017e1 706 ),
f23e9b6b
CB
707 'core_group_create_groups' => array(
708 'classname' => 'core_group_external',
709 'methodname' => 'create_groups',
710 'classpath' => 'group/externallib.php',
711 'description' => 'Creates new groups.',
712 'type' => 'write',
713 'capabilities' => 'moodle/course:managegroups'
6bb31e40 714 ),
f23e9b6b
CB
715 'core_group_delete_group_members' => array(
716 'classname' => 'core_group_external',
717 'methodname' => 'delete_group_members',
718 'classpath' => 'group/externallib.php',
719 'description' => 'Deletes group members.',
0a4f3eb2 720 'type' => 'write',
f23e9b6b 721 'capabilities' => 'moodle/course:managegroups'
63a85dc7 722 ),
f23e9b6b
CB
723 'core_group_delete_groupings' => array(
724 'classname' => 'core_group_external',
725 'methodname' => 'delete_groupings',
726 'classpath' => 'group/externallib.php',
727 'description' => 'Deletes all specified groupings.',
79949c1b 728 'type' => 'write',
79949c1b 729 ),
f23e9b6b
CB
730 'core_group_delete_groups' => array(
731 'classname' => 'core_group_external',
732 'methodname' => 'delete_groups',
733 'classpath' => 'group/externallib.php',
734 'description' => 'Deletes all specified groups.',
0a4f3eb2 735 'type' => 'write',
f23e9b6b 736 'capabilities' => 'moodle/course:managegroups'
3dc1d76e 737 ),
f23e9b6b
CB
738 'core_group_get_activity_allowed_groups' => array(
739 'classname' => 'core_group_external',
740 'methodname' => 'get_activity_allowed_groups',
741 'classpath' => 'group/externallib.php',
742 'description' => 'Gets a list of groups that the user is allowed to access within the specified activity.',
743 'type' => 'read',
ee7295ee 744 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
791723c3 745 ),
f23e9b6b
CB
746 'core_group_get_activity_groupmode' => array(
747 'classname' => 'core_group_external',
748 'methodname' => 'get_activity_groupmode',
749 'classpath' => 'group/externallib.php',
750 'description' => 'Returns effective groupmode used in a given activity.',
751 'type' => 'read',
ee7295ee 752 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c4f7bf29 753 ),
f23e9b6b
CB
754 'core_group_get_course_groupings' => array(
755 'classname' => 'core_group_external',
756 'methodname' => 'get_course_groupings',
757 'classpath' => 'group/externallib.php',
758 'description' => 'Returns all groupings in specified course.',
759 'type' => 'read',
c5158499 760 ),
f23e9b6b
CB
761 'core_group_get_course_groups' => array(
762 'classname' => 'core_group_external',
763 'methodname' => 'get_course_groups',
764 'classpath' => 'group/externallib.php',
765 'description' => 'Returns all groups in specified course.',
766 'type' => 'read',
767 'capabilities' => 'moodle/course:managegroups'
13bb6819 768 ),
f23e9b6b
CB
769 'core_group_get_course_user_groups' => array(
770 'classname' => 'core_group_external',
771 'methodname' => 'get_course_user_groups',
772 'classpath' => 'group/externallib.php',
773 'description' => 'Returns all groups in specified course for the specified user.',
774 'type' => 'read',
ee7295ee
JL
775 'capabilities' => 'moodle/course:managegroups',
776 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3ec163dd 777 ),
f23e9b6b
CB
778 'core_group_get_group_members' => array(
779 'classname' => 'core_group_external',
780 'methodname' => 'get_group_members',
781 'classpath' => 'group/externallib.php',
782 'description' => 'Returns group members.',
783 'type' => 'read',
784 'capabilities' => 'moodle/course:managegroups'
479a5db1 785 ),
f23e9b6b
CB
786 'core_group_get_groupings' => array(
787 'classname' => 'core_group_external',
788 'methodname' => 'get_groupings',
789 'classpath' => 'group/externallib.php',
790 'description' => 'Returns groupings details.',
791 'type' => 'read',
3ec163dd 792 ),
f23e9b6b
CB
793 'core_group_get_groups' => array(
794 'classname' => 'core_group_external',
795 'methodname' => 'get_groups',
796 'classpath' => 'group/externallib.php',
797 'description' => 'Returns group details.',
798 'type' => 'read',
799 'capabilities' => 'moodle/course:managegroups'
2f951d86 800 ),
f23e9b6b
CB
801 'core_group_unassign_grouping' => array(
802 'classname' => 'core_group_external',
803 'methodname' => 'unassign_grouping',
804 'classpath' => 'group/externallib.php',
805 'description' => 'Unassing groups from groupings',
806 'type' => 'write',
8430d87b 807 ),
f23e9b6b
CB
808 'core_group_update_groupings' => array(
809 'classname' => 'core_group_external',
810 'methodname' => 'update_groupings',
811 'classpath' => 'group/externallib.php',
812 'description' => 'Updates existing groupings',
813 'type' => 'write',
5d1017e1 814 ),
f23e9b6b
CB
815 'core_message_block_contacts' => array(
816 'classname' => 'core_message_external',
817 'methodname' => 'block_contacts',
818 'classpath' => 'message/externallib.php',
819 'description' => 'Block contacts',
820 'type' => 'write',
c6e97f54 821 'ajax' => true,
ee7295ee 822 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a623b6b8 823 ),
d6731600 824 'core_message_create_contacts' => array(
f23e9b6b
CB
825 'classname' => 'core_message_external',
826 'methodname' => 'create_contacts',
827 'classpath' => 'message/externallib.php',
d6731600 828 'description' => 'Add contacts to the contact list',
f23e9b6b 829 'type' => 'write',
c6e97f54 830 'ajax' => true,
ee7295ee 831 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
12d8c7b2 832 'ajax' => true,
d6731600 833 ),
d6731600 834 'core_message_delete_contacts' => array(
f23e9b6b
CB
835 'classname' => 'core_message_external',
836 'methodname' => 'delete_contacts',
837 'classpath' => 'message/externallib.php',
d6731600 838 'description' => 'Remove contacts from the contact list',
f23e9b6b 839 'type' => 'write',
c6e97f54 840 'ajax' => true,
ee7295ee 841 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
12d8c7b2 842 'ajax' => true,
d6731600 843 ),
dec0cd99
MN
844 'core_message_delete_conversation' => array(
845 'classname' => 'core_message_external',
846 'methodname' => 'delete_conversation',
847 'classpath' => 'message/externallib.php',
848 'description' => 'Deletes a conversation.',
849 'type' => 'write',
850 'capabilities' => 'moodle/site:deleteownmessage',
851 'ajax' => true,
53522c6e 852 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
dec0cd99 853 ),
f23e9b6b
CB
854 'core_message_delete_message' => array(
855 'classname' => 'core_message_external',
856 'methodname' => 'delete_message',
857 'classpath' => 'message/externallib.php',
858 'description' => 'Deletes a message.',
859 'type' => 'write',
ee7295ee 860 'capabilities' => 'moodle/site:deleteownmessage',
3090f52f 861 'ajax' => true,
ee7295ee 862 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 863 ),
f23e9b6b
CB
864 'core_message_get_blocked_users' => array(
865 'classname' => 'core_message_external',
866 'methodname' => 'get_blocked_users',
867 'classpath' => 'message/externallib.php',
868 'description' => 'Retrieve a list of users blocked',
869 'type' => 'read',
ee7295ee 870 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 871 ),
cd03b8d7
MN
872 'core_message_data_for_messagearea_search_messages' => array(
873 'classname' => 'core_message_external',
874 'methodname' => 'data_for_messagearea_search_messages',
875 'classpath' => 'message/externallib.php',
876 'description' => 'Retrieve the template data for searching for messages',
877 'type' => 'read',
878 'ajax' => true,
53522c6e 879 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
cd03b8d7 880 ),
48e8bdba 881 'core_message_data_for_messagearea_search_users' => array(
cd03b8d7 882 'classname' => 'core_message_external',
48e8bdba 883 'methodname' => 'data_for_messagearea_search_users',
cd03b8d7
MN
884 'classpath' => 'message/externallib.php',
885 'description' => 'Retrieve the template data for searching for people',
886 'type' => 'read',
887 'ajax' => true,
888 ),
48e8bdba 889 'core_message_data_for_messagearea_search_users_in_course' => array(
cd03b8d7 890 'classname' => 'core_message_external',
48e8bdba 891 'methodname' => 'data_for_messagearea_search_users_in_course',
cd03b8d7
MN
892 'classpath' => 'message/externallib.php',
893 'description' => 'Retrieve the template data for searching for people in a course',
894 'type' => 'read',
895 'ajax' => true,
896 ),
9aa012b5
MN
897 'core_message_data_for_messagearea_conversations' => array(
898 'classname' => 'core_message_external',
899 'methodname' => 'data_for_messagearea_conversations',
900 'classpath' => 'message/externallib.php',
901 'description' => 'Retrieve the template data for the conversation list',
902 'type' => 'read',
903 'ajax' => true,
21d9f020 904 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9aa012b5
MN
905 ),
906 'core_message_data_for_messagearea_contacts' => array(
907 'classname' => 'core_message_external',
908 'methodname' => 'data_for_messagearea_contacts',
909 'classpath' => 'message/externallib.php',
910 'description' => 'Retrieve the template data for the contact list',
911 'type' => 'read',
912 'ajax' => true,
21d9f020 913 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9aa012b5 914 ),
3cd13828
MN
915 'core_message_data_for_messagearea_messages' => array(
916 'classname' => 'core_message_external',
917 'methodname' => 'data_for_messagearea_messages',
918 'classpath' => 'message/externallib.php',
919 'description' => 'Retrieve the template data for the messages',
920 'type' => 'read',
921 'ajax' => true,
21d9f020 922 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3cd13828 923 ),
c060cd49
MN
924 'core_message_data_for_messagearea_get_most_recent_message' => array(
925 'classname' => 'core_message_external',
926 'methodname' => 'data_for_messagearea_get_most_recent_message',
927 'classpath' => 'message/externallib.php',
928 'description' => 'Retrieve the template data for the most recent message',
929 'type' => 'read',
930 'ajax' => true,
931 ),
c6e97f54
MN
932 'core_message_data_for_messagearea_get_profile' => array(
933 'classname' => 'core_message_external',
934 'methodname' => 'data_for_messagearea_get_profile',
935 'classpath' => 'message/externallib.php',
936 'description' => 'Retrieve the template data for the users\'s profile',
937 'type' => 'read',
938 'ajax' => true,
939 ),
d6731600 940 'core_message_get_contacts' => array(
f23e9b6b
CB
941 'classname' => 'core_message_external',
942 'methodname' => 'get_contacts',
943 'classpath' => 'message/externallib.php',
d6731600 944 'description' => 'Retrieve the contact list',
f23e9b6b 945 'type' => 'read',
ee7295ee 946 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 947 ),
aff9da17 948 'core_message_get_messages' => array(
f23e9b6b
CB
949 'classname' => 'core_message_external',
950 'methodname' => 'get_messages',
951 'classpath' => 'message/externallib.php',
952 'description' => 'Retrieve a list of messages sent and received by a user (conversations, notifications or both)',
953 'type' => 'read',
ee7295ee 954 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3274d5ca
RW
955 'ajax' => true,
956 ),
8c55bd6c
RW
957 'core_message_get_unread_conversations_count' => array(
958 'classname' => 'core_message_external',
959 'methodname' => 'get_unread_conversations_count',
960 'classpath' => 'message/externallib.php',
961 'description' => 'Retrieve the count of unread conversations for a given user',
962 'type' => 'read',
963 'ajax' => true,
53522c6e 964 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8c55bd6c 965 ),
3274d5ca
RW
966 'core_message_mark_all_notifications_as_read' => array(
967 'classname' => 'core_message_external',
968 'methodname' => 'mark_all_notifications_as_read',
969 'classpath' => 'message/externallib.php',
8c55bd6c
RW
970 'description' => 'Mark all notifications as read for a given user',
971 'type' => 'write',
972 'ajax' => true,
53522c6e 973 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8c55bd6c
RW
974 ),
975 'core_message_mark_all_messages_as_read' => array(
976 'classname' => 'core_message_external',
977 'methodname' => 'mark_all_messages_as_read',
978 'classpath' => 'message/externallib.php',
979 'description' => 'Mark all messages as read for a given user',
3274d5ca
RW
980 'type' => 'write',
981 'ajax' => true,
53522c6e 982 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
60ab2e1b 983 ),
a84f89ca 984 'core_message_mark_message_read' => array(
f23e9b6b
CB
985 'classname' => 'core_message_external',
986 'methodname' => 'mark_message_read',
987 'classpath' => 'message/externallib.php',
988 'description' => 'Mark a single message as read, trigger message_viewed event.',
989 'type' => 'write',
ee7295ee 990 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
0b19d048 991 'ajax' => true,
a84f89ca 992 ),
a0eabdd3
RW
993 'core_message_message_processor_config_form' => array(
994 'classname' => 'core_message_external',
995 'methodname' => 'message_processor_config_form',
996 'classpath' => 'message/externallib.php',
997 'description' => 'Process the message processor config form',
998 'type' => 'write',
999 'ajax' => true,
53522c6e 1000 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a0eabdd3 1001 ),
8c125526
RW
1002 'core_message_get_message_processor' => array(
1003 'classname' => 'core_message_external',
1004 'methodname' => 'get_message_processor',
1005 'classpath' => 'message/externallib.php',
1006 'description' => 'Get a message processor',
1007 'type' => 'read',
1008 'ajax' => true,
1009 ),
f23e9b6b
CB
1010 'core_message_search_contacts' => array(
1011 'classname' => 'core_message_external',
1012 'methodname' => 'search_contacts',
1013 'classpath' => 'message/externallib.php',
1014 'description' => 'Search for contacts',
1015 'type' => 'read',
ee7295ee 1016 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
419b1128 1017 ),
f23e9b6b
CB
1018 'core_message_send_instant_messages' => array(
1019 'classname' => 'core_message_external',
1020 'methodname' => 'send_instant_messages',
1021 'classpath' => 'message/externallib.php',
1022 'description' => 'Send instant messages',
1023 'type' => 'write',
ee7295ee 1024 'capabilities' => 'moodle/site:sendmessage',
c060cd49 1025 'ajax' => true,
ee7295ee 1026 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b
CB
1027 ),
1028 'core_message_unblock_contacts' => array(
1029 'classname' => 'core_message_external',
1030 'methodname' => 'unblock_contacts',
1031 'classpath' => 'message/externallib.php',
1032 'description' => 'Unblock contacts',
1033 'type' => 'write',
c6e97f54 1034 'ajax' => true,
ee7295ee 1035 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 1036 ),
e86f0cb4
JL
1037 'core_message_get_user_notification_preferences' => array(
1038 'classname' => 'core_message_external',
1039 'methodname' => 'get_user_notification_preferences',
1040 'classpath' => 'message/externallib.php',
1041 'description' => 'Get the notification preferences for a given user.',
1042 'type' => 'read',
1043 'capabilities' => 'moodle/user:editownmessageprofile',
1044 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1045 ),
2521afd2
JL
1046 'core_message_get_user_message_preferences' => array(
1047 'classname' => 'core_message_external',
1048 'methodname' => 'get_user_message_preferences',
1049 'classpath' => 'message/externallib.php',
1050 'description' => 'Get the message preferences for a given user.',
1051 'type' => 'read',
1052 'capabilities' => 'moodle/user:editownmessageprofile',
1053 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1054 ),
5d1017e1 1055 'core_notes_create_notes' => array(
f23e9b6b
CB
1056 'classname' => 'core_notes_external',
1057 'methodname' => 'create_notes',
1058 'classpath' => 'notes/externallib.php',
8d46dabb 1059 'description' => 'Create notes',
f23e9b6b 1060 'type' => 'write',
b5b81de3 1061 'ajax' => true,
ee7295ee
JL
1062 'capabilities' => 'moodle/notes:manage',
1063 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8d46dabb 1064 ),
34348b2b 1065 'core_notes_delete_notes' => array(
f23e9b6b
CB
1066 'classname' => 'core_notes_external',
1067 'methodname' => 'delete_notes',
1068 'classpath' => 'notes/externallib.php',
34348b2b 1069 'description' => 'Delete notes',
f23e9b6b 1070 'type' => 'write',
ee7295ee
JL
1071 'capabilities' => 'moodle/notes:manage',
1072 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b
CB
1073 ),
1074 'core_notes_get_course_notes' => array(
1075 'classname' => 'core_notes_external',
1076 'methodname' => 'get_course_notes',
1077 'classpath' => 'notes/externallib.php',
1078 'description' => 'Returns all notes in specified course (or site), for the specified user.',
1079 'type' => 'read',
ee7295ee
JL
1080 'capabilities' => 'moodle/notes:view',
1081 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
34348b2b 1082 ),
34348b2b 1083 'core_notes_get_notes' => array(
f23e9b6b
CB
1084 'classname' => 'core_notes_external',
1085 'methodname' => 'get_notes',
1086 'classpath' => 'notes/externallib.php',
34348b2b 1087 'description' => 'Get notes',
f23e9b6b
CB
1088 'type' => 'read',
1089 'capabilities' => 'moodle/notes:view'
34348b2b 1090 ),
34348b2b 1091 'core_notes_update_notes' => array(
f23e9b6b
CB
1092 'classname' => 'core_notes_external',
1093 'methodname' => 'update_notes',
1094 'classpath' => 'notes/externallib.php',
34348b2b 1095 'description' => 'Update notes',
f23e9b6b
CB
1096 'type' => 'write',
1097 'capabilities' => 'moodle/notes:manage'
34348b2b 1098 ),
a80b5518 1099 'core_notes_view_notes' => array(
f23e9b6b
CB
1100 'classname' => 'core_notes_external',
1101 'methodname' => 'view_notes',
1102 'classpath' => 'notes/externallib.php',
1103 'description' => 'Simulates the web interface view of notes/index.php: trigger events.',
1104 'type' => 'write',
ee7295ee
JL
1105 'capabilities' => 'moodle/notes:view',
1106 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9028d9b5 1107 ),
f23e9b6b
CB
1108 'core_output_load_template' => array(
1109 'classname' => 'core\output\external',
1110 'methodname' => 'load_template',
1111 'description' => 'Load a template for a renderable',
1112 'type' => 'read',
5041600d
RT
1113 'loginrequired' => false,
1114 'ajax' => true,
0ff4ebb4 1115 ),
e330b1c2 1116 'core_output_load_fontawesome_icon_map' => array(
a26ce248 1117 'classname' => 'core\output\external',
e330b1c2 1118 'methodname' => 'load_fontawesome_icon_map',
a26ce248
DW
1119 'description' => 'Load the mapping of names to icons',
1120 'type' => 'read',
1121 'loginrequired' => false,
1122 'ajax' => true,
1123 ),
f23e9b6b
CB
1124 // Question related functions.
1125 'core_question_update_flag' => array(
1126 'classname' => 'core_question_external',
1127 'methodname' => 'update_flag',
1128 'description' => 'Update the flag state of a question attempt.',
1129 'type' => 'write',
1130 'capabilities' => 'moodle/question:flag',
ee7295ee 1131 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3f0ea6d8 1132 ),
680d5c5b
SL
1133 'core_question_submit_tags_form' => array(
1134 'classname' => 'core_question_external',
1135 'methodname' => 'submit_tags_form',
1136 'description' => 'Update the question tags.',
1137 'type' => 'write',
1138 'ajax' => true,
1139 ),
f23e9b6b
CB
1140 'core_rating_get_item_ratings' => array(
1141 'classname' => 'core_rating_external',
1142 'methodname' => 'get_item_ratings',
1143 'description' => 'Retrieve all the ratings for an item.',
1144 'type' => 'read',
ee7295ee
JL
1145 'capabilities' => 'moodle/rating:view',
1146 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 1147 ),
afb7799a
JL
1148 'core_rating_add_rating' => array(
1149 'classname' => 'core_rating_external',
1150 'methodname' => 'add_rating',
1151 'description' => 'Rates an item.',
1152 'type' => 'write',
1153 'capabilities' => 'moodle/rating:rate',
1154 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1155 ),
f23e9b6b
CB
1156 'core_role_assign_roles' => array(
1157 'classname' => 'core_role_external',
1158 'methodname' => 'assign_roles',
1159 'classpath' => 'enrol/externallib.php',
1160 'description' => 'Manual role assignments.',
1161 'type' => 'write',
1162 'capabilities' => 'moodle/role:assign'
0bf486a6 1163 ),
f23e9b6b
CB
1164 'core_role_unassign_roles' => array(
1165 'classname' => 'core_role_external',
1166 'methodname' => 'unassign_roles',
1167 'classpath' => 'enrol/externallib.php',
1168 'description' => 'Manual role unassignments.',
1169 'type' => 'write',
1170 'capabilities' => 'moodle/role:assign'
11e76602 1171 ),
f23e9b6b
CB
1172 'core_tag_get_tagindex' => array(
1173 'classname' => 'core_tag_external',
1174 'methodname' => 'get_tagindex',
1175 'description' => 'Gets tag index page for one tag and one tag area',
1176 'type' => 'read',
5041600d 1177 'ajax' => true,
11e76602 1178 ),
f23e9b6b
CB
1179 'core_tag_get_tags' => array(
1180 'classname' => 'core_tag_external',
1181 'methodname' => 'get_tags',
1182 'description' => 'Gets tags by their ids',
1183 'type' => 'read',
5041600d 1184 'ajax' => true,
11e76602 1185 ),
f23e9b6b
CB
1186 'core_tag_update_tags' => array(
1187 'classname' => 'core_tag_external',
1188 'methodname' => 'update_tags',
1189 'description' => 'Updates tags',
1190 'type' => 'write',
5041600d 1191 'ajax' => true,
cc73ea07 1192 ),
cdc5f978 1193 'core_update_inplace_editable' => array(
f23e9b6b
CB
1194 'classname' => 'core_external',
1195 'methodname' => 'update_inplace_editable',
1196 'classpath' => 'lib/external/externallib.php',
cdc5f978 1197 'description' => 'Generic service to update title',
f23e9b6b 1198 'type' => 'write',
5041600d
RT
1199 'loginrequired' => true,
1200 'ajax' => true,
c66dc3df 1201 ),
f23e9b6b
CB
1202 'core_user_add_user_device' => array(
1203 'classname' => 'core_user_external',
1204 'methodname' => 'add_user_device',
1205 'classpath' => 'user/externallib.php',
1206 'description' => 'Store mobile user devices information for PUSH Notifications.',
1207 'type' => 'write',
ee7295ee 1208 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9bdcf579 1209 ),
f23e9b6b
CB
1210 'core_user_add_user_private_files' => array(
1211 'classname' => 'core_user_external',
1212 'methodname' => 'add_user_private_files',
1213 'classpath' => 'user/externallib.php',
1214 'description' => 'Copy files from a draft area to users private files area.',
1215 'type' => 'write',
ee7295ee
JL
1216 'capabilities' => 'moodle/user:manageownfiles',
1217 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
25c49a85 1218 ),
f23e9b6b
CB
1219 'core_user_create_users' => array(
1220 'classname' => 'core_user_external',
1221 'methodname' => 'create_users',
1222 'classpath' => 'user/externallib.php',
1223 'description' => 'Create users.',
1224 'type' => 'write',
1225 'capabilities' => 'moodle/user:create'
23b398fc 1226 ),
f23e9b6b
CB
1227 'core_user_delete_users' => array(
1228 'classname' => 'core_user_external',
1229 'methodname' => 'delete_users',
1230 'classpath' => 'user/externallib.php',
1231 'description' => 'Delete users.',
1232 'type' => 'write',
1233 'capabilities' => 'moodle/user:delete'
6c785afa 1234 ),
f23e9b6b
CB
1235 'core_user_get_course_user_profiles' => array(
1236 'classname' => 'core_user_external',
1237 'methodname' => 'get_course_user_profiles',
1238 'classpath' => 'user/externallib.php',
1239 'description' => 'Get course user profiles (each of the profils matching a course id and a user id),.',
1240 'type' => 'read',
1241 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, '
ee7295ee
JL
1242 . 'moodle/site:accessallgroups',
1243 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
6c785afa 1244 ),
f23e9b6b
CB
1245 'core_user_get_users' => array(
1246 'classname' => 'core_user_external',
1247 'methodname' => 'get_users',
1248 'classpath' => 'user/externallib.php',
1249 'description' => 'search for users matching the parameters',
1250 'type' => 'read',
1251 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'
db5b6971 1252 ),
f23e9b6b
CB
1253 'core_user_get_users_by_field' => array(
1254 'classname' => 'core_user_external',
1255 'methodname' => 'get_users_by_field',
1256 'classpath' => 'user/externallib.php',
1257 'description' => 'Retrieve users\' information for a specified unique field - If you want to do a user search, use '
1258 . 'core_user_get_users()',
1259 'type' => 'read',
ee7295ee 1260 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
5041600d 1261 'ajax' => true,
ee7295ee 1262 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8e355853 1263 ),
f23e9b6b
CB
1264 'core_user_remove_user_device' => array(
1265 'classname' => 'core_user_external',
1266 'methodname' => 'remove_user_device',
1267 'classpath' => 'user/externallib.php',
1268 'description' => 'Remove a user device from the Moodle database.',
1269 'type' => 'write',
ee7295ee 1270 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
ef4c23cc 1271 ),
c598f278 1272 'core_user_update_users' => array(
a0eabdd3 1273 'classname' => 'core_user_external',
c598f278 1274 'methodname' => 'update_users',
a0eabdd3 1275 'classpath' => 'user/externallib.php',
c598f278 1276 'description' => 'Update users.',
a0eabdd3
RW
1277 'type' => 'write',
1278 'capabilities' => 'moodle/user:update',
1279 'ajax' => true,
1280 ),
c598f278 1281 'core_user_update_user_preferences' => array(
f23e9b6b 1282 'classname' => 'core_user_external',
c598f278 1283 'methodname' => 'update_user_preferences',
f23e9b6b 1284 'classpath' => 'user/externallib.php',
c598f278 1285 'description' => 'Update a user\'s preferences',
f23e9b6b 1286 'type' => 'write',
c598f278 1287 'capabilities' => 'moodle/user:editownmessageprofile, moodle/user:editmessageprofile',
a0eabdd3 1288 'ajax' => true,
6d2f938c 1289 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c026a28d 1290 ),
f23e9b6b
CB
1291 'core_user_view_user_list' => array(
1292 'classname' => 'core_user_external',
1293 'methodname' => 'view_user_list',
1294 'classpath' => 'user/externallib.php',
1295 'description' => 'Simulates the web-interface view of user/index.php (triggering events),.',
1296 'type' => 'write',
1297 'capabilities' => 'moodle/course:viewparticipants',
ee7295ee 1298 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7361b968 1299 ),
f23e9b6b
CB
1300 'core_user_view_user_profile' => array(
1301 'classname' => 'core_user_external',
1302 'methodname' => 'view_user_profile',
1303 'classpath' => 'user/externallib.php',
1304 'description' => 'Simulates the web-interface view of user/view.php and user/profile.php (triggering events),.',
1305 'type' => 'write',
1306 'capabilities' => 'moodle/user:viewdetails',
ee7295ee 1307 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f4fb827e 1308 ),
45fec983
JL
1309 'core_user_get_user_preferences' => array(
1310 'classname' => 'core_user_external',
1311 'methodname' => 'get_user_preferences',
1312 'classpath' => 'user/externallib.php',
1313 'description' => 'Return user preferences.',
1314 'type' => 'read',
1315 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1316 ),
d44e2e42
JL
1317 'core_user_update_picture' => array(
1318 'classname' => 'core_user_external',
1319 'methodname' => 'update_picture',
1320 'classpath' => 'user/externallib.php',
1321 'description' => 'Update or delete the user picture in the site',
1322 'type' => 'write',
1323 'capabilities' => 'moodle/user:editownprofile, moodle/user:editprofile',
1324 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1325 ),
649777fb
JL
1326 'core_user_set_user_preferences' => array(
1327 'classname' => 'core_user_external',
1328 'methodname' => 'set_user_preferences',
1329 'classpath' => 'user/externallib.php',
1330 'description' => 'Set user preferences.',
1331 'type' => 'write',
1332 'capabilities' => 'moodle/site:config',
1333 ),
3e8145a3
JL
1334 'core_user_agree_site_policy' => array(
1335 'classname' => 'core_user_external',
1336 'methodname' => 'agree_site_policy',
1337 'classpath' => 'user/externallib.php',
1338 'description' => 'Agree the site policy for the current user.',
1339 'type' => 'write',
1340 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1341 ),
f74ac6e7
JL
1342 'core_user_get_private_files_info' => array(
1343 'classname' => 'core_user_external',
1344 'methodname' => 'get_private_files_info',
1345 'classpath' => 'user/externallib.php',
1346 'description' => 'Returns general information about files in the user private files area.',
1347 'type' => 'read',
1348 'capabilities' => 'moodle/user:manageownfiles',
1349 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1350 ),
649777fb 1351
81de839f
FM
1352 // Competencies functions.
1353 'core_competency_create_competency_framework' => array(
1354 'classname' => 'core_competency\external',
1355 'methodname' => 'create_competency_framework',
1356 'classpath' => '',
1357 'description' => 'Creates new competency frameworks.',
1358 'type' => 'write',
1359 'capabilities' => 'moodle/competency:competencymanage',
1360 'ajax' => true,
1361 ),
1362 'core_competency_read_competency_framework' => array(
1363 'classname' => 'core_competency\external',
1364 'methodname' => 'read_competency_framework',
1365 'classpath' => '',
1366 'description' => 'Load a summary of a competency framework.',
1367 'type' => 'read',
1368 'capabilities' => 'moodle/competency:competencyview',
1369 'ajax' => true,
1370 ),
1371 'core_competency_duplicate_competency_framework' => array(
1372 'classname' => 'core_competency\external',
1373 'methodname' => 'duplicate_competency_framework',
1374 'classpath' => '',
1375 'description' => 'Duplicate a competency framework.',
1376 'type' => 'write',
1377 'capabilities' => 'moodle/competency:competencymanage',
1378 'ajax' => true,
1379 ),
1380 'core_competency_delete_competency_framework' => array(
1381 'classname' => 'core_competency\external',
1382 'methodname' => 'delete_competency_framework',
1383 'classpath' => '',
1384 'description' => 'Delete a competency framework.',
1385 'type' => 'write',
1386 'capabilities' => 'moodle/competency:competencymanage',
1387 'ajax' => true,
1388 ),
1389 'core_competency_update_competency_framework' => array(
1390 'classname' => 'core_competency\external',
1391 'methodname' => 'update_competency_framework',
1392 'classpath' => '',
1393 'description' => 'Update a competency framework.',
1394 'type' => 'write',
1395 'capabilities' => 'moodle/competency:competencymanage',
1396 'ajax' => true,
1397 ),
1398 'core_competency_list_competency_frameworks' => array(
1399 'classname' => 'core_competency\external',
1400 'methodname' => 'list_competency_frameworks',
1401 'classpath' => '',
1402 'description' => 'Load a list of a competency frameworks.',
1403 'type' => 'read',
1404 'capabilities' => 'moodle/competency:competencyview',
1405 'ajax' => true,
1406 ),
1407 'core_competency_count_competency_frameworks' => array(
1408 'classname' => 'core_competency\external',
1409 'methodname' => 'count_competency_frameworks',
1410 'classpath' => '',
1411 'description' => 'Count a list of a competency frameworks.',
1412 'type' => 'read',
1413 'capabilities' => 'moodle/competency:competencyview',
1414 'ajax' => true,
1415 ),
1416 'core_competency_competency_framework_viewed' => array(
1417 'classname' => 'core_competency\external',
1418 'methodname' => 'competency_framework_viewed',
1419 'classpath' => '',
1420 'description' => 'Log event competency framework viewed',
1421 'type' => 'read',
1422 'capabilities' => 'moodle/competency:competencyview',
1423 'ajax' => true,
1424 ),
1425 'core_competency_create_competency' => array(
1426 'classname' => 'core_competency\external',
1427 'methodname' => 'create_competency',
1428 'classpath' => '',
1429 'description' => 'Creates new competencies.',
1430 'type' => 'write',
1431 'capabilities' => 'moodle/competency:competencymanage',
1432 'ajax' => true,
1433 ),
1434 'core_competency_read_competency' => array(
1435 'classname' => 'core_competency\external',
1436 'methodname' => 'read_competency',
1437 'classpath' => '',
1438 'description' => 'Load a summary of a competency.',
1439 'type' => 'read',
1440 'capabilities' => 'moodle/competency:competencyview',
1441 'ajax' => true,
1442 ),
1443 'core_competency_competency_viewed' => array(
1444 'classname' => 'core_competency\external',
1445 'methodname' => 'competency_viewed',
1446 'classpath' => '',
1447 'description' => 'Log event competency viewed',
1448 'type' => 'read',
1449 'capabilities' => 'moodle/competency:competencyview',
1450 'ajax' => true,
3123c2cf 1451 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1452 ),
1453 'core_competency_delete_competency' => array(
1454 'classname' => 'core_competency\external',
1455 'methodname' => 'delete_competency',
1456 'classpath' => '',
1457 'description' => 'Delete a competency.',
1458 'type' => 'write',
1459 'capabilities' => 'moodle/competency:competencymanage',
1460 'ajax' => true,
1461 ),
1462 'core_competency_update_competency' => array(
1463 'classname' => 'core_competency\external',
1464 'methodname' => 'update_competency',
1465 'classpath' => '',
1466 'description' => 'Update a competency.',
1467 'type' => 'write',
1468 'capabilities' => 'moodle/competency:competencymanage',
1469 'ajax' => true,
1470 ),
1471 'core_competency_list_competencies' => array(
1472 'classname' => 'core_competency\external',
1473 'methodname' => 'list_competencies',
1474 'classpath' => '',
1475 'description' => 'Load a list of a competencies.',
1476 'type' => 'read',
1477 'capabilities' => 'moodle/competency:competencyview',
1478 'ajax' => true,
1479 ),
1480 'core_competency_list_competencies_in_template' => array(
1481 'classname' => 'core_competency\external',
1482 'methodname' => 'list_competencies_in_template',
1483 'classpath' => '',
1484 'description' => 'Load a list of a competencies for a given template.',
1485 'type' => 'read',
1486 'capabilities' => 'moodle/competency:competencyview',
1487 'ajax' => true,
1488 ),
1489 'core_competency_count_competencies' => array(
1490 'classname' => 'core_competency\external',
1491 'methodname' => 'count_competencies',
1492 'classpath' => '',
1493 'description' => 'Count a list of a competencies.',
1494 'type' => 'read',
1495 'capabilities' => 'moodle/competency:competencyview',
1496 'ajax' => true,
1497 ),
1498 'core_competency_count_competencies_in_template' => array(
1499 'classname' => 'core_competency\external',
1500 'methodname' => 'count_competencies_in_template',
1501 'classpath' => '',
1502 'description' => 'Count a list of a competencies for a given template.',
1503 'type' => 'read',
1504 'capabilities' => 'moodle/competency:competencyview',
1505 'ajax' => true,
1506 ),
1507 'core_competency_search_competencies' => array(
1508 'classname' => 'core_competency\external',
1509 'methodname' => 'search_competencies',
1510 'classpath' => '',
1511 'description' => 'Search a list of a competencies.',
1512 'type' => 'read',
1513 'capabilities' => 'moodle/competency:competencyview',
1514 'ajax' => true,
1515 ),
1516 'core_competency_set_parent_competency' => array(
1517 'classname' => 'core_competency\external',
1518 'methodname' => 'set_parent_competency',
1519 'classpath' => '',
1520 'description' => 'Set a new parent for a competency.',
1521 'type' => 'write',
1522 'capabilities' => 'moodle/competency:competencymanage',
1523 'ajax' => true,
1524 ),
1525 'core_competency_move_up_competency' => array(
1526 'classname' => 'core_competency\external',
1527 'methodname' => 'move_up_competency',
1528 'classpath' => '',
1529 'description' => 'Re-order a competency.',
1530 'type' => 'write',
1531 'capabilities' => 'moodle/competency:competencymanage',
1532 'ajax' => true,
1533 ),
1534 'core_competency_move_down_competency' => array(
1535 'classname' => 'core_competency\external',
1536 'methodname' => 'move_down_competency',
1537 'classpath' => '',
1538 'description' => 'Re-order a competency.',
1539 'type' => 'write',
1540 'capabilities' => 'moodle/competency:competencymanage',
1541 'ajax' => true,
1542 ),
1543 'core_competency_list_course_competencies' => array(
1544 'classname' => 'core_competency\external',
1545 'methodname' => 'list_course_competencies',
1546 'classpath' => '',
1547 'description' => 'List the competencies in a course',
1548 'type' => 'read',
1549 'capabilities' => 'moodle/competency:coursecompetencyview',
1550 'ajax' => true,
3123c2cf 1551 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1552 ),
1553 'core_competency_count_competencies_in_course' => array(
1554 'classname' => 'core_competency\external',
1555 'methodname' => 'count_competencies_in_course',
1556 'classpath' => '',
1557 'description' => 'List the competencies in a course',
1558 'type' => 'read',
1559 'capabilities' => 'moodle/competency:coursecompetencyview',
1560 'ajax' => true,
1561 ),
1562 'core_competency_count_courses_using_competency' => array(
1563 'classname' => 'core_competency\external',
1564 'methodname' => 'count_courses_using_competency',
1565 'classpath' => '',
1566 'description' => 'List the courses using a competency',
1567 'type' => 'read',
1568 'capabilities' => 'moodle/competency:coursecompetencyview',
1569 'ajax' => true,
1570 ),
1571 'core_competency_add_competency_to_course' => array(
1572 'classname' => 'core_competency\external',
1573 'methodname' => 'add_competency_to_course',
1574 'classpath' => '',
1575 'description' => 'Add the competency to a course',
1576 'type' => 'write',
1577 'capabilities' => 'moodle/competency:coursecompetencymanage',
1578 'ajax' => true,
1579 ),
1580 'core_competency_add_competency_to_template' => array(
1581 'classname' => 'core_competency\external',
1582 'methodname' => 'add_competency_to_template',
1583 'classpath' => '',
1584 'description' => 'Add the competency to a template',
1585 'type' => 'write',
1586 'capabilities' => 'moodle/competency:templatemanage',
1587 'ajax' => true,
1588 ),
1589 'core_competency_remove_competency_from_course' => array(
1590 'classname' => 'core_competency\external',
1591 'methodname' => 'remove_competency_from_course',
1592 'classpath' => '',
1593 'description' => 'Remove a competency from a course',
1594 'type' => 'write',
1595 'capabilities' => 'moodle/competency:coursecompetencymanage',
1596 'ajax' => true,
1597 ),
1598 'core_competency_set_course_competency_ruleoutcome' => array(
1599 'classname' => 'core_competency\external',
1600 'methodname' => 'set_course_competency_ruleoutcome',
1601 'classpath' => '',
1602 'description' => 'Modify the ruleoutcome value for course competency',
1603 'type' => 'write',
1604 'capabilities' => 'moodle/competency:coursecompetencymanage',
1605 'ajax' => true,
1606 ),
1607 'core_competency_remove_competency_from_template' => array(
1608 'classname' => 'core_competency\external',
1609 'methodname' => 'remove_competency_from_template',
1610 'classpath' => '',
1611 'description' => 'Remove a competency from a template',
1612 'type' => 'write',
1613 'capabilities' => 'moodle/competency:templatemanage',
1614 'ajax' => true,
1615 ),
1616 'core_competency_reorder_course_competency' => array(
1617 'classname' => 'core_competency\external',
1618 'methodname' => 'reorder_course_competency',
1619 'classpath' => '',
1620 'description' => 'Move a course competency to a new relative sort order.',
1621 'type' => 'write',
1622 'capabilities' => 'moodle/competency:coursecompetencymanage',
1623 'ajax' => true,
1624 ),
1625 'core_competency_reorder_template_competency' => array(
1626 'classname' => 'core_competency\external',
1627 'methodname' => 'reorder_template_competency',
1628 'classpath' => '',
1629 'description' => 'Move a template competency to a new relative sort order.',
1630 'type' => 'write',
1631 'capabilities' => 'moodle/competency:templatemanage',
1632 'ajax' => true,
1633 ),
1634 'core_competency_create_template' => array(
1635 'classname' => 'core_competency\external',
1636 'methodname' => 'create_template',
1637 'classpath' => '',
1638 'description' => 'Creates new learning plan templates.',
1639 'type' => 'write',
1640 'capabilities' => 'moodle/competency:templatemanage',
1641 'ajax' => true,
1642 ),
1643 'core_competency_duplicate_template' => array(
1644 'classname' => 'core_competency\external',
1645 'methodname' => 'duplicate_template',
1646 'classpath' => '',
1647 'description' => 'Duplicate learning plan template.',
1648 'type' => 'write',
1649 'capabilities' => 'moodle/competency:templatemanage',
1650 'ajax' => true,
1651 ),
1652 'core_competency_read_template' => array(
1653 'classname' => 'core_competency\external',
1654 'methodname' => 'read_template',
1655 'classpath' => '',
1656 'description' => 'Load a summary of a learning plan template.',
1657 'type' => 'read',
1658 'capabilities' => 'moodle/competency:templateview',
1659 'ajax' => true,
1660 ),
1661 'core_competency_delete_template' => array(
1662 'classname' => 'core_competency\external',
1663 'methodname' => 'delete_template',
1664 'classpath' => '',
1665 'description' => 'Delete a learning plan template.',
1666 'type' => 'write',
1667 'capabilities' => 'moodle/competency:templatemanage',
1668 'ajax' => true,
1669 ),
1670 'core_competency_update_template' => array(
1671 'classname' => 'core_competency\external',
1672 'methodname' => 'update_template',
1673 'classpath' => '',
1674 'description' => 'Update a learning plan template.',
1675 'type' => 'write',
1676 'capabilities' => 'moodle/competency:templatemanage',
1677 'ajax' => true,
1678 ),
1679 'core_competency_list_templates' => array(
1680 'classname' => 'core_competency\external',
1681 'methodname' => 'list_templates',
1682 'classpath' => '',
1683 'description' => 'Load a list of a learning plan templates.',
1684 'type' => 'read',
1685 'capabilities' => 'moodle/competency:templateview',
1686 'ajax' => true,
1687 ),
1688 'core_competency_list_templates_using_competency' => array(
1689 'classname' => 'core_competency\external',
1690 'methodname' => 'list_templates_using_competency',
1691 'classpath' => '',
1692 'description' => 'Load a list of a learning plan templates for a given competency.',
1693 'type' => 'read',
1694 'capabilities' => 'moodle/competency:templateview',
1695 'ajax' => true,
1696 ),
1697 'core_competency_count_templates' => array(
1698 'classname' => 'core_competency\external',
1699 'methodname' => 'count_templates',
1700 'classpath' => '',
1701 'description' => 'Count a list of a learning plan templates.',
1702 'type' => 'read',
1703 'capabilities' => 'moodle/competency:templateview',
1704 'ajax' => true,
1705 ),
1706 'core_competency_count_templates_using_competency' => array(
1707 'classname' => 'core_competency\external',
1708 'methodname' => 'count_templates_using_competency',
1709 'classpath' => '',
1710 'description' => 'Count a list of a learning plan templates for a given competency.',
1711 'type' => 'read',
1712 'capabilities' => 'moodle/competency:templateview',
1713 'ajax' => true,
1714 ),
1715 'core_competency_create_plan' => array(
1716 'classname' => 'core_competency\external',
1717 'methodname' => 'create_plan',
1718 'classpath' => '',
1719 'description' => 'Creates a learning plan.',
1720 'type' => 'write',
1721 'capabilities' => 'moodle/competency:planmanage',
1722 'ajax' => true,
1723 ),
1724 'core_competency_update_plan' => array(
1725 'classname' => 'core_competency\external',
1726 'methodname' => 'update_plan',
1727 'classpath' => '',
1728 'description' => 'Updates a learning plan.',
1729 'type' => 'write',
1730 'capabilities' => 'moodle/competency:planmanage',
1731 'ajax' => true,
1732 ),
1733 'core_competency_complete_plan' => array(
1734 'classname' => 'core_competency\external',
1735 'methodname' => 'complete_plan',
1736 'classpath' => '',
1737 'description' => 'Complete learning plan.',
1738 'type' => 'write',
1739 'capabilities' => 'moodle/competency:planmanage',
1740 'ajax' => true,
1741 ),
1742 'core_competency_reopen_plan' => array(
1743 'classname' => 'core_competency\external',
1744 'methodname' => 'reopen_plan',
1745 'classpath' => '',
1746 'description' => 'Reopen learning plan.',
1747 'type' => 'write',
1748 'capabilities' => 'moodle/competency:planmanage',
1749 'ajax' => true,
1750 ),
1751 'core_competency_read_plan' => array(
1752 'classname' => 'core_competency\external',
1753 'methodname' => 'read_plan',
1754 'classpath' => '',
1755 'description' => 'Load a learning plan.',
1756 'type' => 'read',
1757 'capabilities' => 'moodle/competency:planviewown',
1758 'ajax' => true,
1759 ),
1760 'core_competency_delete_plan' => array(
1761 'classname' => 'core_competency\external',
1762 'methodname' => 'delete_plan',
1763 'classpath' => '',
1764 'description' => 'Delete a learning plan.',
1765 'type' => 'write',
1766 'capabilities' => 'moodle/competency:planmanage',
1767 'ajax' => true,
1768 ),
1769 'core_competency_list_user_plans' => array(
1770 'classname' => 'core_competency\external',
1771 'methodname' => 'list_user_plans',
1772 'classpath' => '',
1773 'description' => 'List a user\'s learning plans.',
1774 'type' => 'read',
1775 'capabilities' => 'moodle/competency:planviewown',
1776 'ajax' => true,
1777 ),
1778 'core_competency_list_plan_competencies' => array(
1779 'classname' => 'core_competency\external',
1780 'methodname' => 'list_plan_competencies',
1781 'classpath' => '',
1782 'description' => 'List the competencies in a plan',
1783 'type' => 'read',
1784 'capabilities' => 'moodle/competency:planviewown',
1785 'ajax' => true,
1786 ),
1787 'core_competency_add_competency_to_plan' => array(
1788 'classname' => 'core_competency\external',
1789 'methodname' => 'add_competency_to_plan',
1790 'classpath' => '',
1791 'description' => 'Add the competency to a learning plan',
1792 'type' => 'write',
1793 'capabilities' => 'moodle/competency:planmanage',
1794 'ajax' => true,
1795 ),
1796 'core_competency_remove_competency_from_plan' => array(
1797 'classname' => 'core_competency\external',
1798 'methodname' => 'remove_competency_from_plan',
1799 'classpath' => '',
1800 'description' => 'Remove the competency from a learning plan',
1801 'type' => 'write',
1802 'capabilities' => 'moodle/competency:planmanage',
1803 'ajax' => true,
1804 ),
1805 'core_competency_reorder_plan_competency' => array(
1806 'classname' => 'core_competency\external',
1807 'methodname' => 'reorder_plan_competency',
1808 'classpath' => '',
1809 'description' => 'Move a plan competency to a new relative sort order.',
1810 'type' => 'write',
1811 'capabilities' => 'moodle/competency:planmanage',
1812 'ajax' => true,
1813 ),
1814 'core_competency_plan_request_review' => array(
1815 'classname' => 'core_competency\external',
1816 'methodname' => 'plan_request_review',
1817 'classpath' => '',
1818 'description' => 'Request for a plan to be reviewed.',
1819 'type' => 'write',
1820 'capabilities' => 'moodle/competency:planmanagedraft',
1821 'ajax' => true,
1822 ),
1823 'core_competency_plan_start_review' => array(
1824 'classname' => 'core_competency\external',
1825 'methodname' => 'plan_start_review',
1826 'classpath' => '',
1827 'description' => 'Start the review of a plan.',
1828 'type' => 'write',
1829 'capabilities' => 'moodle/competency:planmanage',
1830 'ajax' => true,
1831 ),
1832 'core_competency_plan_stop_review' => array(
1833 'classname' => 'core_competency\external',
1834 'methodname' => 'plan_stop_review',
1835 'classpath' => '',
1836 'description' => 'Stop the review of a plan.',
1837 'type' => 'write',
1838 'capabilities' => 'moodle/competency:planmanage',
1839 'ajax' => true,
1840 ),
1841 'core_competency_plan_cancel_review_request' => array(
1842 'classname' => 'core_competency\external',
1843 'methodname' => 'plan_cancel_review_request',
1844 'classpath' => '',
1845 'description' => 'Cancel the review of a plan.',
1846 'type' => 'write',
1847 'capabilities' => 'moodle/competency:planmanagedraft',
1848 'ajax' => true,
1849 ),
1850 'core_competency_approve_plan' => array(
1851 'classname' => 'core_competency\external',
1852 'methodname' => 'approve_plan',
1853 'classpath' => '',
1854 'description' => 'Approve a plan.',
1855 'type' => 'write',
1856 'capabilities' => 'moodle/competency:planmanage',
1857 'ajax' => true,
1858 ),
1859 'core_competency_unapprove_plan' => array(
1860 'classname' => 'core_competency\external',
1861 'methodname' => 'unapprove_plan',
1862 'classpath' => '',
1863 'description' => 'Unapprove a plan.',
1864 'type' => 'write',
1865 'capabilities' => 'moodle/competency:planmanage',
1866 'ajax' => true,
1867 ),
1868 'core_competency_template_has_related_data' => array(
1869 'classname' => 'core_competency\external',
1870 'methodname' => 'template_has_related_data',
1871 'classpath' => '',
1872 'description' => 'Check if a template has related data',
1873 'type' => 'read',
1874 'capabilities' => 'moodle/competency:templateview',
1875 'ajax' => true,
1876 ),
1877 'core_competency_get_scale_values' => array(
1878 'classname' => 'core_competency\external',
1879 'methodname' => 'get_scale_values',
1880 'classpath' => '',
1881 'description' => 'Fetch the values for a specific scale',
1882 'type' => 'read',
1883 'capabilities' => 'moodle/competency:competencymanage',
1884 'ajax' => true,
3123c2cf 1885 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1886 ),
1887 'core_competency_add_related_competency' => array(
1888 'classname' => 'core_competency\external',
1889 'methodname' => 'add_related_competency',
1890 'classpath' => '',
1891 'description' => 'Adds a related competency',
1892 'type' => 'write',
1893 'capabilities' => 'moodle/competency:competencymanage',
1894 'ajax' => true,
1895 ),
1896 'core_competency_remove_related_competency' => array(
1897 'classname' => 'core_competency\external',
1898 'methodname' => 'remove_related_competency',
1899 'classpath' => '',
1900 'description' => 'Remove a related competency',
1901 'type' => 'write',
1902 'capabilities' => 'moodle/competency:competencymanage',
1903 'ajax' => true,
1904 ),
1905 'core_competency_read_user_evidence' => array(
1906 'classname' => 'core_competency\external',
1907 'methodname' => 'read_user_evidence',
1908 'classpath' => '',
1909 'description' => 'Read an evidence of prior learning.',
1910 'type' => 'read',
1911 'capabilities' => 'moodle/competency:userevidenceview',
1912 'ajax' => true,
1913 ),
1914 'core_competency_delete_user_evidence' => array(
1915 'classname' => 'core_competency\external',
1916 'methodname' => 'delete_user_evidence',
1917 'classpath' => '',
1918 'description' => 'Delete an evidence of prior learning.',
1919 'type' => 'write',
1920 'capabilities' => 'moodle/competency:userevidencemanageown',
1921 'ajax' => true,
1922 ),
1923 'core_competency_create_user_evidence_competency' => array(
1924 'classname' => 'core_competency\external',
1925 'methodname' => 'create_user_evidence_competency',
1926 'classpath' => '',
1927 'description' => 'Create an evidence of prior learning relationship with a competency.',
1928 'type' => 'read',
1929 'capabilities' => 'moodle/competency:userevidencemanageown, moodle/competency:competencyview',
1930 'ajax' => true,
1931 ),
1932 'core_competency_delete_user_evidence_competency' => array(
1933 'classname' => 'core_competency\external',
1934 'methodname' => 'delete_user_evidence_competency',
1935 'classpath' => '',
1936 'description' => 'Delete an evidence of prior learning relationship with a competency.',
1937 'type' => 'write',
1938 'capabilities' => 'moodle/competency:userevidencemanageown',
1939 'ajax' => true,
1940 ),
1941 'core_competency_user_competency_cancel_review_request' => array(
1942 'classname' => 'core_competency\external',
1943 'methodname' => 'user_competency_cancel_review_request',
1944 'classpath' => '',
1945 'description' => 'Cancel a review request.',
1946 'type' => 'write',
1947 'capabilities' => 'moodle/competency:userevidencemanageown',
1948 'ajax' => true,
1949 ),
1950 'core_competency_user_competency_request_review' => array(
1951 'classname' => 'core_competency\external',
1952 'methodname' => 'user_competency_request_review',
1953 'classpath' => '',
1954 'description' => 'Request a review.',
1955 'type' => 'write',
1956 'capabilities' => 'moodle/competency:userevidencemanageown',
1957 'ajax' => true,
1958 ),
1959 'core_competency_user_competency_start_review' => array(
1960 'classname' => 'core_competency\external',
1961 'methodname' => 'user_competency_start_review',
1962 'classpath' => '',
1963 'description' => 'Start a review.',
1964 'type' => 'write',
1965 'capabilities' => 'moodle/competency:competencygrade',
1966 'ajax' => true,
1967 ),
1968 'core_competency_user_competency_stop_review' => array(
1969 'classname' => 'core_competency\external',
1970 'methodname' => 'user_competency_stop_review',
1971 'classpath' => '',
1972 'description' => 'Stop a review.',
1973 'type' => 'write',
1974 'capabilities' => 'moodle/competency:competencygrade',
1975 'ajax' => true,
1976 ),
1977 'core_competency_user_competency_viewed' => array(
1978 'classname' => 'core_competency\external',
1979 'methodname' => 'user_competency_viewed',
1980 'classpath' => '',
1981 'description' => 'Log the user competency viewed event.',
1982 'type' => 'read',
1983 'capabilities' => 'moodle/competency:usercompetencyview',
1984 'ajax' => true,
3123c2cf 1985 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1986 ),
1987 'core_competency_user_competency_viewed_in_plan' => array(
1988 'classname' => 'core_competency\external',
1989 'methodname' => 'user_competency_viewed_in_plan',
1990 'classpath' => '',
1991 'description' => 'Log the user competency viewed in plan event.',
1992 'type' => 'read',
1993 'capabilities' => 'moodle/competency:usercompetencyview',
1994 'ajax' => true,
3123c2cf 1995 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1996 ),
1997 'core_competency_user_competency_viewed_in_course' => array(
1998 'classname' => 'core_competency\external',
1999 'methodname' => 'user_competency_viewed_in_course',
2000 'classpath' => '',
2001 'description' => 'Log the user competency viewed in course event',
2002 'type' => 'read',
2003 'capabilities' => 'moodle/competency:usercompetencyview',
2004 'ajax' => true,
3123c2cf 2005 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2006 ),
2007 'core_competency_user_competency_plan_viewed' => array(
2008 'classname' => 'core_competency\external',
2009 'methodname' => 'user_competency_plan_viewed',
2010 'classpath' => '',
2011 'description' => 'Log the user competency plan viewed event.',
2012 'type' => 'read',
2013 'capabilities' => 'moodle/competency:usercompetencyview',
2014 'ajax' => true,
3123c2cf 2015 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2016 ),
2017 'core_competency_grade_competency' => array(
2018 'classname' => 'core_competency\external',
2019 'methodname' => 'grade_competency',
2020 'classpath' => '',
2021 'description' => 'Grade a competency.',
2022 'type' => 'write',
2023 'capabilities' => 'moodle/competency:competencygrade',
2024 'ajax' => true,
2025 ),
2026 'core_competency_grade_competency_in_plan' => array(
2027 'classname' => 'core_competency\external',
2028 'methodname' => 'grade_competency_in_plan',
2029 'classpath' => '',
2030 'description' => 'Grade a competency from the user plan page.',
2031 'type' => 'write',
2032 'capabilities' => 'moodle/competency:competencygrade',
2033 'ajax' => true,
2034 ),
2035 'core_competency_grade_competency_in_course' => array(
2036 'classname' => 'core_competency\external',
2037 'methodname' => 'grade_competency_in_course',
2038 'classpath' => '',
2039 'description' => 'Grade a competency from the course page.',
2040 'type' => 'write',
2041 'capabilities' => 'moodle/competency:competencygrade',
2042 'ajax' => true,
3123c2cf 2043 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2044 ),
2045 'core_competency_unlink_plan_from_template' => array(
2046 'classname' => 'core_competency\external',
2047 'methodname' => 'unlink_plan_from_template',
2048 'classpath' => '',
2049 'description' => 'Unlink a plan form it template.',
2050 'type' => 'write',
2051 'capabilities' => 'moodle/competency:planmanage',
2052 'ajax' => true,
2053 ),
2054 'core_competency_template_viewed' => array(
2055 'classname' => 'core_competency\external',
2056 'methodname' => 'template_viewed',
2057 'classpath' => '',
2058 'description' => 'Log event template viewed',
2059 'type' => 'read',
2060 'capabilities' => 'moodle/competency:templateview',
2061 'ajax' => true,
2062 ),
2063 'core_competency_request_review_of_user_evidence_linked_competencies' => array(
2064 'classname' => 'core_competency\external',
2065 'methodname' => 'request_review_of_user_evidence_linked_competencies',
2066 'classpath' => '',
2067 'description' => 'Send user evidence competencies in review',
2068 'type' => 'write',
2069 'capabilities' => 'moodle/competency:userevidencemanageown',
2070 'ajax' => true,
2071 ),
2072 'core_competency_update_course_competency_settings' => array(
2073 'classname' => 'core_competency\external',
2074 'methodname' => 'update_course_competency_settings',
2075 'classpath' => '',
2076 'description' => 'Update the course competency settings',
2077 'type' => 'write',
2078 'capabilities' => 'moodle/competency:coursecompetencyconfigure',
2079 'ajax' => true,
2080 ),
1e99f31e
FM
2081 'core_competency_delete_evidence' => array(
2082 'classname' => 'core_competency\external',
2083 'methodname' => 'delete_evidence',
2084 'classpath' => '',
2085 'description' => 'Delete an evidence',
2086 'type' => 'write',
2087 'capabilities' => 'moodle/competency:evidencedelete',
2088 'ajax' => true,
3123c2cf 2089 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1e99f31e 2090 ),
f23e9b6b
CB
2091
2092 'core_webservice_get_site_info' => array(
2093 'classname' => 'core_webservice_external',
2094 'methodname' => 'get_site_info',
2095 'classpath' => 'webservice/externallib.php',
2096 'description' => 'Return some site info / user info / list web service functions',
2097 'type' => 'read',
ee7295ee 2098 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8446ba36
JL
2099 ),
2100
2101 // Blocks functions.
2102 'core_block_get_course_blocks' => array(
2103 'classname' => 'core_block_external',
2104 'methodname' => 'get_course_blocks',
2105 'description' => 'Returns blocks information for a course.',
2106 'type' => 'read',
2107 'capabilities' => '',
2108 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2109 ),
66ef16d3
JL
2110
2111 // Filters functions.
2112 'core_filters_get_available_in_context' => array(
2113 'classname' => 'core_filters\external',
2114 'methodname' => 'get_available_in_context',
2115 'description' => 'Returns the filters available in the given contexts.',
2116 'type' => 'read',
2117 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2118 )
9a0df45a 2119);
c1b65883
JM
2120
2121$services = array(
96e0194c 2122 'Moodle mobile web service' => array(
12c52b91 2123 'functions' => array(), // Unused as we add the service in each function definition, third party services would use this.
96e0194c
SH
2124 'enabled' => 0,
2125 'restrictedusers' => 0,
af03513f 2126 'shortname' => MOODLE_OFFICIAL_MOBILE_SERVICE,
106c55fb
DW
2127 'downloadfiles' => 1,
2128 'uploadfiles' => 1
96e0194c
SH
2129 ),
2130);