X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=lib%2Fdb%2Fservices.php;h=50422b27bbcf17e4e6ccff7ff622b0270472fd04;hp=28402189063fc1a16ac94b06451dc77d8baf0e46;hb=05b27f211840b2ce54c140d53f0f3f53e318aae7;hpb=050f048e26e3971694891ff7a4196aa6d9827b09 diff --git a/lib/db/services.php b/lib/db/services.php index 28402189063..50422b27bbc 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -261,6 +261,14 @@ $functions = array( 'type' => 'read', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ), + 'core_calendar_get_timestamps' => [ + 'classname' => 'core_calendar_external', + 'methodname' => 'get_timestamps', + 'description' => 'Fetch unix timestamps for given date times.', + 'classpath' => 'calendar/externallib.php', + 'type' => 'read', + 'ajax' => true, + ], 'core_cohort_add_cohort_members' => array( 'classname' => 'core_cohort_external', 'methodname' => 'add_cohort_members', @@ -613,6 +621,22 @@ $functions = array( 'ajax' => true, 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ), + 'core_course_get_enrolled_users_by_cmid' => array( + 'classname' => 'core_course_external', + 'methodname' => 'get_enrolled_users_by_cmid', + 'classpath' => 'course/externallib.php', + 'description' => 'List users by course module id & filter by group id.', + 'type' => 'read', + 'ajax' => true, + ), + 'core_course_get_activity_picker_info' => array( + 'classname' => 'core_course_external', + 'methodname' => 'fetch_modules_activity_chooser', + 'classpath' => 'course/externallib.php', + 'description' => 'Fetch all the module information for the activity picker', + 'type' => 'read', + 'ajax' => true, + ), 'core_enrol_get_course_enrolment_methods' => array( 'classname' => 'core_enrol_external', 'methodname' => 'get_course_enrolment_methods', @@ -656,6 +680,7 @@ $functions = array( 'ajax' => true, 'type' => 'read', 'capabilities' => 'moodle/course:viewparticipants', + 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), ], 'core_enrol_get_users_courses' => array( 'classname' => 'core_enrol_external', @@ -801,6 +826,40 @@ $functions = array( 'description' => 'Update a grade item and associated student grades.', 'type' => 'write', ), + 'core_grades_grader_gradingpanel_point_fetch' => [ + 'classname' => 'core_grades\\grades\\grader\\gradingpanel\\point\\external\\fetch', + 'methodname' => 'execute', + 'description' => 'Fetch the data required to display the grader grading panel for simple grading, ' . + 'creating the grade item if required', + 'type' => 'write', + 'ajax' => true, + 'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE], + ], + 'core_grades_grader_gradingpanel_point_store' => [ + 'classname' => 'core_grades\\grades\\grader\\gradingpanel\\point\\external\\store', + 'methodname' => 'execute', + 'description' => 'Store the data required to display the grader grading panel for simple grading', + 'type' => 'write', + 'ajax' => true, + 'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE], + ], + 'core_grades_grader_gradingpanel_scale_fetch' => [ + 'classname' => 'core_grades\\grades\\grader\\gradingpanel\\scale\\external\\fetch', + 'methodname' => 'execute', + 'description' => 'Fetch the data required to display the grader grading panel for scale-based grading, ' . + 'creating the grade item if required', + 'type' => 'write', + 'ajax' => true, + 'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE], + ], + 'core_grades_grader_gradingpanel_scale_store' => [ + 'classname' => 'core_grades\\grades\\grader\\gradingpanel\\scale\\external\\store', + 'methodname' => 'execute', + 'description' => 'Store the data required to display the grader grading panel for scale-based grading', + 'type' => 'write', + 'ajax' => true, + 'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE], + ], 'core_grading_get_definitions' => array( 'classname' => 'core_grading_external', 'methodname' => 'get_definitions', @@ -2650,7 +2709,17 @@ $functions = array( 'description' => 'Drag and drop categories', 'type' => 'write', 'ajax' => 'true' - ) + ), + 'core_h5p_get_trusted_h5p_file' => [ + 'classname' => 'core_h5p\external', + 'methodname' => 'get_trusted_h5p_file', + 'classpath' => '', + 'description' => 'Get the H5P file cleaned for Mobile App.', + 'type' => 'read', + 'ajax' => 'true', + 'capabilities' => '', + 'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE], + ], ); $services = array(