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


Public Member Functions | |
| get_instance_name ($instance) | |
| get_newinstance_link ($courseid) | |
| allow_unenrol_user (stdClass $instance, stdClass $ue) | |
| get_user_enrolment_actions (course_enrolment_manager $manager, $ue) | |
| course_updated ($inserted, $course, $data) | |
| update_status ($instance, $newstatus) | |
| cron () | |
| allow_unenrol_user | ( | stdClass $ | instance, |
| stdClass $ | ue | ||
| ) |
Does this plugin allow manual unenrolment of a specific user? Yes, but only if user suspended...
| stdClass | $instance | course enrol instance |
| stdClass | $ue | record from user_enrolments table |
Reimplemented from enrol_plugin.
Definition at line 78 of file lib.php.

| course_updated | ( | $ | inserted, |
| $ | course, | ||
| $ | data | ||
| ) |
Called after updating/inserting course.
| bool | $inserted | true if course just inserted |
| stdClass | $course | |
| stdClass | $data | form data |
Reimplemented from enrol_plugin.
Definition at line 114 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 146 of file lib.php.

| get_instance_name | ( | $ | instance | ) |
Returns localised name of enrol instance
| stdClass | $instance | (null is accepted too) |
Reimplemented from enrol_plugin.
Definition at line 41 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 60 of file lib.php.

| get_user_enrolment_actions | ( | course_enrolment_manager $ | manager, |
| $ | ue | ||
| ) |
Gets an array of the user enrolment actions
| course_enrolment_manager | $manager | |
| stdClass | $ue | A user enrolment object |
Reimplemented from enrol_plugin.
Definition at line 93 of file lib.php.

| update_status | ( | $ | instance, |
| $ | newstatus | ||
| ) |
Update instance status
| stdClass | $instance | |
| int | $newstatus | ENROL_INSTANCE_ENABLED, ENROL_INSTANCE_DISABLED |
Reimplemented from enrol_plugin.
Definition at line 133 of file lib.php.
