Permalink
Browse files

MDL-37100 webservices: Define core_calendar_get_calendar_events() api

  • Loading branch information...
1 parent 7c30224 commit 793d38552a6c198bff33ac5aa817dbed4dfa30ef @ankitagarwal ankitagarwal committed Dec 17, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/db/services.php
View
@@ -710,6 +710,16 @@
'capabilities'=> 'moodle/calendar:manageentries', 'moodle/calendar:manageownentries', 'moodle/calendar:managegroupentries'
),
+
+ 'core_calendar_get_calendar_events' => array(
+ 'classname' => 'core_calendar_external',
+ 'methodname' => 'get_calendar_events',
+ 'description' => 'Get calendar events',
+ 'classpath' => 'calendar/externallib.php',
+ 'type' => 'read',
+ 'capabilities'=> 'moodle/calendar:manageentries', 'moodle/calendar:manageownentries', 'moodle/calendar:managegroupentries'
+ ),
+
);
$services = array(

0 comments on commit 793d385

Please sign in to comment.