Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Files | |
file | access.php |
Capabilities for category access plugin. | |
file | enrol_category_sync.php |
Syncing enrolments task. | |
file | events.php |
Category enrolment plugin event handler definition. | |
file | install.php |
category enrolment plugin installation. | |
file | lib.php |
Category enrolment plugin. | |
file | locallib.php |
Local stuff for category enrolment plugin. | |
file | observer.php |
Local stuff for category enrolment plugin. | |
file | provider.php |
Privacy Subsystem implementation for enrol_category. | |
file | settings.php |
Category enrolment plugin settings and presets. | |
file | tasks.php |
Task definition for enrol_category. | |
file | version.php |
Category enrolment plugin version specification. | |
Namespaces | |
namespace | enrol_category\privacy |
| |
namespace | enrol_category\task |
| |
Classes | |
class | enrol_category\privacy\provider |
Privacy Subsystem for enrol_category implementing null_provider. More... | |
class | enrol_category\task\enrol_category_sync |
Syncing enrolments task. More... | |
class | enrol_category_observer |
Event handler for category enrolment plugin. More... | |
class | enrol_category_plugin |
category enrolment plugin implementation. More... | |
Functions | |
enrol_category_sync_course ($course) | |
Sync all category enrolments in one course. More... | |
enrol_category_sync_full (progress_trace $trace) | |
Synchronise courses in all categories. More... | |
xmldb_enrol_category_install () | |
Variables | |
$capabilities | |
$observers | |
$plugin = 2020060900 | |
$tasks | |
$plugin | component = 'enrol_category' |
$plugin | version = 2020061500 |
enrol_category_sync_course | ( | $course | ) |
Sync all category enrolments in one course.
stdClass | $course |
void |
enrol_category_sync_full | ( | progress_trace | $trace | ) |
Synchronise courses in all categories.
It gets out-of-sync if:
progress_trace | $trace |
int | exit code - 0 is ok, 1 means error, 2 if plugin disabled |
$capabilities |
$observers |
$tasks |