MDL-57393 core_calendar: Add external functions to the mobile service

We are including:
- core_calendar_create_calendar_events
- core_calendar_delete_calendar_events
This commit is contained in:
Juan Leyva
2017-03-24 17:04:58 +01:00
parent 216ea39be7
commit e453ed685c
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -56,7 +56,8 @@ $functions = array(
'description' => 'Create calendar events',
'classpath' => 'calendar/externallib.php',
'type' => 'write',
'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries'
'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
'core_calendar_delete_calendar_events' => array(
'classname' => 'core_calendar_external',
@@ -64,7 +65,8 @@ $functions = array(
'description' => 'Delete calendar events',
'classpath' => 'calendar/externallib.php',
'type' => 'write',
'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries'
'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
'core_calendar_get_calendar_events' => array(
'classname' => 'core_calendar_external',
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2017032400.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2017032400.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.