03.09.2018 Views

Moodle 2.0

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3<br />

Where:<br />

• operation is add or del, which enrol the user to the course, or unenrol the<br />

user from the course, respectively.<br />

• role is role, or function that the user will have in the course. For example:<br />

student or editingteacher.<br />

• ID number of user is a unique identifier for the user.<br />

• ID number of course is a unique identifier for the course.<br />

<strong>Moodle</strong> periodically reads in this file, and modifies its enrollment data according to<br />

what the file says. For example, the following line will add the student with an ID<br />

number of 007 to the course with an ID number of EM102:<br />

add, student, 007, EM102<br />

Place this file in a directory that is accessible to your web server. For example, you<br />

can put it inside the <strong>Moodle</strong> data directory.<br />

Student ID number required<br />

Before you can enrol a person in a course, that person needs to be a member of<br />

your site. That is, the person needs to be authenticated. In this case, your first step<br />

is to authenticate the users using one of the methods discussed in the section<br />

on Authentication.<br />

If you use a flat file to enrol students in a course, the file will identify each student<br />

by their ID number. Whatever method you use to authenticate your users, it should<br />

include a unique ID number for each user. This number should consist of only digits,<br />

and be up to ten characters in length. On the user profile page, you can see that ID<br />

number is an optional field, as shown in the screenshot below:<br />

[ 89 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!