Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Event handler for meta enrolment plugin. More...
Static Protected Member Functions | |
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 handler for meta enrolment plugin.
We try to keep everything in sync via listening to events, it may fail sometimes, so we always do a full sync in cron too.
|
staticprotected |
Synchronise meta enrolments of this user in this course.
int | $courseid | |
int | $userid |
void |
|
staticprotected |
Synchronise user enrolments in given instance as fast as possible.
All roles are removed if the meta plugin disabled.
stdClass | $instance | |
int | $userid |
void |
|
staticprotected |
Deal with users that are not supposed to be enrolled via this instance.
stdClass | $instance | |
stdClass | $ue | |
context_course | $context | |
enrol_meta | $plugin |
void |