Changes between Version 7 and Version 8 of BoltRef


Ignore:
Timestamp:
Dec 12, 2007, 1:28:13 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltRef

    v7 v8  
     1[[PageOutline]]
     2
    13= Bolt reference manual =
    24
     
    1012
    1113A '''Lesson''' contains instructional material.
    12 It may be either an HTML or PHP file.
     14It may be either an HTML file or PHP script.
    1315It may contain embedded audio, video, Flash, or any other content.
    1416Some restrictions:
     
    2325{{{
    2426$student.sex;    // 0=unknown, 1=male, 2=female
    25 $student.age;    // in years
     27$student.birth_year;
    2628$student.country;
     29$student.name;
     30$student.bandwidth;  // 1: <100Kb; 2: <1Mb; 3: <10Mb etc.
     31$student.has_audio_output;    // 1: no, 2: yes
     32$student.has_audio_input;
    2733}}}
    2834
     
    4248== Exercises ==
    4349
    44 Exercises are PHP script that call Bolt API functions.
     50Exercises are PHP scripts that call Bolt API functions.
    4551Here's an example consisting of a multiple-choice question:
    4652{{{
     
    5662?>
    5763}}}
     64The correct choice is the first element of the array.
    5865Each time the question is shown,
    59 the choices are shown in a random order.
    60 The correct choice is the first element of the array.
     66the choices are presented in a random order.
    6167
    6268Here's an example that shows an image;
     
    108114}}}
    109115
     116== Nesting and functions ==
     117
     118== Names and state ==
     119
     120== Control structures ==
    110121=== Sequences ===
    111122
     
    181192
    182193
    183 == Exercise set ==
     194=== Exercise set ===
    184195
    185196The 'exercise_set' structure specifies a set of exercises and a value 'num_to_show'.
    186197This number of exercises is chosen randomly and administered.
    187 
    188 Optionally, one or more '''review''' attributes can be given.
    189 Each specifies a grade threshold X and a list of review units.
    190 If the student's grade on the exercise set is less than some Y,
    191 
    192198
    193199{{{
     
    209215}}}
    210216
    211 === Memory refresh ===
    212 
     217== Review ==
     218
     219Optionally, one or more '''review''' attributes can be given.
     220Each specifies a grade threshold X and a list of review units.
     221If the student's grade on the exercise set is less than some Y,
     222
     223== Memory refresh ==
     224