MDL-66077 course: Add WS to get list of users in a cmid

Part of MDL-66074
This commit is contained in:
Mathew May 2019-10-05 11:33:05 +08:00
parent af9ca2a658
commit 06e50afd5e
6 changed files with 158 additions and 3 deletions

View file

@ -613,6 +613,14 @@ $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 bycourse module id.',
'type' => 'read',
'ajax' => true,
),
'core_enrol_get_course_enrolment_methods' => array(
'classname' => 'core_enrol_external',
'methodname' => 'get_course_enrolment_methods',