Changes between Version 23 and Version 24 of BoltRef
- Timestamp:
- Dec 31, 2007, 12:11:44 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltRef
v23 v24 102 102 name('lesson 1'), 103 103 title('The ecology of a conifer forest'), 104 filename('lesson_1.php '),104 filename('lesson_1.php?arg=4'), 105 105 reading_level(11.0), 106 106 detail_level(.5) … … 112 112 || name || the "logical name", used as an internal identifier but not visible to students; see "Names and state" below || 113 113 || title || a name shown to students || 114 || filename || the file containing lesson content ||114 || filename || the file containing lesson content, optionally followed by a query string. || 115 115 || reading_level, detail_level || optional attributes of the lesson || 116 117 The query string specified in filename() is passed in a global variable $bolt_query_string, 118 rather than in $_GET. 119 To parse it, use 120 {{{ 121 parse_str($bolt_query_string); 122 }}} 116 123 117 124 Similarly, '''exercise()''' specifies an exercise: … … 275 282 === Select === 276 283 277 The '''select''' structure takes a set of units and a 'valuator' function. 278 The valuator function returns the 'value' (i.e. the likely benefit) of showing 279 the unit to the student. 284 The '''select''' structure takes a set of units and a 'value function', 285 which returns the predicted benefit of showing the unit to the student. 280 286 The unit for which this value is greatest is shown. 281 287 {{{