Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: Flat file.

Flat file: Difference between revisions

From MoodleDocs
(http://moodle.org/mod/forum/discuss.php?d=45514 link added)
No edit summary
Line 1: Line 1:
Location: ''Administration > Courses > [[Enrolment plugins|Enrolments]]''
Location: ''Administration > Courses > [[Enrolment plugins|Enrolments]]''


It allows to enrol (or unenrol) existing users to existing courses, choosing roles they will have in each course, based on informations in a file.


Like the upload users tool, this method checks for an enrolment file at the specified location. You can put the file anywhere you want (as long as Moodle can find it), but if you don't specify a location, Moodle will look for the file at ''.../moodledata/1/enrolments.txt''. If you do specify a file path, it should be absolute (eg /var/moodledata/enrolments.txt) and can be read and modified by the webserver process.
This method checks for an enrolment file at the specified location. You can put the file anywhere you want (as long as Moodle can find it), but if you don't specify a location, Moodle will look for the file at ''.../moodledata/1/enrolments.txt''. If you do specify a file path, it should be absolute (eg /var/moodledata/enrolments.txt) and can be read and modified by the webserver process.
If Moodle finds a new file, it will process the data and delete the file afterwards. You can choose to have a log file send to the administrator and to send a notification to teachers and students.
If Moodle finds a new file, it will process the data and delete the file afterwards. This process is run via the [[Cron]] job. You can choose to have a log file send to the administrator and to send a notification to teachers and students.


The file should be structured with the action, role, student number (see student profile) and course ID number (see course settings).
The file should be structured with the action, role, student number (see student profile) and course ID number (see course settings).

Revision as of 16:33, 20 May 2008

Location: Administration > Courses > Enrolments

It allows to enrol (or unenrol) existing users to existing courses, choosing roles they will have in each course, based on informations in a file.

This method checks for an enrolment file at the specified location. You can put the file anywhere you want (as long as Moodle can find it), but if you don't specify a location, Moodle will look for the file at .../moodledata/1/enrolments.txt. If you do specify a file path, it should be absolute (eg /var/moodledata/enrolments.txt) and can be read and modified by the webserver process. If Moodle finds a new file, it will process the data and delete the file afterwards. This process is run via the Cron job. You can choose to have a log file send to the administrator and to send a notification to teachers and students.

The file should be structured with the action, role, student number (see student profile) and course ID number (see course settings).

The flat file settings page (accessed via the edit flat file settings link in Administration > Courses > Enrolments) includes information on flat file formatting.

See also

Using Moodle forum discussions: