diff --git a/apply_form.php b/apply_form.php index fd62b03..93a6f1e 100644 --- a/apply_form.php +++ b/apply_form.php @@ -1,21 +1,25 @@ . /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ -/** - * Apply enrol plugin implementation. - * - * @package enrol - * @copyright 2010 Petr Skoda {@link http://skodak.org} + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk */ defined('MOODLE_INTERNAL') || die(); diff --git a/db/access.php b/db/access.php index d5609ef..d3c75d9 100644 --- a/db/access.php +++ b/db/access.php @@ -1,23 +1,25 @@ . /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ - -/** - * Capabilities for apply enrolment plugin. - * - * @package enrol - * @subpackage apply - * @copyright 2010 Petr Skoda {@link http://skodak.org} + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk */ defined('MOODLE_INTERNAL') || die(); diff --git a/db/upgrade.php b/db/upgrade.php index c402af8..8587679 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -16,7 +16,7 @@ /** * @package enrol_apply - * @copyright emeneo.com + * @copyright emeneo.com (http://emeneo.com/) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @author Johannes Burk */ diff --git a/edit.php b/edit.php index ae033a3..2875f27 100644 --- a/edit.php +++ b/edit.php @@ -1,15 +1,27 @@ . /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk + */ + require('../../config.php'); require_once('edit_form.php'); diff --git a/edit_form.php b/edit_form.php index bc0cc1c..0572c74 100644 --- a/edit_form.php +++ b/edit_form.php @@ -1,15 +1,27 @@ . /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk + */ + defined('MOODLE_INTERNAL') || die(); require_once($CFG->libdir.'/formslib.php'); @@ -29,7 +41,7 @@ class enrol_apply_edit_form extends moodleform { $options = array(1 => get_string('yes'), 0 => get_string('no')); $mform->addElement('select', 'status', get_string('status', 'enrol_apply'), $options); - //$mform->addHelpButton('status', 'status', 'enrol_apply'); + // $mform->addHelpButton('status', 'status', 'enrol_apply'); $mform->setDefault('status', $plugin->get_config('status')); if ($instance->id) { diff --git a/lib.php b/lib.php index cb84b2d..b5fb0d3 100644 --- a/lib.php +++ b/lib.php @@ -1,16 +1,28 @@ . + /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ - -/** User participation in course is suspended (used in user_enrolments->status) */ + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk + */ + +/** The user is put onto a waiting list and therefore the enrolment not active (used in user_enrolments->status) */ define('ENROL_APPLY_USER_WAIT', 2); class enrol_apply_plugin extends enrol_plugin { diff --git a/manage.php b/manage.php index e7f3413..7179eb5 100644 --- a/manage.php +++ b/manage.php @@ -1,14 +1,26 @@ . + /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk + */ require_once ('../../config.php'); require_once($CFG->dirroot.'/enrol/apply/lib.php'); diff --git a/manage_table.php b/manage_table.php index 68044b0..adece8a 100644 --- a/manage_table.php +++ b/manage_table.php @@ -17,9 +17,9 @@ /** * * @package enrol_apply - * @copyright 2016 Johannes Burk + * @copyright 2016 sudile GbR (http://www.sudile.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - * + * @author Johannes Burk */ defined('MOODLE_INTERNAL') || die(); diff --git a/renderer.php b/renderer.php index b9681a8..13e1e4e 100644 --- a/renderer.php +++ b/renderer.php @@ -17,14 +17,13 @@ /** * * @package enrol_apply - * @copyright 2015 sudile GbR (http://www.sudile.com) + * @copyright 2016 sudile GbR (http://www.sudile.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @author Johannes Burk */ defined('MOODLE_INTERNAL') || die(); - class enrol_apply_renderer extends plugin_renderer_base { public function manage_page($table, $manageurl) { echo $this->header(); diff --git a/settings.php b/settings.php index 61d9053..cbe9ae2 100644 --- a/settings.php +++ b/settings.php @@ -1,14 +1,27 @@ . + /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk + */ + defined('MOODLE_INTERNAL') || die(); if ($ADMIN->fulltree) { diff --git a/version.php b/version.php index 4781493..f504dcf 100644 --- a/version.php +++ b/version.php @@ -1,20 +1,25 @@ . + /** - * ************************************************************************* - * * Apply Enrol ** - * ************************************************************************* - * @copyright emeneo.com ** - * @link emeneo.com ** - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** - * ************************************************************************* - * ************************************************************************ -*/ -/** - * Short answer question type version information. - * - * @package enrol apply - * @copyright Emeneo {@link http://www.emeneo.com/} + * @package enrol_apply + * @copyright emeneo.com (http://emeneo.com/) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @author emeneo.com (http://emeneo.com/) + * @author Johannes Burk */ defined('MOODLE_INTERNAL') || die();