MDL-40126 Enrolments: Implemented two webservices to get enrolment instance info

1. core_enrol_get_course_enrolment_methods() which returns all enrolment method instances
which implement get_enrol_info()
2. enrol_self_get_instance_info() will return information about self enrolment instance.
This commit is contained in:
Rajesh Taneja 2013-07-10 09:42:56 +08:00
parent bdd045c5ec
commit be9bf94e4a
8 changed files with 363 additions and 1 deletions

View file

@ -485,6 +485,14 @@ $functions = array(
'capabilities'=> 'moodle/course:viewparticipants',
),
'core_enrol_get_course_enrolment_methods' => array(
'classname' => 'core_enrol_external',
'methodname' => 'get_course_enrolment_methods',
'classpath' => 'enrol/externallib.php',
'description' => 'Get the list of course enrolment methods',
'type' => 'read',
),
// === Role related functions ===
'moodle_role_assign' => array(