Changes between Version 7 and Version 8 of BoltRef
- Timestamp:
- Dec 12, 2007, 1:28:13 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltRef
v7 v8 1 [[PageOutline]] 2 1 3 = Bolt reference manual = 2 4 … … 10 12 11 13 A '''Lesson''' contains instructional material. 12 It may be either an HTML or PHP file.14 It may be either an HTML file or PHP script. 13 15 It may contain embedded audio, video, Flash, or any other content. 14 16 Some restrictions: … … 23 25 {{{ 24 26 $student.sex; // 0=unknown, 1=male, 2=female 25 $student. age; // in years27 $student.birth_year; 26 28 $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; 27 33 }}} 28 34 … … 42 48 == Exercises == 43 49 44 Exercises are PHP script that call Bolt API functions.50 Exercises are PHP scripts that call Bolt API functions. 45 51 Here's an example consisting of a multiple-choice question: 46 52 {{{ … … 56 62 ?> 57 63 }}} 64 The correct choice is the first element of the array. 58 65 Each 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. 66 the choices are presented in a random order. 61 67 62 68 Here's an example that shows an image; … … 108 114 }}} 109 115 116 == Nesting and functions == 117 118 == Names and state == 119 120 == Control structures == 110 121 === Sequences === 111 122 … … 181 192 182 193 183 == Exercise set==194 === Exercise set === 184 195 185 196 The 'exercise_set' structure specifies a set of exercises and a value 'num_to_show'. 186 197 This 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 192 198 193 199 {{{ … … 209 215 }}} 210 216 211 === Memory refresh === 212 217 == Review == 218 219 Optionally, one or more '''review''' attributes can be given. 220 Each specifies a grade threshold X and a list of review units. 221 If the student's grade on the exercise set is less than some Y, 222 223 == Memory refresh == 224