|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| get_instance_name ($instance) | |
| get_newinstance_link ($courseid) | |
| cron () | |
| course_updated ($inserted, $course, $data) | |
| get_manual_enrol_button (course_enrolment_manager $manager) | |
Protected Member Functions | |
| can_add_new_instances ($courseid) | |
| can_add_new_instances | ( | $ | courseid | ) | [protected] |
Given a courseid this function returns true if the user is able to enrol or configure cohorts AND there are cohorts that the user can view.
| int | $courseid |
Definition at line 81 of file lib.php.


| course_updated | ( | $ | inserted, |
| $ | course, | ||
| $ | data | ||
| ) |
Called after updating/inserting course.
| bool | $inserted | true if course just inserted |
| object | $course | |
| object | $data | form data |
Reimplemented from enrol_plugin.
Definition at line 128 of file lib.php.

| cron | ( | ) |
Called for all enabled enrol plugins that returned true from is_cron_required().
Reimplemented from enrol_plugin.
Definition at line 107 of file lib.php.

| get_instance_name | ( | $ | instance | ) |
Returns localised name of enrol instance
| object | $instance | (null is accepted too) |
Reimplemented from enrol_plugin.
Definition at line 41 of file lib.php.

| get_manual_enrol_button | ( | course_enrolment_manager $ | manager | ) |
Returns a button to enrol a cohort or its users through the manual enrolment plugin.
This function also adds a quickenrolment JS ui to the page so that users can be enrolled via AJAX.
| course_enrolment_manager | $manager |
Reimplemented from enrol_plugin.
Definition at line 150 of file lib.php.

| get_newinstance_link | ( | $ | courseid | ) |
Returns link to page which may be used to add new instance of enrolment plugin in course.
| int | $courseid |
Reimplemented from enrol_plugin.
Definition at line 66 of file lib.php.
