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