Event observer for enrol_meta.
More...
|
static | sync_course_instances ($courseid, $userid) |
| Synchronise meta enrolments of this user in this course.
|
|
static | sync_with_parent_course (stdClass $instance, $userid) |
| Synchronise user enrolments in given instance as fast as possible.
|
|
static | user_not_supposed_to_be_here ($instance, $ue, context_course $context, $plugin) |
| Deal with users that are not supposed to be enrolled via this instance.
|
|
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()
static enrol_meta_observer::course_deleted |
( |
\core\event\course_deleted | $event | ) |
|
|
static |
Triggered via course_deleted event.
- Parameters
-
core\event\course_deleted | $event | |
- Return values
-
◆ enrol_instance_updated()
static enrol_meta_observer::enrol_instance_updated |
( |
\core\event\enrol_instance_updated | $event | ) |
|
|
static |
Triggered via enrol_instance_updated event.
- Parameters
-
core\event\enrol_instance_updated | $event | |
- Return values
-
◆ role_assigned()
static enrol_meta_observer::role_assigned |
( |
\core\event\role_assigned | $event | ) |
|
|
static |
Triggered via role_assigned event.
- Parameters
-
core\event\role_assigned | $event | |
- Return values
-
◆ role_unassigned()
static enrol_meta_observer::role_unassigned |
( |
\core\event\role_unassigned | $event | ) |
|
|
static |
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
-
- Return values
-
◆ user_enrolment_deleted()
static enrol_meta_observer::user_enrolment_deleted |
( |
\core\event\user_enrolment_deleted | $event | ) |
|
|
static |
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
-
- 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: