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


Public Member Functions | |
| get_info_icons (array $instances) | |
| roles_protected () | |
| allow_unenrol (stdClass $instance) | |
| allow_manage (stdClass $instance) | |
| show_enrolme_link (stdClass $instance) | |
| add_course_navigation ($instancesnode, stdClass $instance) | |
| get_action_icons (stdClass $instance) | |
| get_newinstance_link ($courseid) | |
| enrol_page_hook (stdClass $instance) | |
| add_course_navigation | ( | $ | instancesnode, |
| stdClass $ | instance | ||
| ) |
Sets up navigation entries.
| object | $instance |
Reimplemented from enrol_plugin.
Definition at line 78 of file lib.php.

| 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.
| 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.
| enrol_page_hook | ( | stdClass $ | instance | ) |
Creates course enrol form, checks if form submitted and enrols user if necessary. It can also redirect.
| stdClass | $instance |
Reimplemented from enrol_plugin.
Definition at line 136 of file lib.php.

| get_action_icons | ( | stdClass $ | instance | ) |
Returns edit icons for the page with list of instances
| stdClass | $instance |
Reimplemented from enrol_plugin.
Definition at line 95 of file lib.php.

| get_info_icons | ( | array $ | instances | ) |
Returns optional enrolment information icons.
This is used in course list for quick overview of enrolment options.
We are not using single instance parameter because sometimes we might want to prevent icon repetition when multiple instances of one type exist. One instance may also produce several icons.
| array | $instances | all enrol instances of this type in one course |
Reimplemented from enrol_plugin.
| 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 118 of file lib.php.

| roles_protected | ( | ) |
Does this plugin assign protected roles are can they be manually removed?
Reimplemented from enrol_plugin.
| show_enrolme_link | ( | stdClass $ | instance | ) |
Does this plugin support some way to user to self enrol?
| stdClass | $instance | course enrol instance |
Reimplemented from enrol_plugin.