Event observer for enrol_meta.
More...
Event observer for enrol_meta.
- Copyright
- 2013 Rajesh Taneja rajes.nosp@m.h@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ course_deleted()
Triggered via course_deleted event.
- Parameters
-
core\event\course_deleted | $event | |
- Return values
-
◆ enrol_instance_updated()
Triggered via enrol_instance_updated event.
- Parameters
-
core\event\enrol_instance_updated | $event | |
- Return values
-
◆ role_assigned()
Triggered via role_assigned event.
- Parameters
-
core\event\role_assigned | $event | |
- Return values
-
◆ role_unassigned()
Triggered via role_unassigned event.
- Parameters
-
core\event\role_unassigned | $event | |
- Return values
-
◆ sync_course_instances()
static enrol_meta_handler::sync_course_instances |
( |
|
$courseid, |
|
|
|
$userid |
|
) |
| |
|
staticprotectedinherited |
Synchronise meta enrolments of this user in this course.
- Parameters
-
- Return values
-
◆ sync_with_parent_course()
static enrol_meta_handler::sync_with_parent_course |
( |
stdClass |
$instance, |
|
|
|
$userid |
|
) |
| |
|
staticprotectedinherited |
Synchronise user enrolments in given instance as fast as possible.
All roles are removed if the meta plugin disabled.
- Parameters
-
stdClass | $instance | |
int | $userid | |
- Return values
-
◆ user_enrolment_created()
Triggered via user_enrolment_created event.
- Parameters
-
core\event\user_enrolment_created | $event | |
- Return values
-
◆ user_enrolment_deleted()
Triggered via user_enrolment_deleted event.
- Parameters
-
core\event\user_enrolment_deleted | $event | |
- Return values
-
◆ user_enrolment_updated()
Triggered via user_enrolment_updated event.
- Parameters
-
core\event\user_enrolment_updated | $event | |
- Return values
-
◆ user_not_supposed_to_be_here()
static enrol_meta_handler::user_not_supposed_to_be_here |
( |
|
$instance, |
|
|
|
$ue, |
|
|
context_course |
$context, |
|
|
|
$plugin |
|
) |
| |
|
staticprotectedinherited |
Deal with users that are not supposed to be enrolled via this instance.
- Parameters
-
stdClass | $instance | |
stdClass | $ue | |
context_course | $context | |
enrol_meta | $plugin | |
- Return values
-
The documentation for this class was generated from the following file: