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