2 // enrol_flatfile.php - created with Moodle 1.7 beta + (2006101003)
5 $string['description'] = 'This method will repeatedly check for and process a specially-formatted text file in the location that you specify.
6 The file is a comma separated file assumed to have four or six fields per line:
8 * operation, role, idnumber(user), idnumber(course) [, starttime, endtime]
10 * operation = add | del
11 * role = student | teacher | teacheredit
12 * idnumber(user) = idnumber in the user table NB not id
13 * idnumber(course) = idnumber in the course table NB not id
14 * starttime = start time (in seconds since epoch) - optional
15 * endtime = end time (in seconds since epoch) - optional
17 It could look something like this:
19 add, student, 5, CF101
20 add, teacher, 6, CF101
21 add, teacheredit, 7, CF101
22 del, student, 8, CF101
23 del, student, 17, CF101
24 add, student, 21, CF101, 1091115000, 1091215000
26 $string['enrolname'] = 'Flat file';
27 $string['filelockedmail'] = 'The text file you are using for file-based enrolments ($a) can not be deleted by the cron process. This usually means the permissions are wrong on it. Please fix the permissions so that Moodle can delete the file, otherwise it might be processed repeatedly.';
28 $string['filelockedmailsubject'] = 'Important error: Enrolment file';
29 $string['location'] = 'File location';
30 $string['mailadmin'] = 'Notify admin by email';
31 $string['mailusers'] = 'Notify users by email';