mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Added some docs
This commit is contained in:
parent
6051c68d4b
commit
946cbe7029
@ -95,6 +95,9 @@ function setup_enrolments(&$user) {
|
||||
/// sync enrolments with database, create courses if required.
|
||||
///
|
||||
/// NOTE: we are currently ignoring $type, as enrol/database only deasl with student enrolment
|
||||
///
|
||||
/// This function still needs to be converted to Roles! XXX TODO
|
||||
///
|
||||
function sync_enrolments($type='student') {
|
||||
global $CFG;
|
||||
global $db;
|
||||
|
@ -9,8 +9,6 @@
|
||||
require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); // global moodle config file.
|
||||
|
||||
require_once($CFG->dirroot . '/course/lib.php');
|
||||
require_once($CFG->dirroot . '/lib/moodlelib.php');
|
||||
require_once($CFG->dirroot . '/lib/datalib.php');
|
||||
require_once($CFG->dirroot . "/enrol/" . $CFG->enrol . "/enrol.php");
|
||||
|
||||
// ensure errors are well explained
|
||||
|
Loading…
x
Reference in New Issue
Block a user