MDL-67585 core_course: new web service to return course content items

This commit is contained in:
Jake Dallimore
2020-02-20 11:42:23 +08:00
parent a826857844
commit 85b4eec5b7
3 changed files with 102 additions and 0 deletions
+8
View File
@@ -653,6 +653,14 @@ $functions = array(
'type' => 'read',
'ajax' => true,
),
'core_course_get_course_content_items' => array(
'classname' => 'core_course_external',
'methodname' => 'get_course_content_items',
'classpath' => 'course/externallib.php',
'description' => 'Fetch all the content items (activities, resources and their subtypes) for the activity picker',
'type' => 'read',
'ajax' => true,
),
'core_enrol_get_course_enrolment_methods' => array(
'classname' => 'core_enrol_external',
'methodname' => 'get_course_enrolment_methods',