. /** * Self enrol plugin external functions and service definitions. * * @package enrol_self * @copyright 2013 Rajesh Taneja * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since Moodle 2.6 */ $functions = array( 'enrol_self_get_instance_info' => array( 'classname' => 'enrol_self_external', 'methodname' => 'get_instance_info', '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' ) );