MDL-66269 enrol: A new webservice to search course participants

Part of MDL-66075.
This commit is contained in:
Shamim Rezaie
2019-09-20 08:19:01 +08:00
committed by Simey Lameze
parent 151ef39cd8
commit 0f308fcda7
2 changed files with 101 additions and 0 deletions
+9
View File
@@ -634,6 +634,15 @@ $functions = array(
'type' => 'read',
'capabilities' => 'moodle/course:enrolreview'
),
'core_enrol_search_users' => [
'classname' => 'core_enrol_external',
'methodname' => 'search_users',
'classpath' => 'enrol/externallib.php',
'description' => 'Search within the list of course participants',
'ajax' => true,
'type' => 'read',
'capabilities' => 'moodle/course:viewparticipants',
],
'core_enrol_get_users_courses' => array(
'classname' => 'core_enrol_external',
'methodname' => 'get_users_courses',