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