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