Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
enrol_self_external Class Reference
Inheritance diagram for enrol_self_external:

Static Public Member Functions

static enrol_user ($courseid, $password='', $instanceid=0)
 Self enrol the current user in the given course.
 
static enrol_user_parameters ()
 Returns description of method parameters.
 
static enrol_user_returns ()
 Returns description of method result value.
 
static get_instance_info ($instanceid)
 Return self-enrolment instance information.
 
static get_instance_info_parameters ()
 Returns description of get_instance_info() parameters.
 
static get_instance_info_returns ()
 Returns description of get_instance_info() result value.
 

Member Function Documentation

◆ enrol_user()

static enrol_self_external::enrol_user ( $courseid,
$password = '',
$instanceid = 0 )
static

Self enrol the current user in the given course.

Parameters
int$courseidid of course
string$passwordenrolment key
int$instanceidinstance id of self enrolment plugin
Return values
arrayof warnings and status result
Since
Moodle 3.0
Exceptions
moodle_exception

◆ enrol_user_parameters()

static enrol_self_external::enrol_user_parameters ( )
static

Returns description of method parameters.

Return values
external_function_parameters
Since
Moodle 3.0

◆ enrol_user_returns()

static enrol_self_external::enrol_user_returns ( )
static

Returns description of method result value.

Return values
core_external\external_description
Since
Moodle 3.0

◆ get_instance_info()

static enrol_self_external::get_instance_info ( $instanceid)
static

Return self-enrolment instance information.

Parameters
int$instanceidinstance id of self enrolment plugin.
Return values
arrayinstance information.
Exceptions
moodle_exception

◆ get_instance_info_parameters()

static enrol_self_external::get_instance_info_parameters ( )
static

Returns description of get_instance_info() parameters.

Return values
external_function_parameters

◆ get_instance_info_returns()

static enrol_self_external::get_instance_info_returns ( )
static

Returns description of get_instance_info() result value.

Return values
core_external\external_description

The documentation for this class was generated from the following file: