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


Public Member Functions | |
| roles_protected () | |
| allow_enrol (stdClass $instance) | |
| allow_unenrol (stdClass $instance) | |
| allow_manage (stdClass $instance) | |
| get_manual_enrol_link ($instance) | |
| add_course_navigation ($instancesnode, stdClass $instance) | |
| get_action_icons (stdClass $instance) | |
| get_newinstance_link ($courseid) | |
| add_default_instance ($course) | |
| add_instance ($course, array $fields=NULL) | |
| get_manual_enrol_button (course_enrolment_manager $manager) | |
| get_user_enrolment_actions (course_enrolment_manager $manager, $ue) | |
| get_bulk_operations (course_enrolment_manager $manager) | |
| add_course_navigation | ( | $ | instancesnode, |
| stdClass $ | instance | ||
| ) |
Returns enrolment instance manage link.
By defaults looks for manage.php file and tests for manage capability.
| navigation_node | $instancesnode | |
| stdClass | $instance |
Reimplemented from enrol_plugin.
Definition at line 86 of file lib.php.

| add_default_instance | ( | $ | course | ) |
Add new instance of enrol plugin with default settings.
| object | $course |
Reimplemented from enrol_plugin.
Definition at line 151 of file lib.php.

| add_instance | ( | $ | course, |
| array $ | fields = NULL |
||
| ) |
Add new instance of enrol plugin.
| object | $course | |
| array | instance fields |
Reimplemented from enrol_plugin.
Definition at line 162 of file lib.php.

| allow_enrol | ( | stdClass $ | instance | ) |
Does this plugin allow manual enrolments?
| stdClass | $instance | course enrol instance All plugins allowing this must implement 'enrol/xxx:enrol' capability |
Reimplemented from enrol_plugin.
| allow_manage | ( | stdClass $ | instance | ) |
Does this plugin allow manual changes in user_enrolments table?
All plugins allowing this must implement 'enrol/xxx:manage' capability
| stdClass | $instance | course enrol instance |
Reimplemented from enrol_plugin.
Definition at line 46 of file lib.php.

| allow_unenrol | ( | stdClass $ | instance | ) |
Does this plugin allow manual unenrolment of all users? All plugins allowing this must implement 'enrol/xxx:unenrol' capability
| stdClass | $instance | course enrol instance |
Reimplemented from enrol_plugin.
| get_action_icons | ( | stdClass $ | instance | ) |
Returns edit icons for the page with list of instances
| stdClass | $instance |
Reimplemented from enrol_plugin.
Definition at line 103 of file lib.php.

| get_bulk_operations | ( | course_enrolment_manager $ | manager | ) |
The manual plugin has several bulk operations that can be performed
| course_enrolment_manager | $manager |
| get_manual_enrol_button | ( | course_enrolment_manager $ | manager | ) |
Returns a button to manually enrol users through the manual enrolment plugin.
By default the first manual enrolment plugin instance available in the course is used. If no manual enrolment instances exist within the course then false is returned.
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 185 of file lib.php.

| get_manual_enrol_link | ( | $ | instance | ) |
Returns link to manual enrol UI if exists. Does the access control tests automatically.
| object | $instance |
Reimplemented from enrol_plugin.
Definition at line 58 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 130 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 261 of file lib.php.

| roles_protected | ( | ) |
Does this plugin assign protected roles are can they be manually removed?
Reimplemented from enrol_plugin.