MDL-51568 self_enrol: New Web Service enrol_self_enrol_user
[moodle.git] / enrol / self / db / services.php
index dd50355..506defd 100644 (file)
@@ -30,5 +30,13 @@ $functions = array(
         'classpath'   => 'enrol/self/externallib.php',
         'description' => 'self enrolment instance information.',
         'type'        => 'read'
+    ),
+
+    'enrol_self_enrol_user' => array(
+        'classname'   => 'enrol_self_external',
+        'methodname'  => 'enrol_user',
+        'classpath'   => 'enrol/self/externallib.php',
+        'description' => 'Self enrol the current user in the given course.',
+        'type'        => 'write'
     )
 );