on-demand release 3.8dev+
[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 ),
6f793705
JL
69 'core_auth_resend_confirmation_email' => array(
70 'classname' => 'core_auth_external',
71 'methodname' => 'resend_confirmation_email',
72 'description' => 'Resend confirmation email.',
73 'type' => 'write',
74 'ajax' => true,
75 'loginrequired' => false,
76 ),
2cd901a4
MP
77 'core_backup_get_async_backup_progress' => array(
78 'classname' => 'core_backup_external',
79 'classpath' => 'backup/externallib.php',
80 'methodname' => 'get_async_backup_progress',
81 'description' => 'Get the progress of an Asyncronhous backup.',
82 'type' => 'read',
83 'ajax' => true,
84 'loginrequired' => true,
85 ),
86 'core_backup_get_async_backup_links_backup' => array(
87 'classname' => 'core_backup_external',
88 'classpath' => 'backup/externallib.php',
89 'methodname' => 'get_async_backup_links_backup',
90 'description' => 'Gets the data to use when updating the status table row in the UI for when an async backup completes.',
91 'type' => 'read',
92 'ajax' => true,
93 'loginrequired' => true,
94 ),
95 'core_backup_get_async_backup_links_restore' => array(
96 'classname' => 'core_backup_external',
97 'classpath' => 'backup/externallib.php',
98 'methodname' => 'get_async_backup_links_restore',
99 'description' => 'Gets the data to use when updating the status table row in the UI for when an async restore completes.',
100 'type' => 'read',
101 'ajax' => true,
102 'loginrequired' => true,
103 ),
f23e9b6b
CB
104 'core_badges_get_user_badges' => array(
105 'classname' => 'core_badges_external',
106 'methodname' => 'get_user_badges',
107 'description' => 'Returns the list of badges awarded to a user.',
108 'type' => 'read',
ee7295ee
JL
109 'capabilities' => 'moodle/badges:viewotherbadges',
110 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 111 ),
bb96ff71
JL
112 'core_blog_get_entries' => array(
113 'classname' => 'core_blog\external',
114 'methodname' => 'get_entries',
115 'description' => 'Returns blog entries.',
116 'type' => 'read',
117 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
118 'ajax' => true,
119 'loginrequired' => false,
120 ),
ca48cc91
JL
121 'core_blog_view_entries' => array(
122 'classname' => 'core_blog\external',
123 'methodname' => 'view_entries',
124 'description' => 'Trigger the blog_entries_viewed event.',
125 'type' => 'read',
126 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
127 'ajax' => true,
128 'loginrequired' => false,
129 ),
695c5726
AN
130 'core_calendar_get_calendar_monthly_view' => array(
131 'classname' => 'core_calendar_external',
132 'methodname' => 'get_calendar_monthly_view',
133 'description' => 'Fetch the monthly view data for a calendar',
134 'classpath' => 'calendar/externallib.php',
3ea4f446
AN
135 'type' => 'read',
136 'capabilities' => '',
137 'ajax' => true,
138 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
139 ),
140 'core_calendar_get_calendar_day_view' => array(
141 'classname' => 'core_calendar_external',
142 'methodname' => 'get_calendar_day_view',
143 'description' => 'Fetch the day view data for a calendar',
144 'classpath' => 'calendar/externallib.php',
695c5726
AN
145 'type' => 'read',
146 'capabilities' => '',
147 'ajax' => true,
148 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
149 ),
e8306438
SL
150 'core_calendar_get_calendar_upcoming_view' => array(
151 'classname' => 'core_calendar_external',
152 'methodname' => 'get_calendar_upcoming_view',
153 'description' => 'Fetch the upcoming view data for a calendar',
154 'classpath' => 'calendar/externallib.php',
155 'type' => 'read',
156 'capabilities' => '',
157 'ajax' => true,
158 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
159 ),
c6fb9310
RW
160 'core_calendar_update_event_start_day' => array(
161 'classname' => 'core_calendar_external',
162 'methodname' => 'update_event_start_day',
163 'description' => 'Update the start day (but not time) for an event.',
164 'classpath' => 'calendar/externallib.php',
165 'type' => 'write',
166 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
167 'ajax' => true,
ef38c5a5 168 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c6fb9310 169 ),
f23e9b6b
CB
170 'core_calendar_create_calendar_events' => array(
171 'classname' => 'core_calendar_external',
172 'methodname' => 'create_calendar_events',
173 'description' => 'Create calendar events',
174 'classpath' => 'calendar/externallib.php',
175 'type' => 'write',
e453ed68
JL
176 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
177 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 178 ),
f23e9b6b
CB
179 'core_calendar_delete_calendar_events' => array(
180 'classname' => 'core_calendar_external',
181 'methodname' => 'delete_calendar_events',
182 'description' => 'Delete calendar events',
183 'classpath' => 'calendar/externallib.php',
184 'type' => 'write',
e453ed68 185 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
542f5afa 186 'ajax' => true,
e453ed68 187 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 188 ),
f23e9b6b
CB
189 'core_calendar_get_calendar_events' => array(
190 'classname' => 'core_calendar_external',
191 'methodname' => 'get_calendar_events',
192 'description' => 'Get calendar events',
193 'classpath' => 'calendar/externallib.php',
194 'type' => 'read',
ee7295ee
JL
195 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
196 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
088645e2 197 ),
c0f877fa
MN
198 'core_calendar_get_action_events_by_timesort' => array(
199 'classname' => 'core_calendar_external',
200 'methodname' => 'get_calendar_action_events_by_timesort',
201 'description' => 'Get calendar action events by tiemsort',
202 'classpath' => 'calendar/externallib.php',
203 'type' => 'read',
204 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
60774b28 205 'ajax' => true,
569d091b 206 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
60774b28
RW
207 ),
208 'core_calendar_get_action_events_by_course' => array(
209 'classname' => 'core_calendar_external',
210 'methodname' => 'get_calendar_action_events_by_course',
211 'description' => 'Get calendar action events by course',
212 'classpath' => 'calendar/externallib.php',
213 'type' => 'read',
214 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
9b8e5057 215 'ajax' => true,
569d091b 216 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9b8e5057
RW
217 ),
218 'core_calendar_get_action_events_by_courses' => array(
219 'classname' => 'core_calendar_external',
220 'methodname' => 'get_calendar_action_events_by_courses',
221 'description' => 'Get calendar action events by courses',
222 'classpath' => 'calendar/externallib.php',
223 'type' => 'read',
224 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
c0f877fa 225 'ajax' => true,
569d091b 226 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c0f877fa 227 ),
5813d1b9
SL
228 'core_calendar_get_calendar_event_by_id' => array(
229 'classname' => 'core_calendar_external',
230 'methodname' => 'get_calendar_event_by_id',
231 'description' => 'Get calendar event by id',
232 'classpath' => 'calendar/externallib.php',
233 'type' => 'read',
234 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
235 'ajax' => true,
236 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
237 ),
aa091225
RW
238 'core_calendar_submit_create_update_form' => array(
239 'classname' => 'core_calendar_external',
240 'methodname' => 'submit_create_update_form',
241 'description' => 'Submit form data for event form',
242 'classpath' => 'calendar/externallib.php',
243 'type' => 'write',
244 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
245 'ajax' => true,
ef38c5a5 246 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a46980fa
JL
247 ),
248 'core_calendar_get_calendar_access_information' => array(
249 'classname' => 'core_calendar_external',
250 'methodname' => 'get_calendar_access_information',
251 'description' => 'Convenience function to retrieve some permissions/access information for the given course calendar.',
252 'classpath' => 'calendar/externallib.php',
253 'type' => 'read',
254 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2aad6b82
JL
255 ),
256 'core_calendar_get_allowed_event_types' => array(
257 'classname' => 'core_calendar_external',
258 'methodname' => 'get_allowed_event_types',
259 'description' => 'Get the type of events a user can create in the given course.',
260 'classpath' => 'calendar/externallib.php',
261 'type' => 'read',
262 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
aa091225 263 ),
088645e2 264 'core_cohort_add_cohort_members' => array(
f23e9b6b
CB
265 'classname' => 'core_cohort_external',
266 'methodname' => 'add_cohort_members',
267 'classpath' => 'cohort/externallib.php',
088645e2 268 'description' => 'Adds cohort members.',
f23e9b6b
CB
269 'type' => 'write',
270 'capabilities' => 'moodle/cohort:assign'
271 ),
272 'core_cohort_create_cohorts' => array(
273 'classname' => 'core_cohort_external',
274 'methodname' => 'create_cohorts',
275 'classpath' => 'cohort/externallib.php',
276 'description' => 'Creates new cohorts.',
277 'type' => 'write',
278 'capabilities' => 'moodle/cohort:manage'
088645e2 279 ),
088645e2 280 'core_cohort_delete_cohort_members' => array(
f23e9b6b
CB
281 'classname' => 'core_cohort_external',
282 'methodname' => 'delete_cohort_members',
283 'classpath' => 'cohort/externallib.php',
088645e2 284 'description' => 'Deletes cohort members.',
0a4f3eb2 285 'type' => 'write',
f23e9b6b
CB
286 'capabilities' => 'moodle/cohort:assign'
287 ),
288 'core_cohort_delete_cohorts' => array(
289 'classname' => 'core_cohort_external',
290 'methodname' => 'delete_cohorts',
291 'classpath' => 'cohort/externallib.php',
292 'description' => 'Deletes all specified cohorts.',
0a4f3eb2 293 'type' => 'write',
f23e9b6b 294 'capabilities' => 'moodle/cohort:manage'
088645e2 295 ),
088645e2 296 'core_cohort_get_cohort_members' => array(
f23e9b6b
CB
297 'classname' => 'core_cohort_external',
298 'methodname' => 'get_cohort_members',
299 'classpath' => 'cohort/externallib.php',
088645e2 300 'description' => 'Returns cohort members.',
f23e9b6b
CB
301 'type' => 'read',
302 'capabilities' => 'moodle/cohort:view'
e77a0f36 303 ),
a60e8ba5
DW
304 'core_cohort_search_cohorts' => array(
305 'classname' => 'core_cohort_external',
306 'methodname' => 'search_cohorts',
307 'classpath' => 'cohort/externallib.php',
308 'description' => 'Search for cohorts.',
309 'type' => 'read',
310 'ajax' => true,
311 'capabilities' => 'moodle/cohort:view'
312 ),
f23e9b6b
CB
313 'core_cohort_get_cohorts' => array(
314 'classname' => 'core_cohort_external',
315 'methodname' => 'get_cohorts',
316 'classpath' => 'cohort/externallib.php',
317 'description' => 'Returns cohort details.',
318 'type' => 'read',
319 'capabilities' => 'moodle/cohort:view'
d3549931 320 ),
f23e9b6b
CB
321 'core_cohort_update_cohorts' => array(
322 'classname' => 'core_cohort_external',
323 'methodname' => 'update_cohorts',
324 'classpath' => 'cohort/externallib.php',
325 'description' => 'Updates existing cohorts.',
326 'type' => 'write',
327 'capabilities' => 'moodle/cohort:manage'
d3549931 328 ),
f23e9b6b
CB
329 'core_comment_get_comments' => array(
330 'classname' => 'core_comment_external',
331 'methodname' => 'get_comments',
332 'description' => 'Returns comments.',
333 'type' => 'read',
ee7295ee
JL
334 'capabilities' => 'moodle/comment:view',
335 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8e4a9ed8
JL
336 ),
337 'core_comment_add_comments' => array(
338 'classname' => 'core_comment_external',
339 'methodname' => 'add_comments',
340 'description' => 'Adds a comment or comments.',
341 'type' => 'write',
342 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
09899abc
JL
343 ),
344 'core_comment_delete_comments' => array(
345 'classname' => 'core_comment_external',
346 'methodname' => 'delete_comments',
347 'description' => 'Deletes a comment or comments.',
348 'type' => 'write',
349 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 350 ),
f23e9b6b
CB
351 'core_completion_get_activities_completion_status' => array(
352 'classname' => 'core_completion_external',
353 'methodname' => 'get_activities_completion_status',
354 'description' => 'Return the activities completion status for a user in a course.',
355 'type' => 'read',
ee7295ee 356 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 357 ),
f23e9b6b
CB
358 'core_completion_get_course_completion_status' => array(
359 'classname' => 'core_completion_external',
360 'methodname' => 'get_course_completion_status',
361 'description' => 'Returns course completion status.',
362 'type' => 'read',
ee7295ee
JL
363 'capabilities' => 'report/completion:view',
364 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 365 ),
f23e9b6b
CB
366 'core_completion_mark_course_self_completed' => array(
367 'classname' => 'core_completion_external',
368 'methodname' => 'mark_course_self_completed',
369 'description' => 'Update the course completion status for the current user (if course self-completion is enabled).',
370 'type' => 'write',
ee7295ee 371 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 372 ),
f23e9b6b
CB
373 'core_completion_update_activity_completion_status_manually' => array(
374 'classname' => 'core_completion_external',
375 'methodname' => 'update_activity_completion_status_manually',
376 'description' => 'Update completion status for the current user in an activity, only for activities with manual tracking.',
377 'type' => 'write',
ee7295ee 378 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 379 ),
a39918da
EEAK
380 'core_completion_override_activity_completion_status' => array(
381 'classname' => 'core_completion_external',
382 'methodname' => 'override_activity_completion_status',
383 'description' => 'Update completion status for a user in an activity by overriding it.',
384 'type' => 'write',
385 'capabilities' => 'moodle/course:overridecompletion',
386 'ajax' => true,
387 ),
f23e9b6b
CB
388 'core_course_create_categories' => array(
389 'classname' => 'core_course_external',
390 'methodname' => 'create_categories',
391 'classpath' => 'course/externallib.php',
392 'description' => 'Create course categories',
393 'type' => 'write',
394 'capabilities' => 'moodle/category:manage'
246f6da2 395 ),
f23e9b6b
CB
396 'core_course_create_courses' => array(
397 'classname' => 'core_course_external',
398 'methodname' => 'create_courses',
399 'classpath' => 'course/externallib.php',
400 'description' => 'Create new courses',
401 'type' => 'write',
402 'capabilities' => 'moodle/course:create, moodle/course:visibility'
5d1017e1 403 ),
f23e9b6b
CB
404 'core_course_delete_categories' => array(
405 'classname' => 'core_course_external',
406 'methodname' => 'delete_categories',
407 'classpath' => 'course/externallib.php',
408 'description' => 'Delete course categories',
409 'type' => 'write',
410 'capabilities' => 'moodle/category:manage'
9a0df45a 411 ),
f23e9b6b
CB
412 'core_course_delete_courses' => array(
413 'classname' => 'core_course_external',
414 'methodname' => 'delete_courses',
415 'classpath' => 'course/externallib.php',
416 'description' => 'Deletes all specified courses',
417 'type' => 'write',
418 'capabilities' => 'moodle/course:delete'
5d1017e1 419 ),
f23e9b6b
CB
420 'core_course_delete_modules' => array(
421 'classname' => 'core_course_external',
422 'methodname' => 'delete_modules',
423 'classpath' => 'course/externallib.php',
424 'description' => 'Deletes all specified module instances',
425 'type' => 'write',
426 'capabilities' => 'moodle/course:manageactivities'
9a0df45a 427 ),
f23e9b6b
CB
428 'core_course_duplicate_course' => array(
429 'classname' => 'core_course_external',
430 'methodname' => 'duplicate_course',
431 'classpath' => 'course/externallib.php',
67adb4d8 432 'description' => 'Duplicate an existing course (creating a new one).',
f23e9b6b
CB
433 'type' => 'write',
434 'capabilities' => 'moodle/backup:backupcourse, moodle/restore:restorecourse, moodle/course:create'
5d1017e1 435 ),
f23e9b6b
CB
436 'core_course_get_categories' => array(
437 'classname' => 'core_course_external',
438 'methodname' => 'get_categories',
439 'classpath' => 'course/externallib.php',
440 'description' => 'Return category details',
441 'type' => 'read',
331e038b
JL
442 'capabilities' => 'moodle/category:viewhiddencategories',
443 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 444 ),
f23e9b6b
CB
445 'core_course_get_contents' => array(
446 'classname' => 'core_course_external',
447 'methodname' => 'get_course_contents',
448 'classpath' => 'course/externallib.php',
449 'description' => 'Get course contents',
450 'type' => 'read',
ee7295ee
JL
451 'capabilities' => 'moodle/course:update, moodle/course:viewhiddencourses',
452 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9a0df45a 453 ),
f23e9b6b
CB
454 'core_course_get_course_module' => array(
455 'classname' => 'core_course_external',
456 'methodname' => 'get_course_module',
457 'classpath' => 'course/externallib.php',
458 'description' => 'Return information about a course module',
459 'type' => 'read',
ee7295ee 460 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 461 ),
f23e9b6b
CB
462 'core_course_get_course_module_by_instance' => array(
463 'classname' => 'core_course_external',
464 'methodname' => 'get_course_module_by_instance',
465 'classpath' => 'course/externallib.php',
466 'description' => 'Return information about a given module name and instance id',
467 'type' => 'read',
ee7295ee 468 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 469 ),
4529327a
MG
470 'core_course_get_module' => array(
471 'classname' => 'core_course_external',
472 'methodname' => 'get_module',
473 'classpath' => 'course/externallib.php',
474 'description' => 'Returns html with one activity module on course page',
475 'type' => 'read',
476 'ajax' => true,
477 ),
478 'core_course_edit_module' => array(
479 'classname' => 'core_course_external',
480 'methodname' => 'edit_module',
481 'classpath' => 'course/externallib.php',
482 'description' => 'Performs an action on course module (change visibility, duplicate, delete, etc.)',
483 'type' => 'write',
484 'ajax' => true,
485 ),
486 'core_course_edit_section' => array(
487 'classname' => 'core_course_external',
488 'methodname' => 'edit_section',
489 'classpath' => 'course/externallib.php',
490 'description' => 'Performs an action on course section (change visibility, set marker, delete)',
491 'type' => 'write',
492 'ajax' => true,
493 ),
f23e9b6b
CB
494 'core_course_get_courses' => array(
495 'classname' => 'core_course_external',
496 'methodname' => 'get_courses',
497 'classpath' => 'course/externallib.php',
498 'description' => 'Return course details',
499 'type' => 'read',
500 'capabilities' => 'moodle/course:view, moodle/course:update, moodle/course:viewhiddencourses',
5041600d 501 'ajax' => true,
ee7295ee 502 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 503 ),
f23e9b6b
CB
504 'core_course_import_course' => array(
505 'classname' => 'core_course_external',
506 'methodname' => 'import_course',
507 'classpath' => 'course/externallib.php',
508 'description' => 'Import course data from a course into another course. Does not include any user data.',
509 'type' => 'write',
510 'capabilities' => 'moodle/backup:backuptargetimport, moodle/restore:restoretargetimport'
7ce23590 511 ),
f23e9b6b
CB
512 'core_course_search_courses' => array(
513 'classname' => 'core_course_external',
514 'methodname' => 'search_courses',
515 'classpath' => 'course/externallib.php',
516 'description' => 'Search courses by (name, module, block, tag)',
517 'type' => 'read',
5041600d 518 'ajax' => true,
ee7295ee 519 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 520 ),
f23e9b6b
CB
521 'core_course_update_categories' => array(
522 'classname' => 'core_course_external',
523 'methodname' => 'update_categories',
524 'classpath' => 'course/externallib.php',
525 'description' => 'Update categories',
526 'type' => 'write',
527 'capabilities' => 'moodle/category:manage',
7ce23590 528 ),
f23e9b6b
CB
529 'core_course_update_courses' => array(
530 'classname' => 'core_course_external',
531 'methodname' => 'update_courses',
532 'classpath' => 'course/externallib.php',
533 'description' => 'Update courses',
534 'type' => 'write',
535 'capabilities' => 'moodle/course:update, moodle/course:changecategory, moodle/course:changefullname, '
536 . 'moodle/course:changeshortname, moodle/course:changeidnumber, moodle/course:changesummary, moodle/course:visibility'
7ce23590 537 ),
f23e9b6b
CB
538 'core_course_view_course' => array(
539 'classname' => 'core_course_external',
540 'methodname' => 'view_course',
541 'classpath' => 'course/externallib.php',
542 'description' => 'Log that the course was viewed',
543 'type' => 'write',
ee7295ee 544 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7ce23590 545 ),
c115ff6a
JL
546 'core_course_get_user_navigation_options' => array(
547 'classname' => 'core_course_external',
548 'methodname' => 'get_user_navigation_options',
549 'classpath' => 'course/externallib.php',
550 'description' => 'Return a list of navigation options in a set of courses that are avaialable or not for the current user.',
551 'type' => 'read',
552 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
553 ),
b9050b10
JL
554 'core_course_get_user_administration_options' => array(
555 'classname' => 'core_course_external',
556 'methodname' => 'get_user_administration_options',
557 'classpath' => 'course/externallib.php',
558 'description' => 'Return a list of administration options in a set of courses that are avaialable or not for the current
559 user.',
560 'type' => 'read',
561 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
562 ),
80adabef
JL
563 'core_course_get_courses_by_field' => array(
564 'classname' => 'core_course_external',
565 'methodname' => 'get_courses_by_field',
566 'classpath' => 'course/externallib.php',
567 'description' => 'Get courses matching a specific field (id/s, shortname, idnumber, category)',
568 'type' => 'read',
569 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
570 ),
26659f62
JL
571 'core_course_check_updates' => array(
572 'classname' => 'core_course_external',
573 'methodname' => 'check_updates',
574 'classpath' => 'course/externallib.php',
575 'description' => 'Check if there is updates affecting the user for the given course and contexts.',
576 'type' => 'read',
577 'ajax' => true,
578 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
579 ),
879a8f56
JL
580 'core_course_get_updates_since' => array(
581 'classname' => 'core_course_external',
582 'methodname' => 'get_updates_since',
583 'classpath' => 'course/externallib.php',
584 'description' => 'Check if there are updates affecting the user for the given course since the given time stamp.',
585 'type' => 'read',
586 'ajax' => true,
587 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
588 ),
2c1d19fd
RW
589 'core_course_get_enrolled_courses_by_timeline_classification' => array(
590 'classname' => 'core_course_external',
591 'methodname' => 'get_enrolled_courses_by_timeline_classification',
592 'classpath' => 'course/externallib.php',
593 'description' => 'List of enrolled courses for the given timeline classification (past, inprogress, or future).',
594 'type' => 'read',
b9508423
JL
595 'ajax' => true,
596 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2c1d19fd 597 ),
98a52c80
VD
598 'core_course_get_recent_courses' => array(
599 'classname' => 'core_course_external',
600 'methodname' => 'get_recent_courses',
601 'classpath' => 'course/externallib.php',
602 'description' => 'List of courses a user has accessed most recently.',
603 'type' => 'read',
b9508423
JL
604 'ajax' => true,
605 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
606 ),
607 'core_course_set_favourite_courses' => array(
608 'classname' => 'core_course_external',
609 'methodname' => 'set_favourite_courses',
610 'classpath' => 'course/externallib.php',
611 'description' => 'Add a list of courses to the list of favourite courses.',
612 'type' => 'read',
613 'ajax' => true,
614 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
98a52c80 615 ),
f23e9b6b
CB
616 'core_enrol_get_course_enrolment_methods' => array(
617 'classname' => 'core_enrol_external',
618 'methodname' => 'get_course_enrolment_methods',
619 'classpath' => 'enrol/externallib.php',
620 'description' => 'Get the list of course enrolment methods',
621 'type' => 'read',
ee7295ee 622 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d62e813 623 ),
f23e9b6b
CB
624 'core_enrol_get_enrolled_users' => array(
625 'classname' => 'core_enrol_external',
626 'methodname' => 'get_enrolled_users',
627 'classpath' => 'enrol/externallib.php',
628 'description' => 'Get enrolled users by course id.',
629 'type' => 'read',
630 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, '
ee7295ee
JL
631 . 'moodle/site:accessallgroups',
632 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7107c2f0 633 ),
f23e9b6b
CB
634 'core_enrol_get_enrolled_users_with_capability' => array(
635 'classname' => 'core_enrol_external',
636 'methodname' => 'get_enrolled_users_with_capability',
637 'classpath' => 'enrol/externallib.php',
638 'description' => 'For each course and capability specified, return a list of the users that are enrolled in the course
639 and have that capability',
640 'type' => 'read',
c0ef63eb 641 ),
a60e8ba5
DW
642 'core_enrol_get_potential_users' => array(
643 'classname' => 'core_enrol_external',
644 'methodname' => 'get_potential_users',
645 'classpath' => 'enrol/externallib.php',
646 'description' => 'Get the list of potential users to enrol',
0fa35b1a 647 'ajax' => true,
a60e8ba5
DW
648 'type' => 'read',
649 'capabilities' => 'moodle/course:enrolreview'
650 ),
0f308fcd
SR
651 'core_enrol_search_users' => [
652 'classname' => 'core_enrol_external',
653 'methodname' => 'search_users',
654 'classpath' => 'enrol/externallib.php',
655 'description' => 'Search within the list of course participants',
656 'ajax' => true,
657 'type' => 'read',
658 'capabilities' => 'moodle/course:viewparticipants',
659 ],
f23e9b6b
CB
660 'core_enrol_get_users_courses' => array(
661 'classname' => 'core_enrol_external',
662 'methodname' => 'get_users_courses',
663 'classpath' => 'enrol/externallib.php',
664 'description' => 'Get the list of courses where a user is enrolled in',
665 'type' => 'read',
ee7295ee
JL
666 'capabilities' => 'moodle/course:viewparticipants',
667 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9857381d 668 ),
58c20c81
JP
669 'core_enrol_edit_user_enrolment' => array(
670 'classname' => 'core_enrol_external',
671 'methodname' => 'edit_user_enrolment',
672 'classpath' => 'enrol/externallib.php',
2d4ce64d
SR
673 'description' => '** DEPRECATED ** Please do not call this function any more.
674 External function that updates a given user enrolment',
675 'type' => 'write',
676 'ajax' => true,
677 ),
678 'core_enrol_submit_user_enrolment_form' => array(
679 'classname' => 'core_enrol_external',
680 'methodname' => 'submit_user_enrolment_form',
681 'classpath' => 'enrol/externallib.php',
682 'description' => 'Submit form data for enrolment form',
58c20c81
JP
683 'type' => 'write',
684 'ajax' => true,
685 ),
c8351261
MG
686 'core_enrol_unenrol_user_enrolment' => array(
687 'classname' => 'core_enrol_external',
688 'methodname' => 'unenrol_user_enrolment',
689 'classpath' => 'enrol/externallib.php',
690 'description' => 'External function that unenrols a given user enrolment',
691 'type' => 'write',
692 'ajax' => true,
693 ),
f23e9b6b
CB
694 'core_fetch_notifications' => array(
695 'classname' => 'core_external',
696 'methodname' => 'fetch_notifications',
697 'classpath' => 'lib/external/externallib.php',
698 'description' => 'Return a list of notifications for the current session',
699 'type' => 'read',
5041600d
RT
700 'loginrequired' => false,
701 'ajax' => true,
5d1017e1 702 ),
7aeeb444
DW
703 'core_session_touch' => array(
704 'classname' => 'core\session\external',
705 'methodname' => 'touch_session',
706 'description' => 'Keep the users session alive',
707 'type' => 'read',
708 'loginrequired' => true,
709 'ajax' => true,
710 ),
711 'core_session_time_remaining' => array(
712 'classname' => 'core\session\external',
713 'methodname' => 'time_remaining',
714 'description' => 'Count the seconds remaining in this session',
715 'type' => 'read',
716 'loginrequired' => true,
717 'ajax' => true,
718 ),
5d1017e1 719 'core_files_get_files' => array(
f23e9b6b
CB
720 'classname' => 'core_files_external',
721 'methodname' => 'get_files',
249c4f60 722 'description' => 'browse moodle files',
f23e9b6b
CB
723 'type' => 'read',
724 'classpath' => 'files/externallib.php',
ee7295ee 725 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 726 ),
5d1017e1 727 'core_files_upload' => array(
f23e9b6b
CB
728 'classname' => 'core_files_external',
729 'methodname' => 'upload',
249c4f60
DC
730 'description' => 'upload a file to moodle',
731 'type' => 'write',
732 'classpath' => 'files/externallib.php',
733 ),
8b493eb0
DM
734 'core_form_get_filetypes_browser_data' => array(
735 'classname' => 'core_form\external',
736 'methodname' => 'get_filetypes_browser_data',
737 'classpath' => '',
738 'description' => 'Provides data for the filetypes element browser.',
739 'type' => 'read',
740 'loginrequired' => false,
741 'ajax' => true,
742 ),
f23e9b6b
CB
743 'core_get_component_strings' => array(
744 'classname' => 'core_external',
745 'methodname' => 'get_component_strings',
746 'classpath' => 'lib/external/externallib.php',
faeca20d
DM
747 'description' => 'Return all raw strings (with {$a->xxx}), for a specific component ' .
748 '- similar to core get_component_strings(), call',
f23e9b6b 749 'type' => 'read',
5041600d
RT
750 'loginrequired' => false,
751 'ajax' => true,
ee7295ee 752 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3364dbb5 753 ),
f23e9b6b
CB
754 'core_get_fragment' => array(
755 'classname' => 'core_external',
756 'methodname' => 'get_fragment',
757 'classpath' => 'lib/external/externallib.php',
758 'description' => 'Return a fragment for inclusion, such as a JavaScript page.',
759 'type' => 'read',
5041600d 760 'ajax' => true,
5d1017e1 761 ),
f23e9b6b
CB
762 'core_get_string' => array(
763 'classname' => 'core_external',
764 'methodname' => 'get_string',
765 'classpath' => 'lib/external/externallib.php',
766 'description' => 'Return a translated string - similar to core get_string(), call',
767 'type' => 'read',
5041600d
RT
768 'loginrequired' => false,
769 'ajax' => true,
be9bf94e 770 ),
f23e9b6b
CB
771 'core_get_strings' => array(
772 'classname' => 'core_external',
773 'methodname' => 'get_strings',
774 'classpath' => 'lib/external/externallib.php',
775 'description' => 'Return some translated strings - like several core get_string(), calls',
776 'type' => 'read',
5041600d
RT
777 'loginrequired' => false,
778 'ajax' => true,
5d1017e1 779 ),
88c2941b
RW
780 'core_get_user_dates' => array(
781 'classname' => 'core_external',
782 'methodname' => 'get_user_dates',
783 'classpath' => 'lib/external/externallib.php',
784 'description' => 'Return formatted timestamps',
785 'type' => 'read',
786 'ajax' => true,
787 ),
f23e9b6b
CB
788 'core_grades_get_grades' => array(
789 'classname' => 'core_grades_external',
790 'methodname' => 'get_grades',
aa7e371a
JL
791 'description' => '** DEPRECATED ** Please do not call this function any more.
792 Returns student course total grade and grades for activities.
f23e9b6b
CB
793 This function does not return category or manual items.
794 This function is suitable for managers or teachers not students.',
795 'type' => 'read',
796 'capabilities' => 'moodle/grade:view, moodle/grade:viewall, moodle/grade:viewhidden'
e9b66095 797 ),
f23e9b6b
CB
798 'core_grades_update_grades' => array(
799 'classname' => 'core_grades_external',
800 'methodname' => 'update_grades',
801 'description' => 'Update a grade item and associated student grades.',
802 'type' => 'write',
5d1017e1 803 ),
f23e9b6b
CB
804 'core_grading_get_definitions' => array(
805 'classname' => 'core_grading_external',
806 'methodname' => 'get_definitions',
807 'description' => 'Get grading definitions',
808 'type' => 'read',
e9b66095 809 ),
f23e9b6b
CB
810 'core_grading_get_gradingform_instances' => array(
811 'classname' => 'core_grading_external',
812 'methodname' => 'get_gradingform_instances',
813 'description' => 'Get grading form instances',
814 'type' => 'read',
f2229c68 815 ),
f23e9b6b
CB
816 'core_grading_save_definitions' => array(
817 'classname' => 'core_grading_external',
818 'methodname' => 'save_definitions',
819 'description' => 'Save grading definitions',
820 'type' => 'write',
5d1017e1 821 ),
f23e9b6b
CB
822 'core_group_add_group_members' => array(
823 'classname' => 'core_group_external',
824 'methodname' => 'add_group_members',
825 'classpath' => 'group/externallib.php',
826 'description' => 'Adds group members.',
827 'type' => 'write',
828 'capabilities' => 'moodle/course:managegroups',
6bb31e40 829 ),
f23e9b6b
CB
830 'core_group_assign_grouping' => array(
831 'classname' => 'core_group_external',
832 'methodname' => 'assign_grouping',
833 'classpath' => 'group/externallib.php',
834 'description' => 'Assing groups from groupings',
835 'type' => 'write',
740c354f 836 ),
f23e9b6b
CB
837 'core_group_create_groupings' => array(
838 'classname' => 'core_group_external',
839 'methodname' => 'create_groupings',
840 'classpath' => 'group/externallib.php',
841 'description' => 'Creates new groupings',
842 'type' => 'write',
5d1017e1 843 ),
f23e9b6b
CB
844 'core_group_create_groups' => array(
845 'classname' => 'core_group_external',
846 'methodname' => 'create_groups',
847 'classpath' => 'group/externallib.php',
848 'description' => 'Creates new groups.',
849 'type' => 'write',
850 'capabilities' => 'moodle/course:managegroups'
6bb31e40 851 ),
f23e9b6b
CB
852 'core_group_delete_group_members' => array(
853 'classname' => 'core_group_external',
854 'methodname' => 'delete_group_members',
855 'classpath' => 'group/externallib.php',
856 'description' => 'Deletes group members.',
0a4f3eb2 857 'type' => 'write',
f23e9b6b 858 'capabilities' => 'moodle/course:managegroups'
63a85dc7 859 ),
f23e9b6b
CB
860 'core_group_delete_groupings' => array(
861 'classname' => 'core_group_external',
862 'methodname' => 'delete_groupings',
863 'classpath' => 'group/externallib.php',
864 'description' => 'Deletes all specified groupings.',
79949c1b 865 'type' => 'write',
79949c1b 866 ),
f23e9b6b
CB
867 'core_group_delete_groups' => array(
868 'classname' => 'core_group_external',
869 'methodname' => 'delete_groups',
870 'classpath' => 'group/externallib.php',
871 'description' => 'Deletes all specified groups.',
0a4f3eb2 872 'type' => 'write',
f23e9b6b 873 'capabilities' => 'moodle/course:managegroups'
3dc1d76e 874 ),
f23e9b6b
CB
875 'core_group_get_activity_allowed_groups' => array(
876 'classname' => 'core_group_external',
877 'methodname' => 'get_activity_allowed_groups',
878 'classpath' => 'group/externallib.php',
879 'description' => 'Gets a list of groups that the user is allowed to access within the specified activity.',
880 'type' => 'read',
ee7295ee 881 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
791723c3 882 ),
f23e9b6b
CB
883 'core_group_get_activity_groupmode' => array(
884 'classname' => 'core_group_external',
885 'methodname' => 'get_activity_groupmode',
886 'classpath' => 'group/externallib.php',
887 'description' => 'Returns effective groupmode used in a given activity.',
888 'type' => 'read',
ee7295ee 889 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c4f7bf29 890 ),
f23e9b6b
CB
891 'core_group_get_course_groupings' => array(
892 'classname' => 'core_group_external',
893 'methodname' => 'get_course_groupings',
894 'classpath' => 'group/externallib.php',
895 'description' => 'Returns all groupings in specified course.',
896 'type' => 'read',
57858670 897 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c5158499 898 ),
f23e9b6b
CB
899 'core_group_get_course_groups' => array(
900 'classname' => 'core_group_external',
901 'methodname' => 'get_course_groups',
902 'classpath' => 'group/externallib.php',
903 'description' => 'Returns all groups in specified course.',
904 'type' => 'read',
dfc609e5 905 'ajax' => true,
57858670
JL
906 'capabilities' => 'moodle/course:managegroups',
907 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
13bb6819 908 ),
f23e9b6b
CB
909 'core_group_get_course_user_groups' => array(
910 'classname' => 'core_group_external',
911 'methodname' => 'get_course_user_groups',
912 'classpath' => 'group/externallib.php',
913 'description' => 'Returns all groups in specified course for the specified user.',
914 'type' => 'read',
ee7295ee
JL
915 'capabilities' => 'moodle/course:managegroups',
916 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3ec163dd 917 ),
f23e9b6b
CB
918 'core_group_get_group_members' => array(
919 'classname' => 'core_group_external',
920 'methodname' => 'get_group_members',
921 'classpath' => 'group/externallib.php',
922 'description' => 'Returns group members.',
923 'type' => 'read',
924 'capabilities' => 'moodle/course:managegroups'
479a5db1 925 ),
f23e9b6b
CB
926 'core_group_get_groupings' => array(
927 'classname' => 'core_group_external',
928 'methodname' => 'get_groupings',
929 'classpath' => 'group/externallib.php',
930 'description' => 'Returns groupings details.',
931 'type' => 'read',
3ec163dd 932 ),
f23e9b6b
CB
933 'core_group_get_groups' => array(
934 'classname' => 'core_group_external',
935 'methodname' => 'get_groups',
936 'classpath' => 'group/externallib.php',
937 'description' => 'Returns group details.',
938 'type' => 'read',
939 'capabilities' => 'moodle/course:managegroups'
2f951d86 940 ),
f23e9b6b
CB
941 'core_group_unassign_grouping' => array(
942 'classname' => 'core_group_external',
943 'methodname' => 'unassign_grouping',
944 'classpath' => 'group/externallib.php',
945 'description' => 'Unassing groups from groupings',
946 'type' => 'write',
8430d87b 947 ),
f23e9b6b
CB
948 'core_group_update_groupings' => array(
949 'classname' => 'core_group_external',
950 'methodname' => 'update_groupings',
951 'classpath' => 'group/externallib.php',
952 'description' => 'Updates existing groupings',
953 'type' => 'write',
5d1017e1 954 ),
474dd887
R
955 'core_group_update_groups' => array(
956 'classname' => 'core_group_external',
957 'methodname' => 'update_groups',
958 'classpath' => 'group/externallib.php',
959 'description' => 'Updates existing groups.',
960 'type' => 'write',
961 'capabilities' => 'moodle/course:managegroups'
962 ),
086409f6
MN
963 'core_message_mute_conversations' => array(
964 'classname' => 'core_message_external',
965 'methodname' => 'mute_conversations',
966 'classpath' => 'message/externallib.php',
967 'description' => 'Mutes a list of conversations',
968 'type' => 'write',
969 'ajax' => true,
970 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
971 ),
972 'core_message_unmute_conversations' => array(
973 'classname' => 'core_message_external',
974 'methodname' => 'unmute_conversations',
975 'classpath' => 'message/externallib.php',
976 'description' => 'Unmutes a list of conversations',
977 'type' => 'write',
978 'ajax' => true,
979 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
980 ),
52284186
MN
981 'core_message_block_user' => array(
982 'classname' => 'core_message_external',
983 'methodname' => 'block_user',
984 'classpath' => 'message/externallib.php',
985 'description' => 'Blocks a user',
986 'type' => 'write',
987 'ajax' => true,
988 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
989 ),
f23e9b6b
CB
990 'core_message_block_contacts' => array(
991 'classname' => 'core_message_external',
992 'methodname' => 'block_contacts',
993 'classpath' => 'message/externallib.php',
0b3eadcd
MN
994 'description' => '** DEPRECATED ** Please do not call this function any more.
995 Block contacts',
f23e9b6b 996 'type' => 'write',
c6e97f54 997 'ajax' => true,
ee7295ee 998 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a623b6b8 999 ),
d6731600 1000 'core_message_create_contacts' => array(
f23e9b6b
CB
1001 'classname' => 'core_message_external',
1002 'methodname' => 'create_contacts',
1003 'classpath' => 'message/externallib.php',
0b3eadcd
MN
1004 'description' => '** DEPRECATED ** Please do not call this function any more.
1005 Add contacts to the contact list',
f23e9b6b 1006 'type' => 'write',
c6e97f54 1007 'ajax' => true,
ee7295ee 1008 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 1009 ),
52284186
MN
1010 'core_message_get_contact_requests' => array(
1011 'classname' => 'core_message_external',
1012 'methodname' => 'get_contact_requests',
1013 'classpath' => 'message/externallib.php',
1014 'description' => 'Returns contact requests for a user',
1015 'type' => 'read',
1016 'ajax' => true,
1017 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1018 ),
1019 'core_message_create_contact_request' => array(
1020 'classname' => 'core_message_external',
1021 'methodname' => 'create_contact_request',
1022 'classpath' => 'message/externallib.php',
1023 'description' => 'Creates a contact request',
1024 'type' => 'write',
1025 'ajax' => true,
1026 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1027 ),
1028 'core_message_confirm_contact_request' => array(
1029 'classname' => 'core_message_external',
1030 'methodname' => 'confirm_contact_request',
1031 'classpath' => 'message/externallib.php',
1032 'description' => 'Confirms a contact request',
1033 'type' => 'write',
1034 'ajax' => true,
1035 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1036 ),
1037 'core_message_decline_contact_request' => array(
1038 'classname' => 'core_message_external',
1039 'methodname' => 'decline_contact_request',
1040 'classpath' => 'message/externallib.php',
1041 'description' => 'Declines a contact request',
1042 'type' => 'write',
1043 'ajax' => true,
1044 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1045 ),
7d678923
MN
1046 'core_message_get_received_contact_requests_count' => array(
1047 'classname' => 'core_message_external',
1048 'methodname' => 'get_received_contact_requests_count',
1049 'classpath' => 'message/externallib.php',
1050 'description' => 'Gets the number of received contact requests',
1051 'type' => 'read',
1052 'ajax' => true,
1053 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1054 ),
d6731600 1055 'core_message_delete_contacts' => array(
f23e9b6b
CB
1056 'classname' => 'core_message_external',
1057 'methodname' => 'delete_contacts',
1058 'classpath' => 'message/externallib.php',
d6731600 1059 'description' => 'Remove contacts from the contact list',
f23e9b6b 1060 'type' => 'write',
c6e97f54 1061 'ajax' => true,
ee7295ee 1062 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 1063 ),
dec0cd99
MN
1064 'core_message_delete_conversation' => array(
1065 'classname' => 'core_message_external',
1066 'methodname' => 'delete_conversation',
1067 'classpath' => 'message/externallib.php',
fa024820
MN
1068 'description' => '** DEPRECATED ** Please do not call this function any more.
1069 Deletes a conversation.',
dec0cd99
MN
1070 'type' => 'write',
1071 'capabilities' => 'moodle/site:deleteownmessage',
1072 'ajax' => true,
53522c6e 1073 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
dec0cd99 1074 ),
60b67bbc 1075 'core_message_delete_conversations_by_id' => array(
26f39c88 1076 'classname' => 'core_message_external',
60b67bbc 1077 'methodname' => 'delete_conversations_by_id',
26f39c88 1078 'classpath' => 'message/externallib.php',
60b67bbc 1079 'description' => 'Deletes a list of conversations.',
26f39c88
MN
1080 'type' => 'write',
1081 'capabilities' => 'moodle/site:deleteownmessage',
1082 'ajax' => true,
1083 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1084 ),
f23e9b6b
CB
1085 'core_message_delete_message' => array(
1086 'classname' => 'core_message_external',
1087 'methodname' => 'delete_message',
1088 'classpath' => 'message/externallib.php',
1089 'description' => 'Deletes a message.',
1090 'type' => 'write',
ee7295ee 1091 'capabilities' => 'moodle/site:deleteownmessage',
3090f52f 1092 'ajax' => true,
ee7295ee 1093 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 1094 ),
f23e9b6b
CB
1095 'core_message_get_blocked_users' => array(
1096 'classname' => 'core_message_external',
1097 'methodname' => 'get_blocked_users',
1098 'classpath' => 'message/externallib.php',
1099 'description' => 'Retrieve a list of users blocked',
1100 'type' => 'read',
ee7295ee 1101 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
d6731600 1102 ),
cd03b8d7
MN
1103 'core_message_data_for_messagearea_search_messages' => array(
1104 'classname' => 'core_message_external',
1105 'methodname' => 'data_for_messagearea_search_messages',
1106 'classpath' => 'message/externallib.php',
1107 'description' => 'Retrieve the template data for searching for messages',
1108 'type' => 'read',
1109 'ajax' => true,
53522c6e 1110 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
cd03b8d7 1111 ),
48e8bdba 1112 'core_message_data_for_messagearea_search_users' => array(
cd03b8d7 1113 'classname' => 'core_message_external',
48e8bdba 1114 'methodname' => 'data_for_messagearea_search_users',
cd03b8d7 1115 'classpath' => 'message/externallib.php',
548cac7d
AA
1116 'description' => '** DEPRECATED ** Please do not call this function any more.
1117 Retrieve the template data for searching for people',
cd03b8d7
MN
1118 'type' => 'read',
1119 'ajax' => true,
1120 ),
48e8bdba 1121 'core_message_data_for_messagearea_search_users_in_course' => array(
cd03b8d7 1122 'classname' => 'core_message_external',
48e8bdba 1123 'methodname' => 'data_for_messagearea_search_users_in_course',
cd03b8d7 1124 'classpath' => 'message/externallib.php',
548cac7d
AA
1125 'description' => '** DEPRECATED ** Please do not call this function any more.
1126 Retrieve the template data for searching for people in a course',
1127 'type' => 'read',
1128 'ajax' => true,
1129 ),
1130 'core_message_message_search_users' => array(
1131 'classname' => 'core_message_external',
1132 'methodname' => 'message_search_users',
1133 'classpath' => 'message/externallib.php',
1134 'description' => 'Retrieve the data for searching for people',
cd03b8d7
MN
1135 'type' => 'read',
1136 'ajax' => true,
548cac7d 1137 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
cd03b8d7 1138 ),
9aa012b5
MN
1139 'core_message_data_for_messagearea_conversations' => array(
1140 'classname' => 'core_message_external',
1141 'methodname' => 'data_for_messagearea_conversations',
1142 'classpath' => 'message/externallib.php',
eb35e0b1
JD
1143 'description' => '** DEPRECATED ** Please do not call this function any more.
1144 Retrieve the template data for the conversation list',
9aa012b5
MN
1145 'type' => 'read',
1146 'ajax' => true,
21d9f020 1147 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9aa012b5
MN
1148 ),
1149 'core_message_data_for_messagearea_contacts' => array(
1150 'classname' => 'core_message_external',
1151 'methodname' => 'data_for_messagearea_contacts',
1152 'classpath' => 'message/externallib.php',
a6049a79
MN
1153 'description' => '** DEPRECATED ** Please do not call this function any more.
1154 Retrieve the template data for the contact list',
9aa012b5
MN
1155 'type' => 'read',
1156 'ajax' => true,
21d9f020 1157 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9aa012b5 1158 ),
3cd13828
MN
1159 'core_message_data_for_messagearea_messages' => array(
1160 'classname' => 'core_message_external',
1161 'methodname' => 'data_for_messagearea_messages',
1162 'classpath' => 'message/externallib.php',
a6049a79
MN
1163 'description' => '** DEPRECATED ** Please do not call this function any more.
1164 Retrieve the template data for the messages',
3cd13828
MN
1165 'type' => 'read',
1166 'ajax' => true,
21d9f020 1167 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3cd13828 1168 ),
c060cd49
MN
1169 'core_message_data_for_messagearea_get_most_recent_message' => array(
1170 'classname' => 'core_message_external',
1171 'methodname' => 'data_for_messagearea_get_most_recent_message',
1172 'classpath' => 'message/externallib.php',
a6049a79
MN
1173 'description' => '** DEPRECATED ** Please do not call this function any more.
1174 Retrieve the template data for the most recent message',
c060cd49
MN
1175 'type' => 'read',
1176 'ajax' => true,
1177 ),
c6e97f54
MN
1178 'core_message_data_for_messagearea_get_profile' => array(
1179 'classname' => 'core_message_external',
1180 'methodname' => 'data_for_messagearea_get_profile',
1181 'classpath' => 'message/externallib.php',
a6049a79
MN
1182 'description' => '** DEPRECATED ** Please do not call this function any more.
1183 Retrieve the template data for the users\'s profile',
c6e97f54
MN
1184 'type' => 'read',
1185 'ajax' => true,
1186 ),
d6731600 1187 'core_message_get_contacts' => array(
f23e9b6b
CB
1188 'classname' => 'core_message_external',
1189 'methodname' => 'get_contacts',
1190 'classpath' => 'message/externallib.php',
f8905537
MN
1191 'description' => '** DEPRECATED ** Please do not call this function any more.
1192 Retrieve the contact list',
f23e9b6b 1193 'type' => 'read',
6f31927a
JD
1194 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1195 ),
c9b0f33f
MN
1196 'core_message_get_user_contacts' => array(
1197 'classname' => 'core_message_external',
1198 'methodname' => 'get_user_contacts',
1199 'classpath' => 'message/externallib.php',
d6731600 1200 'description' => 'Retrieve the contact list',
f23e9b6b 1201 'type' => 'read',
c9b0f33f 1202 'ajax' => true,
6f31927a
JD
1203 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1204 ),
1205 'core_message_get_conversations' => array(
1206 'classname' => 'core_message_external',
1207 'methodname' => 'get_conversations',
1208 'classpath' => 'message/externallib.php',
1209 'description' => 'Retrieve a list of conversations for a user',
1210 'type' => 'read',
ee7295ee 1211 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
b3bbd4a0 1212 'ajax' => true
d6731600 1213 ),
4e313026
RW
1214 'core_message_get_conversation' => array(
1215 'classname' => 'core_message_external',
1216 'methodname' => 'get_conversation',
1217 'classpath' => 'message/externallib.php',
1218 'description' => 'Retrieve a conversation for a user',
1219 'type' => 'read',
569c0bae
RW
1220 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1221 'ajax' => true
1222 ),
1223 'core_message_get_conversation_between_users' => array(
1224 'classname' => 'core_message_external',
1225 'methodname' => 'get_conversation_between_users',
1226 'classpath' => 'message/externallib.php',
1227 'description' => 'Retrieve a conversation for a user between another user',
1228 'type' => 'read',
4e313026
RW
1229 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1230 'ajax' => true
1231 ),
734b198f
SA
1232 'core_message_get_self_conversation' => array(
1233 'classname' => 'core_message_external',
1234 'methodname' => 'get_self_conversation',
1235 'classpath' => 'message/externallib.php',
1236 'description' => 'Retrieve a self-conversation for a user',
1237 'type' => 'read',
1238 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1239 'ajax' => true
1240 ),
aff9da17 1241 'core_message_get_messages' => array(
f23e9b6b
CB
1242 'classname' => 'core_message_external',
1243 'methodname' => 'get_messages',
1244 'classpath' => 'message/externallib.php',
1245 'description' => 'Retrieve a list of messages sent and received by a user (conversations, notifications or both)',
1246 'type' => 'read',
ee7295ee 1247 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3274d5ca
RW
1248 'ajax' => true,
1249 ),
28ff6ad1
JD
1250 'core_message_get_conversation_counts' => array(
1251 'classname' => 'core_message_external',
1252 'methodname' => 'get_conversation_counts',
1253 'classpath' => 'message/externallib.php',
1254 'description' => 'Retrieve a list of conversation counts, indexed by type.',
1255 'type' => 'read',
1256 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1257 'ajax' => true,
1258 ),
b402a163
JD
1259 'core_message_get_unread_conversation_counts' => array(
1260 'classname' => 'core_message_external',
1261 'methodname' => 'get_unread_conversation_counts',
1262 'classpath' => 'message/externallib.php',
1263 'description' => 'Retrieve a list of unread conversation counts, indexed by type.',
1264 'type' => 'read',
1265 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1266 'ajax' => true,
1267 ),
5584c48a
MN
1268 'core_message_get_conversation_members' => array(
1269 'classname' => 'core_message_external',
1270 'methodname' => 'get_conversation_members',
1271 'classpath' => 'message/externallib.php',
1272 'description' => 'Retrieve a list of members in a conversation',
1273 'type' => 'read',
1274 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1275 'ajax' => true,
1276 ),
8350978a
RW
1277 'core_message_get_member_info' => array(
1278 'classname' => 'core_message_external',
1279 'methodname' => 'get_member_info',
1280 'classpath' => 'message/externallib.php',
1281 'description' => 'Retrieve a user message profiles',
1282 'type' => 'read',
1283 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1284 'ajax' => true,
1285 ),
8c55bd6c
RW
1286 'core_message_get_unread_conversations_count' => array(
1287 'classname' => 'core_message_external',
1288 'methodname' => 'get_unread_conversations_count',
1289 'classpath' => 'message/externallib.php',
1290 'description' => 'Retrieve the count of unread conversations for a given user',
1291 'type' => 'read',
1292 'ajax' => true,
53522c6e 1293 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8c55bd6c 1294 ),
3274d5ca
RW
1295 'core_message_mark_all_notifications_as_read' => array(
1296 'classname' => 'core_message_external',
1297 'methodname' => 'mark_all_notifications_as_read',
1298 'classpath' => 'message/externallib.php',
8c55bd6c
RW
1299 'description' => 'Mark all notifications as read for a given user',
1300 'type' => 'write',
1301 'ajax' => true,
53522c6e 1302 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8c55bd6c
RW
1303 ),
1304 'core_message_mark_all_messages_as_read' => array(
1305 'classname' => 'core_message_external',
1306 'methodname' => 'mark_all_messages_as_read',
1307 'classpath' => 'message/externallib.php',
e4c30994
MN
1308 'description' => '** DEPRECATED ** Please do not call this function any more.
1309 Mark all messages as read for a given user',
3274d5ca
RW
1310 'type' => 'write',
1311 'ajax' => true,
53522c6e 1312 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
60ab2e1b 1313 ),
09ec5017
MN
1314 'core_message_mark_all_conversation_messages_as_read' => array(
1315 'classname' => 'core_message_external',
1316 'methodname' => 'mark_all_conversation_messages_as_read',
1317 'classpath' => 'message/externallib.php',
1318 'description' => 'Mark all conversation messages as read for a given user',
3274d5ca
RW
1319 'type' => 'write',
1320 'ajax' => true,
53522c6e 1321 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
60ab2e1b 1322 ),
a84f89ca 1323 'core_message_mark_message_read' => array(
f23e9b6b
CB
1324 'classname' => 'core_message_external',
1325 'methodname' => 'mark_message_read',
1326 'classpath' => 'message/externallib.php',
1327 'description' => 'Mark a single message as read, trigger message_viewed event.',
1328 'type' => 'write',
ee7295ee 1329 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
0b19d048 1330 'ajax' => true,
a84f89ca 1331 ),
2b595d96
MN
1332 'core_message_mark_notification_read' => array(
1333 'classname' => 'core_message_external',
1334 'methodname' => 'mark_notification_read',
1335 'classpath' => 'message/externallib.php',
1336 'description' => 'Mark a single notification as read, trigger notification_viewed event.',
1337 'type' => 'write',
1338 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1339 'ajax' => true,
1340 ),
a0eabdd3
RW
1341 'core_message_message_processor_config_form' => array(
1342 'classname' => 'core_message_external',
1343 'methodname' => 'message_processor_config_form',
1344 'classpath' => 'message/externallib.php',
1345 'description' => 'Process the message processor config form',
1346 'type' => 'write',
1347 'ajax' => true,
53522c6e 1348 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
a0eabdd3 1349 ),
8c125526
RW
1350 'core_message_get_message_processor' => array(
1351 'classname' => 'core_message_external',
1352 'methodname' => 'get_message_processor',
1353 'classpath' => 'message/externallib.php',
1354 'description' => 'Get a message processor',
1355 'type' => 'read',
1356 'ajax' => true,
1357 ),
f23e9b6b
CB
1358 'core_message_search_contacts' => array(
1359 'classname' => 'core_message_external',
1360 'methodname' => 'search_contacts',
1361 'classpath' => 'message/externallib.php',
1362 'description' => 'Search for contacts',
1363 'type' => 'read',
ee7295ee 1364 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
419b1128 1365 ),
f23e9b6b
CB
1366 'core_message_send_instant_messages' => array(
1367 'classname' => 'core_message_external',
1368 'methodname' => 'send_instant_messages',
1369 'classpath' => 'message/externallib.php',
1370 'description' => 'Send instant messages',
1371 'type' => 'write',
ee7295ee 1372 'capabilities' => 'moodle/site:sendmessage',
c060cd49 1373 'ajax' => true,
ee7295ee 1374 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b 1375 ),
2553e9db
JD
1376 'core_message_send_messages_to_conversation' => array(
1377 'classname' => 'core_message_external',
1378 'methodname' => 'send_messages_to_conversation',
1379 'classpath' => 'message/externallib.php',
1380 'description' => 'Send messages to an existing conversation between users',
1381 'type' => 'write',
1382 'capabilities' => 'moodle/site:sendmessage',
1383 'ajax' => true,
1384 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1385 ),
fb04293b
SA
1386 'core_message_get_conversation_messages' => array(
1387 'classname' => 'core_message_external',
1388 'methodname' => 'get_conversation_messages',
1389 'classpath' => 'message/externallib.php',
1390 'description' => 'Retrieve the conversation messages and relevant member information',
1391 'type' => 'read',
1392 'ajax' => true,
1393 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1394 ),
52284186
MN
1395 'core_message_unblock_user' => array(
1396 'classname' => 'core_message_external',
1397 'methodname' => 'unblock_user',
1398 'classpath' => 'message/externallib.php',
1399 'description' => 'Unblocks a user',
1400 'type' => 'write',
1401 'ajax' => true,
1402 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1403 ),
f23e9b6b
CB
1404 'core_message_unblock_contacts' => array(
1405 'classname' => 'core_message_external',
1406 'methodname' => 'unblock_contacts',
1407 'classpath' => 'message/externallib.php',
0b3eadcd
MN
1408 'description' => '** DEPRECATED ** Please do not call this function any more.
1409 Unblock contacts',
f23e9b6b 1410 'type' => 'write',
c6e97f54 1411 'ajax' => true,
ee7295ee 1412 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 1413 ),
e86f0cb4
JL
1414 'core_message_get_user_notification_preferences' => array(
1415 'classname' => 'core_message_external',
1416 'methodname' => 'get_user_notification_preferences',
1417 'classpath' => 'message/externallib.php',
1418 'description' => 'Get the notification preferences for a given user.',
1419 'type' => 'read',
1420 'capabilities' => 'moodle/user:editownmessageprofile',
1421 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1422 ),
2521afd2
JL
1423 'core_message_get_user_message_preferences' => array(
1424 'classname' => 'core_message_external',
1425 'methodname' => 'get_user_message_preferences',
1426 'classpath' => 'message/externallib.php',
1427 'description' => 'Get the message preferences for a given user.',
1428 'type' => 'read',
1429 'capabilities' => 'moodle/user:editownmessageprofile',
1430 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
08ae9a73 1431 'ajax' => true
2521afd2 1432 ),
5b367bae
JD
1433 'core_message_set_favourite_conversations' => array(
1434 'classname' => 'core_message_external',
1435 'methodname' => 'set_favourite_conversations',
1436 'classpath' => 'message/externallib.php',
1437 'description' => 'Mark a conversation or group of conversations as favourites/starred conversations.',
1438 'type' => 'write',
9e189a91 1439 'ajax' => true,
5b367bae
JD
1440 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1441 ),
1442 'core_message_unset_favourite_conversations' => array(
1443 'classname' => 'core_message_external',
1444 'methodname' => 'unset_favourite_conversations',
1445 'classpath' => 'message/externallib.php',
1446 'description' => 'Unset a conversation or group of conversations as favourites/starred conversations.',
1447 'type' => 'write',
9e189a91 1448 'ajax' => true,
5b367bae
JD
1449 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1450 ),
e3e19387 1451 'core_message_delete_message_for_all_users' => array(
1452 'classname' => 'core_message_external',
1453 'methodname' => 'delete_message_for_all_users',
1454 'classpath' => 'message/externallib.php',
1455 'description' => 'Deletes a message for all users.',
1456 'type' => 'write',
1457 'capabilities' => 'moodle/site:deleteanymessage',
1458 'ajax' => true,
1459 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1460 ),
5d1017e1 1461 'core_notes_create_notes' => array(
f23e9b6b
CB
1462 'classname' => 'core_notes_external',
1463 'methodname' => 'create_notes',
1464 'classpath' => 'notes/externallib.php',
8d46dabb 1465 'description' => 'Create notes',
f23e9b6b 1466 'type' => 'write',
b5b81de3 1467 'ajax' => true,
ee7295ee
JL
1468 'capabilities' => 'moodle/notes:manage',
1469 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8d46dabb 1470 ),
34348b2b 1471 'core_notes_delete_notes' => array(
f23e9b6b
CB
1472 'classname' => 'core_notes_external',
1473 'methodname' => 'delete_notes',
1474 'classpath' => 'notes/externallib.php',
34348b2b 1475 'description' => 'Delete notes',
f23e9b6b 1476 'type' => 'write',
ee7295ee
JL
1477 'capabilities' => 'moodle/notes:manage',
1478 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f23e9b6b
CB
1479 ),
1480 'core_notes_get_course_notes' => array(
1481 'classname' => 'core_notes_external',
1482 'methodname' => 'get_course_notes',
1483 'classpath' => 'notes/externallib.php',
1484 'description' => 'Returns all notes in specified course (or site), for the specified user.',
1485 'type' => 'read',
ee7295ee
JL
1486 'capabilities' => 'moodle/notes:view',
1487 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
34348b2b 1488 ),
34348b2b 1489 'core_notes_get_notes' => array(
f23e9b6b
CB
1490 'classname' => 'core_notes_external',
1491 'methodname' => 'get_notes',
1492 'classpath' => 'notes/externallib.php',
34348b2b 1493 'description' => 'Get notes',
f23e9b6b
CB
1494 'type' => 'read',
1495 'capabilities' => 'moodle/notes:view'
34348b2b 1496 ),
34348b2b 1497 'core_notes_update_notes' => array(
f23e9b6b
CB
1498 'classname' => 'core_notes_external',
1499 'methodname' => 'update_notes',
1500 'classpath' => 'notes/externallib.php',
34348b2b 1501 'description' => 'Update notes',
f23e9b6b
CB
1502 'type' => 'write',
1503 'capabilities' => 'moodle/notes:manage'
34348b2b 1504 ),
a80b5518 1505 'core_notes_view_notes' => array(
f23e9b6b
CB
1506 'classname' => 'core_notes_external',
1507 'methodname' => 'view_notes',
1508 'classpath' => 'notes/externallib.php',
1509 'description' => 'Simulates the web interface view of notes/index.php: trigger events.',
1510 'type' => 'write',
ee7295ee
JL
1511 'capabilities' => 'moodle/notes:view',
1512 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9028d9b5 1513 ),
f23e9b6b
CB
1514 'core_output_load_template' => array(
1515 'classname' => 'core\output\external',
1516 'methodname' => 'load_template',
1517 'description' => 'Load a template for a renderable',
1518 'type' => 'read',
5041600d
RT
1519 'loginrequired' => false,
1520 'ajax' => true,
0ff4ebb4 1521 ),
e0034b5d
RW
1522 'core_output_load_template_with_dependencies' => array(
1523 'classname' => 'core\output\external',
1524 'methodname' => 'load_template_with_dependencies',
1525 'description' => 'Load a template and its dependencies for a renderable',
1526 'type' => 'read',
1527 'loginrequired' => false,
1528 'ajax' => true,
1529 ),
e330b1c2 1530 'core_output_load_fontawesome_icon_map' => array(
a26ce248 1531 'classname' => 'core\output\external',
e330b1c2 1532 'methodname' => 'load_fontawesome_icon_map',
a26ce248
DW
1533 'description' => 'Load the mapping of names to icons',
1534 'type' => 'read',
1535 'loginrequired' => false,
1536 'ajax' => true,
1537 ),
f23e9b6b
CB
1538 // Question related functions.
1539 'core_question_update_flag' => array(
1540 'classname' => 'core_question_external',
1541 'methodname' => 'update_flag',
1542 'description' => 'Update the flag state of a question attempt.',
1543 'type' => 'write',
1544 'capabilities' => 'moodle/question:flag',
ee7295ee 1545 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3f0ea6d8 1546 ),
680d5c5b
SL
1547 'core_question_submit_tags_form' => array(
1548 'classname' => 'core_question_external',
1549 'methodname' => 'submit_tags_form',
1550 'description' => 'Update the question tags.',
1551 'type' => 'write',
1552 'ajax' => true,
1553 ),
6768729e
RW
1554 'core_question_get_random_question_summaries' => array(
1555 'classname' => 'core_question_external',
1556 'methodname' => 'get_random_question_summaries',
1557 'description' => 'Get the random question set for a criteria',
1558 'type' => 'read',
1559 'ajax' => true,
1560 ),
f23e9b6b
CB
1561 'core_rating_get_item_ratings' => array(
1562 'classname' => 'core_rating_external',
1563 'methodname' => 'get_item_ratings',
1564 'description' => 'Retrieve all the ratings for an item.',
1565 'type' => 'read',
ee7295ee
JL
1566 'capabilities' => 'moodle/rating:view',
1567 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
5d1017e1 1568 ),
afb7799a
JL
1569 'core_rating_add_rating' => array(
1570 'classname' => 'core_rating_external',
1571 'methodname' => 'add_rating',
1572 'description' => 'Rates an item.',
1573 'type' => 'write',
1574 'capabilities' => 'moodle/rating:rate',
1575 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1576 ),
f23e9b6b
CB
1577 'core_role_assign_roles' => array(
1578 'classname' => 'core_role_external',
1579 'methodname' => 'assign_roles',
1580 'classpath' => 'enrol/externallib.php',
1581 'description' => 'Manual role assignments.',
1582 'type' => 'write',
1583 'capabilities' => 'moodle/role:assign'
0bf486a6 1584 ),
f23e9b6b
CB
1585 'core_role_unassign_roles' => array(
1586 'classname' => 'core_role_external',
1587 'methodname' => 'unassign_roles',
1588 'classpath' => 'enrol/externallib.php',
1589 'description' => 'Manual role unassignments.',
1590 'type' => 'write',
1591 'capabilities' => 'moodle/role:assign'
11e76602 1592 ),
a6cacdd2 1593 'core_search_get_relevant_users' => array(
1594 'classname' => '\core_search\external',
1595 'methodname' => 'get_relevant_users',
1596 'description' => 'Gets relevant users for a search request.',
1597 'type' => 'read',
1598 'ajax' => true
1599 ),
f23e9b6b
CB
1600 'core_tag_get_tagindex' => array(
1601 'classname' => 'core_tag_external',
1602 'methodname' => 'get_tagindex',
1603 'description' => 'Gets tag index page for one tag and one tag area',
1604 'type' => 'read',
5041600d 1605 'ajax' => true,
52fcc0b8 1606 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
11e76602 1607 ),
f23e9b6b
CB
1608 'core_tag_get_tags' => array(
1609 'classname' => 'core_tag_external',
1610 'methodname' => 'get_tags',
1611 'description' => 'Gets tags by their ids',
1612 'type' => 'read',
5041600d 1613 'ajax' => true,
11e76602 1614 ),
f23e9b6b
CB
1615 'core_tag_update_tags' => array(
1616 'classname' => 'core_tag_external',
1617 'methodname' => 'update_tags',
1618 'description' => 'Updates tags',
1619 'type' => 'write',
5041600d 1620 'ajax' => true,
cc73ea07 1621 ),
f1218899
JL
1622 'core_tag_get_tagindex_per_area' => array(
1623 'classname' => 'core_tag_external',
1624 'methodname' => 'get_tagindex_per_area',
1625 'description' => 'Gets tag index page per different areas.',
1626 'type' => 'read',
1627 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1628 ),
07a48837
JL
1629 'core_tag_get_tag_areas' => array(
1630 'classname' => 'core_tag_external',
1631 'methodname' => 'get_tag_areas',
1632 'description' => 'Retrieves existing tag areas.',
1633 'type' => 'read',
1634 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1635 ),
87bdad57
JL
1636 'core_tag_get_tag_collections' => array(
1637 'classname' => 'core_tag_external',
1638 'methodname' => 'get_tag_collections',
1639 'description' => 'Retrieves existing tag collections.',
1640 'type' => 'read',
1641 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1642 ),
86fd9277
JL
1643 'core_tag_get_tag_cloud' => array(
1644 'classname' => 'core_tag_external',
1645 'methodname' => 'get_tag_cloud',
1646 'description' => 'Retrieves a tag cloud for the given collection and/or query search.',
1647 'type' => 'read',
1648 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1649 ),
cdc5f978 1650 'core_update_inplace_editable' => array(
f23e9b6b
CB
1651 'classname' => 'core_external',
1652 'methodname' => 'update_inplace_editable',
1653 'classpath' => 'lib/external/externallib.php',
cdc5f978 1654 'description' => 'Generic service to update title',
f23e9b6b 1655 'type' => 'write',
5041600d
RT
1656 'loginrequired' => true,
1657 'ajax' => true,
c66dc3df 1658 ),
f23e9b6b
CB
1659 'core_user_add_user_device' => array(
1660 'classname' => 'core_user_external',
1661 'methodname' => 'add_user_device',
1662 'classpath' => 'user/externallib.php',
1663 'description' => 'Store mobile user devices information for PUSH Notifications.',
1664 'type' => 'write',
ee7295ee 1665 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
9bdcf579 1666 ),
f23e9b6b
CB
1667 'core_user_add_user_private_files' => array(
1668 'classname' => 'core_user_external',
1669 'methodname' => 'add_user_private_files',
1670 'classpath' => 'user/externallib.php',
1671 'description' => 'Copy files from a draft area to users private files area.',
1672 'type' => 'write',
ee7295ee
JL
1673 'capabilities' => 'moodle/user:manageownfiles',
1674 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
25c49a85 1675 ),
f23e9b6b
CB
1676 'core_user_create_users' => array(
1677 'classname' => 'core_user_external',
1678 'methodname' => 'create_users',
1679 'classpath' => 'user/externallib.php',
1680 'description' => 'Create users.',
1681 'type' => 'write',
1682 'capabilities' => 'moodle/user:create'
23b398fc 1683 ),
f23e9b6b
CB
1684 'core_user_delete_users' => array(
1685 'classname' => 'core_user_external',
1686 'methodname' => 'delete_users',
1687 'classpath' => 'user/externallib.php',
1688 'description' => 'Delete users.',
1689 'type' => 'write',
1690 'capabilities' => 'moodle/user:delete'
6c785afa 1691 ),
f23e9b6b
CB
1692 'core_user_get_course_user_profiles' => array(
1693 'classname' => 'core_user_external',
1694 'methodname' => 'get_course_user_profiles',
1695 'classpath' => 'user/externallib.php',
1696 'description' => 'Get course user profiles (each of the profils matching a course id and a user id),.',
1697 'type' => 'read',
1698 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, '
ee7295ee
JL
1699 . 'moodle/site:accessallgroups',
1700 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
6c785afa 1701 ),
f23e9b6b
CB
1702 'core_user_get_users' => array(
1703 'classname' => 'core_user_external',
1704 'methodname' => 'get_users',
1705 'classpath' => 'user/externallib.php',
1706 'description' => 'search for users matching the parameters',
1707 'type' => 'read',
1708 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'
db5b6971 1709 ),
f23e9b6b
CB
1710 'core_user_get_users_by_field' => array(
1711 'classname' => 'core_user_external',
1712 'methodname' => 'get_users_by_field',
1713 'classpath' => 'user/externallib.php',
1714 'description' => 'Retrieve users\' information for a specified unique field - If you want to do a user search, use '
1715 . 'core_user_get_users()',
1716 'type' => 'read',
ee7295ee 1717 'capabilities' => 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
5041600d 1718 'ajax' => true,
ee7295ee 1719 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8e355853 1720 ),
f23e9b6b
CB
1721 'core_user_remove_user_device' => array(
1722 'classname' => 'core_user_external',
1723 'methodname' => 'remove_user_device',
1724 'classpath' => 'user/externallib.php',
1725 'description' => 'Remove a user device from the Moodle database.',
1726 'type' => 'write',
ee7295ee 1727 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
ef4c23cc 1728 ),
c598f278 1729 'core_user_update_users' => array(
a0eabdd3 1730 'classname' => 'core_user_external',
c598f278 1731 'methodname' => 'update_users',
a0eabdd3 1732 'classpath' => 'user/externallib.php',
c598f278 1733 'description' => 'Update users.',
a0eabdd3
RW
1734 'type' => 'write',
1735 'capabilities' => 'moodle/user:update',
1736 'ajax' => true,
1737 ),
c598f278 1738 'core_user_update_user_preferences' => array(
f23e9b6b 1739 'classname' => 'core_user_external',
c598f278 1740 'methodname' => 'update_user_preferences',
f23e9b6b 1741 'classpath' => 'user/externallib.php',
c598f278 1742 'description' => 'Update a user\'s preferences',
f23e9b6b 1743 'type' => 'write',
c598f278 1744 'capabilities' => 'moodle/user:editownmessageprofile, moodle/user:editmessageprofile',
a0eabdd3 1745 'ajax' => true,
6d2f938c 1746 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
c026a28d 1747 ),
f23e9b6b
CB
1748 'core_user_view_user_list' => array(
1749 'classname' => 'core_user_external',
1750 'methodname' => 'view_user_list',
1751 'classpath' => 'user/externallib.php',
1752 'description' => 'Simulates the web-interface view of user/index.php (triggering events),.',
1753 'type' => 'write',
1754 'capabilities' => 'moodle/course:viewparticipants',
ee7295ee 1755 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
7361b968 1756 ),
f23e9b6b
CB
1757 'core_user_view_user_profile' => array(
1758 'classname' => 'core_user_external',
1759 'methodname' => 'view_user_profile',
1760 'classpath' => 'user/externallib.php',
1761 'description' => 'Simulates the web-interface view of user/view.php and user/profile.php (triggering events),.',
1762 'type' => 'write',
1763 'capabilities' => 'moodle/user:viewdetails',
ee7295ee 1764 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
f4fb827e 1765 ),
45fec983
JL
1766 'core_user_get_user_preferences' => array(
1767 'classname' => 'core_user_external',
1768 'methodname' => 'get_user_preferences',
1769 'classpath' => 'user/externallib.php',
1770 'description' => 'Return user preferences.',
1771 'type' => 'read',
5005d8cf 1772 'ajax' => true,
45fec983
JL
1773 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1774 ),
d44e2e42
JL
1775 'core_user_update_picture' => array(
1776 'classname' => 'core_user_external',
1777 'methodname' => 'update_picture',
1778 'classpath' => 'user/externallib.php',
1779 'description' => 'Update or delete the user picture in the site',
1780 'type' => 'write',
1781 'capabilities' => 'moodle/user:editownprofile, moodle/user:editprofile',
1782 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1783 ),
649777fb
JL
1784 'core_user_set_user_preferences' => array(
1785 'classname' => 'core_user_external',
1786 'methodname' => 'set_user_preferences',
1787 'classpath' => 'user/externallib.php',
1788 'description' => 'Set user preferences.',
1789 'type' => 'write',
1790 'capabilities' => 'moodle/site:config',
2979ca11
JL
1791 'ajax' => true,
1792 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
649777fb 1793 ),
3e8145a3
JL
1794 'core_user_agree_site_policy' => array(
1795 'classname' => 'core_user_external',
1796 'methodname' => 'agree_site_policy',
1797 'classpath' => 'user/externallib.php',
1798 'description' => 'Agree the site policy for the current user.',
1799 'type' => 'write',
1800 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1801 ),
f74ac6e7
JL
1802 'core_user_get_private_files_info' => array(
1803 'classname' => 'core_user_external',
1804 'methodname' => 'get_private_files_info',
1805 'classpath' => 'user/externallib.php',
1806 'description' => 'Returns general information about files in the user private files area.',
1807 'type' => 'read',
1808 'capabilities' => 'moodle/user:manageownfiles',
1809 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1810 ),
649777fb 1811
81de839f
FM
1812 // Competencies functions.
1813 'core_competency_create_competency_framework' => array(
1814 'classname' => 'core_competency\external',
1815 'methodname' => 'create_competency_framework',
1816 'classpath' => '',
1817 'description' => 'Creates new competency frameworks.',
1818 'type' => 'write',
1819 'capabilities' => 'moodle/competency:competencymanage',
1820 'ajax' => true,
1821 ),
1822 'core_competency_read_competency_framework' => array(
1823 'classname' => 'core_competency\external',
1824 'methodname' => 'read_competency_framework',
1825 'classpath' => '',
1826 'description' => 'Load a summary of a competency framework.',
1827 'type' => 'read',
1828 'capabilities' => 'moodle/competency:competencyview',
1829 'ajax' => true,
1830 ),
1831 'core_competency_duplicate_competency_framework' => array(
1832 'classname' => 'core_competency\external',
1833 'methodname' => 'duplicate_competency_framework',
1834 'classpath' => '',
1835 'description' => 'Duplicate a competency framework.',
1836 'type' => 'write',
1837 'capabilities' => 'moodle/competency:competencymanage',
1838 'ajax' => true,
1839 ),
1840 'core_competency_delete_competency_framework' => array(
1841 'classname' => 'core_competency\external',
1842 'methodname' => 'delete_competency_framework',
1843 'classpath' => '',
1844 'description' => 'Delete a competency framework.',
1845 'type' => 'write',
1846 'capabilities' => 'moodle/competency:competencymanage',
1847 'ajax' => true,
1848 ),
1849 'core_competency_update_competency_framework' => array(
1850 'classname' => 'core_competency\external',
1851 'methodname' => 'update_competency_framework',
1852 'classpath' => '',
1853 'description' => 'Update a competency framework.',
1854 'type' => 'write',
1855 'capabilities' => 'moodle/competency:competencymanage',
1856 'ajax' => true,
1857 ),
1858 'core_competency_list_competency_frameworks' => array(
1859 'classname' => 'core_competency\external',
1860 'methodname' => 'list_competency_frameworks',
1861 'classpath' => '',
1862 'description' => 'Load a list of a competency frameworks.',
1863 'type' => 'read',
1864 'capabilities' => 'moodle/competency:competencyview',
1865 'ajax' => true,
1866 ),
1867 'core_competency_count_competency_frameworks' => array(
1868 'classname' => 'core_competency\external',
1869 'methodname' => 'count_competency_frameworks',
1870 'classpath' => '',
1871 'description' => 'Count a list of a competency frameworks.',
1872 'type' => 'read',
1873 'capabilities' => 'moodle/competency:competencyview',
1874 'ajax' => true,
1875 ),
1876 'core_competency_competency_framework_viewed' => array(
1877 'classname' => 'core_competency\external',
1878 'methodname' => 'competency_framework_viewed',
1879 'classpath' => '',
1880 'description' => 'Log event competency framework viewed',
1881 'type' => 'read',
1882 'capabilities' => 'moodle/competency:competencyview',
1883 'ajax' => true,
1884 ),
1885 'core_competency_create_competency' => array(
1886 'classname' => 'core_competency\external',
1887 'methodname' => 'create_competency',
1888 'classpath' => '',
1889 'description' => 'Creates new competencies.',
1890 'type' => 'write',
1891 'capabilities' => 'moodle/competency:competencymanage',
1892 'ajax' => true,
1893 ),
1894 'core_competency_read_competency' => array(
1895 'classname' => 'core_competency\external',
1896 'methodname' => 'read_competency',
1897 'classpath' => '',
1898 'description' => 'Load a summary of a competency.',
1899 'type' => 'read',
1900 'capabilities' => 'moodle/competency:competencyview',
1901 'ajax' => true,
1902 ),
1903 'core_competency_competency_viewed' => array(
1904 'classname' => 'core_competency\external',
1905 'methodname' => 'competency_viewed',
1906 'classpath' => '',
1907 'description' => 'Log event competency viewed',
1908 'type' => 'read',
1909 'capabilities' => 'moodle/competency:competencyview',
1910 'ajax' => true,
3123c2cf 1911 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
1912 ),
1913 'core_competency_delete_competency' => array(
1914 'classname' => 'core_competency\external',
1915 'methodname' => 'delete_competency',
1916 'classpath' => '',
1917 'description' => 'Delete a competency.',
1918 'type' => 'write',
1919 'capabilities' => 'moodle/competency:competencymanage',
1920 'ajax' => true,
1921 ),
1922 'core_competency_update_competency' => array(
1923 'classname' => 'core_competency\external',
1924 'methodname' => 'update_competency',
1925 'classpath' => '',
1926 'description' => 'Update a competency.',
1927 'type' => 'write',
1928 'capabilities' => 'moodle/competency:competencymanage',
1929 'ajax' => true,
1930 ),
1931 'core_competency_list_competencies' => array(
1932 'classname' => 'core_competency\external',
1933 'methodname' => 'list_competencies',
1934 'classpath' => '',
1935 'description' => 'Load a list of a competencies.',
1936 'type' => 'read',
1937 'capabilities' => 'moodle/competency:competencyview',
1938 'ajax' => true,
1939 ),
1940 'core_competency_list_competencies_in_template' => array(
1941 'classname' => 'core_competency\external',
1942 'methodname' => 'list_competencies_in_template',
1943 'classpath' => '',
1944 'description' => 'Load a list of a competencies for a given template.',
1945 'type' => 'read',
1946 'capabilities' => 'moodle/competency:competencyview',
1947 'ajax' => true,
1948 ),
1949 'core_competency_count_competencies' => array(
1950 'classname' => 'core_competency\external',
1951 'methodname' => 'count_competencies',
1952 'classpath' => '',
1953 'description' => 'Count a list of a competencies.',
1954 'type' => 'read',
1955 'capabilities' => 'moodle/competency:competencyview',
1956 'ajax' => true,
1957 ),
1958 'core_competency_count_competencies_in_template' => array(
1959 'classname' => 'core_competency\external',
1960 'methodname' => 'count_competencies_in_template',
1961 'classpath' => '',
1962 'description' => 'Count a list of a competencies for a given template.',
1963 'type' => 'read',
1964 'capabilities' => 'moodle/competency:competencyview',
1965 'ajax' => true,
1966 ),
1967 'core_competency_search_competencies' => array(
1968 'classname' => 'core_competency\external',
1969 'methodname' => 'search_competencies',
1970 'classpath' => '',
1971 'description' => 'Search a list of a competencies.',
1972 'type' => 'read',
1973 'capabilities' => 'moodle/competency:competencyview',
1974 'ajax' => true,
1975 ),
1976 'core_competency_set_parent_competency' => array(
1977 'classname' => 'core_competency\external',
1978 'methodname' => 'set_parent_competency',
1979 'classpath' => '',
1980 'description' => 'Set a new parent for a competency.',
1981 'type' => 'write',
1982 'capabilities' => 'moodle/competency:competencymanage',
1983 'ajax' => true,
1984 ),
1985 'core_competency_move_up_competency' => array(
1986 'classname' => 'core_competency\external',
1987 'methodname' => 'move_up_competency',
1988 'classpath' => '',
1989 'description' => 'Re-order a competency.',
1990 'type' => 'write',
1991 'capabilities' => 'moodle/competency:competencymanage',
1992 'ajax' => true,
1993 ),
1994 'core_competency_move_down_competency' => array(
1995 'classname' => 'core_competency\external',
1996 'methodname' => 'move_down_competency',
1997 'classpath' => '',
1998 'description' => 'Re-order a competency.',
1999 'type' => 'write',
2000 'capabilities' => 'moodle/competency:competencymanage',
2001 'ajax' => true,
2002 ),
bde97497
DW
2003 'core_competency_list_course_module_competencies' => array(
2004 'classname' => 'core_competency\external',
2005 'methodname' => 'list_course_module_competencies',
2006 'classpath' => '',
2007 'description' => 'List the competencies in a course module',
2008 'type' => 'read',
2009 'capabilities' => 'moodle/competency:coursecompetencyview',
2010 'ajax' => true,
2011 ),
2012 'core_competency_count_course_module_competencies' => array(
2013 'classname' => 'core_competency\external',
2014 'methodname' => 'count_course_module_competencies',
2015 'classpath' => '',
2016 'description' => 'Count the competencies in a course module',
2017 'type' => 'read',
2018 'capabilities' => 'moodle/competency:coursecompetencyview',
2019 'ajax' => true,
2020 ),
81de839f
FM
2021 'core_competency_list_course_competencies' => array(
2022 'classname' => 'core_competency\external',
2023 'methodname' => 'list_course_competencies',
2024 'classpath' => '',
2025 'description' => 'List the competencies in a course',
2026 'type' => 'read',
2027 'capabilities' => 'moodle/competency:coursecompetencyview',
2028 'ajax' => true,
3123c2cf 2029 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2030 ),
2031 'core_competency_count_competencies_in_course' => array(
2032 'classname' => 'core_competency\external',
2033 'methodname' => 'count_competencies_in_course',
2034 'classpath' => '',
2035 'description' => 'List the competencies in a course',
2036 'type' => 'read',
2037 'capabilities' => 'moodle/competency:coursecompetencyview',
2038 'ajax' => true,
2039 ),
2040 'core_competency_count_courses_using_competency' => array(
2041 'classname' => 'core_competency\external',
2042 'methodname' => 'count_courses_using_competency',
2043 'classpath' => '',
2044 'description' => 'List the courses using a competency',
2045 'type' => 'read',
2046 'capabilities' => 'moodle/competency:coursecompetencyview',
2047 'ajax' => true,
2048 ),
2049 'core_competency_add_competency_to_course' => array(
2050 'classname' => 'core_competency\external',
2051 'methodname' => 'add_competency_to_course',
2052 'classpath' => '',
2053 'description' => 'Add the competency to a course',
2054 'type' => 'write',
2055 'capabilities' => 'moodle/competency:coursecompetencymanage',
2056 'ajax' => true,
2057 ),
2058 'core_competency_add_competency_to_template' => array(
2059 'classname' => 'core_competency\external',
2060 'methodname' => 'add_competency_to_template',
2061 'classpath' => '',
2062 'description' => 'Add the competency to a template',
2063 'type' => 'write',
2064 'capabilities' => 'moodle/competency:templatemanage',
2065 'ajax' => true,
2066 ),
2067 'core_competency_remove_competency_from_course' => array(
2068 'classname' => 'core_competency\external',
2069 'methodname' => 'remove_competency_from_course',
2070 'classpath' => '',
2071 'description' => 'Remove a competency from a course',
2072 'type' => 'write',
2073 'capabilities' => 'moodle/competency:coursecompetencymanage',
2074 'ajax' => true,
2075 ),
2076 'core_competency_set_course_competency_ruleoutcome' => array(
2077 'classname' => 'core_competency\external',
2078 'methodname' => 'set_course_competency_ruleoutcome',
2079 'classpath' => '',
2080 'description' => 'Modify the ruleoutcome value for course competency',
2081 'type' => 'write',
2082 'capabilities' => 'moodle/competency:coursecompetencymanage',
2083 'ajax' => true,
2084 ),
2085 'core_competency_remove_competency_from_template' => array(
2086 'classname' => 'core_competency\external',
2087 'methodname' => 'remove_competency_from_template',
2088 'classpath' => '',
2089 'description' => 'Remove a competency from a template',
2090 'type' => 'write',
2091 'capabilities' => 'moodle/competency:templatemanage',
2092 'ajax' => true,
2093 ),
2094 'core_competency_reorder_course_competency' => array(
2095 'classname' => 'core_competency\external',
2096 'methodname' => 'reorder_course_competency',
2097 'classpath' => '',
2098 'description' => 'Move a course competency to a new relative sort order.',
2099 'type' => 'write',
2100 'capabilities' => 'moodle/competency:coursecompetencymanage',
2101 'ajax' => true,
2102 ),
2103 'core_competency_reorder_template_competency' => array(
2104 'classname' => 'core_competency\external',
2105 'methodname' => 'reorder_template_competency',
2106 'classpath' => '',
2107 'description' => 'Move a template competency to a new relative sort order.',
2108 'type' => 'write',
2109 'capabilities' => 'moodle/competency:templatemanage',
2110 'ajax' => true,
2111 ),
2112 'core_competency_create_template' => array(
2113 'classname' => 'core_competency\external',
2114 'methodname' => 'create_template',
2115 'classpath' => '',
2116 'description' => 'Creates new learning plan templates.',
2117 'type' => 'write',
2118 'capabilities' => 'moodle/competency:templatemanage',
2119 'ajax' => true,
2120 ),
2121 'core_competency_duplicate_template' => array(
2122 'classname' => 'core_competency\external',
2123 'methodname' => 'duplicate_template',
2124 'classpath' => '',
2125 'description' => 'Duplicate learning plan template.',
2126 'type' => 'write',
2127 'capabilities' => 'moodle/competency:templatemanage',
2128 'ajax' => true,
2129 ),
2130 'core_competency_read_template' => array(
2131 'classname' => 'core_competency\external',
2132 'methodname' => 'read_template',
2133 'classpath' => '',
2134 'description' => 'Load a summary of a learning plan template.',
2135 'type' => 'read',
2136 'capabilities' => 'moodle/competency:templateview',
2137 'ajax' => true,
2138 ),
2139 'core_competency_delete_template' => array(
2140 'classname' => 'core_competency\external',
2141 'methodname' => 'delete_template',
2142 'classpath' => '',
2143 'description' => 'Delete a learning plan template.',
2144 'type' => 'write',
2145 'capabilities' => 'moodle/competency:templatemanage',
2146 'ajax' => true,
2147 ),
2148 'core_competency_update_template' => array(
2149 'classname' => 'core_competency\external',
2150 'methodname' => 'update_template',
2151 'classpath' => '',
2152 'description' => 'Update a learning plan template.',
2153 'type' => 'write',
2154 'capabilities' => 'moodle/competency:templatemanage',
2155 'ajax' => true,
2156 ),
2157 'core_competency_list_templates' => array(
2158 'classname' => 'core_competency\external',
2159 'methodname' => 'list_templates',
2160 'classpath' => '',
2161 'description' => 'Load a list of a learning plan templates.',
2162 'type' => 'read',
2163 'capabilities' => 'moodle/competency:templateview',
2164 'ajax' => true,
2165 ),
2166 'core_competency_list_templates_using_competency' => array(
2167 'classname' => 'core_competency\external',
2168 'methodname' => 'list_templates_using_competency',
2169 'classpath' => '',
2170 'description' => 'Load a list of a learning plan templates for a given competency.',
2171 'type' => 'read',
2172 'capabilities' => 'moodle/competency:templateview',
2173 'ajax' => true,
2174 ),
2175 'core_competency_count_templates' => array(
2176 'classname' => 'core_competency\external',
2177 'methodname' => 'count_templates',
2178 'classpath' => '',
2179 'description' => 'Count a list of a learning plan templates.',
2180 'type' => 'read',
2181 'capabilities' => 'moodle/competency:templateview',
2182 'ajax' => true,
2183 ),
2184 'core_competency_count_templates_using_competency' => array(
2185 'classname' => 'core_competency\external',
2186 'methodname' => 'count_templates_using_competency',
2187 'classpath' => '',
2188 'description' => 'Count a list of a learning plan templates for a given competency.',
2189 'type' => 'read',
2190 'capabilities' => 'moodle/competency:templateview',
2191 'ajax' => true,
2192 ),
2193 'core_competency_create_plan' => array(
2194 'classname' => 'core_competency\external',
2195 'methodname' => 'create_plan',
2196 'classpath' => '',
2197 'description' => 'Creates a learning plan.',
2198 'type' => 'write',
2199 'capabilities' => 'moodle/competency:planmanage',
2200 'ajax' => true,
2201 ),
2202 'core_competency_update_plan' => array(
2203 'classname' => 'core_competency\external',
2204 'methodname' => 'update_plan',
2205 'classpath' => '',
2206 'description' => 'Updates a learning plan.',
2207 'type' => 'write',
2208 'capabilities' => 'moodle/competency:planmanage',
2209 'ajax' => true,
2210 ),
2211 'core_competency_complete_plan' => array(
2212 'classname' => 'core_competency\external',
2213 'methodname' => 'complete_plan',
2214 'classpath' => '',
2215 'description' => 'Complete learning plan.',
2216 'type' => 'write',
2217 'capabilities' => 'moodle/competency:planmanage',
2218 'ajax' => true,
2219 ),
2220 'core_competency_reopen_plan' => array(
2221 'classname' => 'core_competency\external',
2222 'methodname' => 'reopen_plan',
2223 'classpath' => '',
2224 'description' => 'Reopen learning plan.',
2225 'type' => 'write',
2226 'capabilities' => 'moodle/competency:planmanage',
2227 'ajax' => true,
2228 ),
2229 'core_competency_read_plan' => array(
2230 'classname' => 'core_competency\external',
2231 'methodname' => 'read_plan',
2232 'classpath' => '',
2233 'description' => 'Load a learning plan.',
2234 'type' => 'read',
2235 'capabilities' => 'moodle/competency:planviewown',
2236 'ajax' => true,
2237 ),
2238 'core_competency_delete_plan' => array(
2239 'classname' => 'core_competency\external',
2240 'methodname' => 'delete_plan',
2241 'classpath' => '',
2242 'description' => 'Delete a learning plan.',
2243 'type' => 'write',
2244 'capabilities' => 'moodle/competency:planmanage',
2245 'ajax' => true,
2246 ),
2247 'core_competency_list_user_plans' => array(
2248 'classname' => 'core_competency\external',
2249 'methodname' => 'list_user_plans',
2250 'classpath' => '',
2251 'description' => 'List a user\'s learning plans.',
2252 'type' => 'read',
2253 'capabilities' => 'moodle/competency:planviewown',
2254 'ajax' => true,
2255 ),
2256 'core_competency_list_plan_competencies' => array(
2257 'classname' => 'core_competency\external',
2258 'methodname' => 'list_plan_competencies',
2259 'classpath' => '',
2260 'description' => 'List the competencies in a plan',
2261 'type' => 'read',
2262 'capabilities' => 'moodle/competency:planviewown',
2263 'ajax' => true,
2264 ),
2265 'core_competency_add_competency_to_plan' => array(
2266 'classname' => 'core_competency\external',
2267 'methodname' => 'add_competency_to_plan',
2268 'classpath' => '',
2269 'description' => 'Add the competency to a learning plan',
2270 'type' => 'write',
2271 'capabilities' => 'moodle/competency:planmanage',
2272 'ajax' => true,
2273 ),
2274 'core_competency_remove_competency_from_plan' => array(
2275 'classname' => 'core_competency\external',
2276 'methodname' => 'remove_competency_from_plan',
2277 'classpath' => '',
2278 'description' => 'Remove the competency from a learning plan',
2279 'type' => 'write',
2280 'capabilities' => 'moodle/competency:planmanage',
2281 'ajax' => true,
2282 ),
2283 'core_competency_reorder_plan_competency' => array(
2284 'classname' => 'core_competency\external',
2285 'methodname' => 'reorder_plan_competency',
2286 'classpath' => '',
2287 'description' => 'Move a plan competency to a new relative sort order.',
2288 'type' => 'write',
2289 'capabilities' => 'moodle/competency:planmanage',
2290 'ajax' => true,
2291 ),
2292 'core_competency_plan_request_review' => array(
2293 'classname' => 'core_competency\external',
2294 'methodname' => 'plan_request_review',
2295 'classpath' => '',
2296 'description' => 'Request for a plan to be reviewed.',
2297 'type' => 'write',
2298 'capabilities' => 'moodle/competency:planmanagedraft',
2299 'ajax' => true,
2300 ),
2301 'core_competency_plan_start_review' => array(
2302 'classname' => 'core_competency\external',
2303 'methodname' => 'plan_start_review',
2304 'classpath' => '',
2305 'description' => 'Start the review of a plan.',
2306 'type' => 'write',
2307 'capabilities' => 'moodle/competency:planmanage',
2308 'ajax' => true,
2309 ),
2310 'core_competency_plan_stop_review' => array(
2311 'classname' => 'core_competency\external',
2312 'methodname' => 'plan_stop_review',
2313 'classpath' => '',
2314 'description' => 'Stop the review of a plan.',
2315 'type' => 'write',
2316 'capabilities' => 'moodle/competency:planmanage',
2317 'ajax' => true,
2318 ),
2319 'core_competency_plan_cancel_review_request' => array(
2320 'classname' => 'core_competency\external',
2321 'methodname' => 'plan_cancel_review_request',
2322 'classpath' => '',
2323 'description' => 'Cancel the review of a plan.',
2324 'type' => 'write',
2325 'capabilities' => 'moodle/competency:planmanagedraft',
2326 'ajax' => true,
2327 ),
2328 'core_competency_approve_plan' => array(
2329 'classname' => 'core_competency\external',
2330 'methodname' => 'approve_plan',
2331 'classpath' => '',
2332 'description' => 'Approve a plan.',
2333 'type' => 'write',
2334 'capabilities' => 'moodle/competency:planmanage',
2335 'ajax' => true,
2336 ),
2337 'core_competency_unapprove_plan' => array(
2338 'classname' => 'core_competency\external',
2339 'methodname' => 'unapprove_plan',
2340 'classpath' => '',
2341 'description' => 'Unapprove a plan.',
2342 'type' => 'write',
2343 'capabilities' => 'moodle/competency:planmanage',
2344 'ajax' => true,
2345 ),
2346 'core_competency_template_has_related_data' => array(
2347 'classname' => 'core_competency\external',
2348 'methodname' => 'template_has_related_data',
2349 'classpath' => '',
2350 'description' => 'Check if a template has related data',
2351 'type' => 'read',
2352 'capabilities' => 'moodle/competency:templateview',
2353 'ajax' => true,
2354 ),
2355 'core_competency_get_scale_values' => array(
2356 'classname' => 'core_competency\external',
2357 'methodname' => 'get_scale_values',
2358 'classpath' => '',
2359 'description' => 'Fetch the values for a specific scale',
2360 'type' => 'read',
2361 'capabilities' => 'moodle/competency:competencymanage',
2362 'ajax' => true,
3123c2cf 2363 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2364 ),
2365 'core_competency_add_related_competency' => array(
2366 'classname' => 'core_competency\external',
2367 'methodname' => 'add_related_competency',
2368 'classpath' => '',
2369 'description' => 'Adds a related competency',
2370 'type' => 'write',
2371 'capabilities' => 'moodle/competency:competencymanage',
2372 'ajax' => true,
2373 ),
2374 'core_competency_remove_related_competency' => array(
2375 'classname' => 'core_competency\external',
2376 'methodname' => 'remove_related_competency',
2377 'classpath' => '',
2378 'description' => 'Remove a related competency',
2379 'type' => 'write',
2380 'capabilities' => 'moodle/competency:competencymanage',
2381 'ajax' => true,
2382 ),
2383 'core_competency_read_user_evidence' => array(
2384 'classname' => 'core_competency\external',
2385 'methodname' => 'read_user_evidence',
2386 'classpath' => '',
2387 'description' => 'Read an evidence of prior learning.',
2388 'type' => 'read',
2389 'capabilities' => 'moodle/competency:userevidenceview',
2390 'ajax' => true,
2391 ),
2392 'core_competency_delete_user_evidence' => array(
2393 'classname' => 'core_competency\external',
2394 'methodname' => 'delete_user_evidence',
2395 'classpath' => '',
2396 'description' => 'Delete an evidence of prior learning.',
2397 'type' => 'write',
2398 'capabilities' => 'moodle/competency:userevidencemanageown',
2399 'ajax' => true,
2400 ),
2401 'core_competency_create_user_evidence_competency' => array(
2402 'classname' => 'core_competency\external',
2403 'methodname' => 'create_user_evidence_competency',
2404 'classpath' => '',
2405 'description' => 'Create an evidence of prior learning relationship with a competency.',
2406 'type' => 'read',
2407 'capabilities' => 'moodle/competency:userevidencemanageown, moodle/competency:competencyview',
2408 'ajax' => true,
2409 ),
2410 'core_competency_delete_user_evidence_competency' => array(
2411 'classname' => 'core_competency\external',
2412 'methodname' => 'delete_user_evidence_competency',
2413 'classpath' => '',
2414 'description' => 'Delete an evidence of prior learning relationship with a competency.',
2415 'type' => 'write',
2416 'capabilities' => 'moodle/competency:userevidencemanageown',
2417 'ajax' => true,
2418 ),
2419 'core_competency_user_competency_cancel_review_request' => array(
2420 'classname' => 'core_competency\external',
2421 'methodname' => 'user_competency_cancel_review_request',
2422 'classpath' => '',
2423 'description' => 'Cancel a review request.',
2424 'type' => 'write',
2425 'capabilities' => 'moodle/competency:userevidencemanageown',
2426 'ajax' => true,
2427 ),
2428 'core_competency_user_competency_request_review' => array(
2429 'classname' => 'core_competency\external',
2430 'methodname' => 'user_competency_request_review',
2431 'classpath' => '',
2432 'description' => 'Request a review.',
2433 'type' => 'write',
2434 'capabilities' => 'moodle/competency:userevidencemanageown',
2435 'ajax' => true,
2436 ),
2437 'core_competency_user_competency_start_review' => array(
2438 'classname' => 'core_competency\external',
2439 'methodname' => 'user_competency_start_review',
2440 'classpath' => '',
2441 'description' => 'Start a review.',
2442 'type' => 'write',
2443 'capabilities' => 'moodle/competency:competencygrade',
2444 'ajax' => true,
2445 ),
2446 'core_competency_user_competency_stop_review' => array(
2447 'classname' => 'core_competency\external',
2448 'methodname' => 'user_competency_stop_review',
2449 'classpath' => '',
2450 'description' => 'Stop a review.',
2451 'type' => 'write',
2452 'capabilities' => 'moodle/competency:competencygrade',
2453 'ajax' => true,
2454 ),
2455 'core_competency_user_competency_viewed' => array(
2456 'classname' => 'core_competency\external',
2457 'methodname' => 'user_competency_viewed',
2458 'classpath' => '',
2459 'description' => 'Log the user competency viewed event.',
2460 'type' => 'read',
2461 'capabilities' => 'moodle/competency:usercompetencyview',
2462 'ajax' => true,
3123c2cf 2463 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2464 ),
2465 'core_competency_user_competency_viewed_in_plan' => array(
2466 'classname' => 'core_competency\external',
2467 'methodname' => 'user_competency_viewed_in_plan',
2468 'classpath' => '',
2469 'description' => 'Log the user competency viewed in plan event.',
2470 'type' => 'read',
2471 'capabilities' => 'moodle/competency:usercompetencyview',
2472 'ajax' => true,
3123c2cf 2473 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2474 ),
2475 'core_competency_user_competency_viewed_in_course' => array(
2476 'classname' => 'core_competency\external',
2477 'methodname' => 'user_competency_viewed_in_course',
2478 'classpath' => '',
2479 'description' => 'Log the user competency viewed in course event',
2480 'type' => 'read',
2481 'capabilities' => 'moodle/competency:usercompetencyview',
2482 'ajax' => true,
3123c2cf 2483 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2484 ),
2485 'core_competency_user_competency_plan_viewed' => array(
2486 'classname' => 'core_competency\external',
2487 'methodname' => 'user_competency_plan_viewed',
2488 'classpath' => '',
2489 'description' => 'Log the user competency plan viewed event.',
2490 'type' => 'read',
2491 'capabilities' => 'moodle/competency:usercompetencyview',
2492 'ajax' => true,
3123c2cf 2493 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2494 ),
2495 'core_competency_grade_competency' => array(
2496 'classname' => 'core_competency\external',
2497 'methodname' => 'grade_competency',
2498 'classpath' => '',
2499 'description' => 'Grade a competency.',
2500 'type' => 'write',
2501 'capabilities' => 'moodle/competency:competencygrade',
2502 'ajax' => true,
2503 ),
2504 'core_competency_grade_competency_in_plan' => array(
2505 'classname' => 'core_competency\external',
2506 'methodname' => 'grade_competency_in_plan',
2507 'classpath' => '',
2508 'description' => 'Grade a competency from the user plan page.',
2509 'type' => 'write',
2510 'capabilities' => 'moodle/competency:competencygrade',
2511 'ajax' => true,
2512 ),
2513 'core_competency_grade_competency_in_course' => array(
2514 'classname' => 'core_competency\external',
2515 'methodname' => 'grade_competency_in_course',
2516 'classpath' => '',
2517 'description' => 'Grade a competency from the course page.',
2518 'type' => 'write',
2519 'capabilities' => 'moodle/competency:competencygrade',
2520 'ajax' => true,
3123c2cf 2521 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
81de839f
FM
2522 ),
2523 'core_competency_unlink_plan_from_template' => array(
2524 'classname' => 'core_competency\external',
2525 'methodname' => 'unlink_plan_from_template',
2526 'classpath' => '',
2527 'description' => 'Unlink a plan form it template.',
2528 'type' => 'write',
2529 'capabilities' => 'moodle/competency:planmanage',
2530 'ajax' => true,
2531 ),
2532 'core_competency_template_viewed' => array(
2533 'classname' => 'core_competency\external',
2534 'methodname' => 'template_viewed',
2535 'classpath' => '',
2536 'description' => 'Log event template viewed',
2537 'type' => 'read',
2538 'capabilities' => 'moodle/competency:templateview',
2539 'ajax' => true,
2540 ),
2541 'core_competency_request_review_of_user_evidence_linked_competencies' => array(
2542 'classname' => 'core_competency\external',
2543 'methodname' => 'request_review_of_user_evidence_linked_competencies',
2544 'classpath' => '',
2545 'description' => 'Send user evidence competencies in review',
2546 'type' => 'write',
2547 'capabilities' => 'moodle/competency:userevidencemanageown',
2548 'ajax' => true,
2549 ),
2550 'core_competency_update_course_competency_settings' => array(
2551 'classname' => 'core_competency\external',
2552 'methodname' => 'update_course_competency_settings',
2553 'classpath' => '',
2554 'description' => 'Update the course competency settings',
2555 'type' => 'write',
2556 'capabilities' => 'moodle/competency:coursecompetencyconfigure',
2557 'ajax' => true,
2558 ),
1e99f31e
FM
2559 'core_competency_delete_evidence' => array(
2560 'classname' => 'core_competency\external',
2561 'methodname' => 'delete_evidence',
2562 'classpath' => '',
2563 'description' => 'Delete an evidence',
2564 'type' => 'write',
2565 'capabilities' => 'moodle/competency:evidencedelete',
2566 'ajax' => true,
3123c2cf 2567 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
1e99f31e 2568 ),
f23e9b6b
CB
2569
2570 'core_webservice_get_site_info' => array(
2571 'classname' => 'core_webservice_external',
2572 'methodname' => 'get_site_info',
2573 'classpath' => 'webservice/externallib.php',
2574 'description' => 'Return some site info / user info / list web service functions',
2575 'type' => 'read',
ee7295ee 2576 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
8446ba36
JL
2577 ),
2578
2579 // Blocks functions.
2580 'core_block_get_course_blocks' => array(
2581 'classname' => 'core_block_external',
2582 'methodname' => 'get_course_blocks',
2583 'description' => 'Returns blocks information for a course.',
2584 'type' => 'read',
2585 'capabilities' => '',
2586 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2587 ),
66ef16d3 2588
0f8b2604
JL
2589 'core_block_get_dashboard_blocks' => array(
2590 'classname' => 'core_block_external',
2591 'methodname' => 'get_dashboard_blocks',
2592 'description' => 'Returns blocks information for the given user dashboard.',
2593 'type' => 'read',
2594 'capabilities' => '',
2595 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
2596 ),
2597
66ef16d3
JL
2598 // Filters functions.
2599 'core_filters_get_available_in_context' => array(
2600 'classname' => 'core_filters\external',
2601 'methodname' => 'get_available_in_context',
2602 'description' => 'Returns the filters available in the given contexts.',
2603 'type' => 'read',
2604 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
3cfff885 2605 ),
1eeb465a
TBM
2606 'core_customfield_delete_field' => array(
2607 'classname' => 'core_customfield_external',
2608 'methodname' => 'delete_field',
2609 'classpath' => 'customfield/externallib.php',
2610 'description' => 'Deletes an entry',
2611 'type' => 'write',
2612 'ajax' => 'true'
2613 ),
2614 'core_customfield_reload_template' => array(
2615 'classname' => 'core_customfield_external',
2616 'methodname' => 'reload_template',
2617 'classpath' => 'customfield/externallib.php',
2618 'description' => 'Reloads template',
2619 'type' => 'read',
2620 'ajax' => 'true'
2621 ),
2622 'core_customfield_create_category' => array(
2623 'classname' => 'core_customfield_external',
2624 'methodname' => 'create_category',
2625 'classpath' => 'customfield/externallib.php',
2626 'description' => 'Creates a new category',
2627 'type' => 'write',
2628 'ajax' => 'true'
2629 ),
2630 'core_customfield_delete_category' => array(
2631 'classname' => 'core_customfield_external',
2632 'methodname' => 'delete_category',
2633 'classpath' => 'customfield/externallib.php',
2634 'description' => 'Deletes a category',
2635 'type' => 'write',
2636 'ajax' => 'true'
2637 ),
2638 'core_customfield_move_field' => array(
2639 'classname' => 'core_customfield_external',
2640 'methodname' => 'move_field',
2641 'classpath' => 'customfield/externallib.php',
2642 'description' => 'Drag and drop',
2643 'type' => 'write',
2644 'ajax' => 'true'
2645 ),
2646 'core_customfield_move_category' => array(
2647 'classname' => 'core_customfield_external',
2648 'methodname' => 'move_category',
2649 'classpath' => 'customfield/externallib.php',
2650 'description' => 'Drag and drop categories',
2651 'type' => 'write',
2652 'ajax' => 'true'
2653 )
9a0df45a 2654);
c1b65883
JM
2655
2656$services = array(
96e0194c 2657 'Moodle mobile web service' => array(
12c52b91 2658 'functions' => array(), // Unused as we add the service in each function definition, third party services would use this.
96e0194c
SH
2659 'enabled' => 0,
2660 'restrictedusers' => 0,
af03513f 2661 'shortname' => MOODLE_OFFICIAL_MOBILE_SERVICE,
106c55fb
DW
2662 'downloadfiles' => 1,
2663 'uploadfiles' => 1
96e0194c
SH
2664 ),
2665);