Custom Lesson
- Moodle 2.4–2.5
- 更新 2013-05-06
Customlesson is a variant of the official module lesson, which allows the teacher to have a template lesson, customized for each student. The lesson template is completed by a csv file which provides all the variable fields (columns) for each of the students (rows).
Custom Lesson works exactly as a standard Lesson, except that all the content of the lesson can be filled with variable fields between square brackets, eg. :
Which is the length of the network for an [e:exclass] address?
Then, the individual data are imported in a new table, from a CSV file with students as rows and fields as columns, eg. :
userid;e:exclass;q:ipnetwork;a:cidrnet
4;Classe B;172.16.0.0;16
5;Classe C;192.168.1.0;24
The first column must be either userid or ursername. The following columns are meant to be interpolated in the custom lesson contents (titles, questions, answers…).
A more detailed documentation is available in the package and on github (see below).
From an internal point of view, customlesson uses the same eight tables as lesson, duplicated as customlesson_*, plus one new : customlesson_keys. This table is populated from the CSV files and is used as a source for the interpolation process.