Changes between Version 23 and Version 24 of BoltRef


Ignore:
Timestamp:
Dec 31, 2007, 12:11:44 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltRef

    v23 v24  
    102102    name('lesson 1'),
    103103    title('The ecology of a conifer forest'),
    104     filename('lesson_1.php'),
     104    filename('lesson_1.php?arg=4'),
    105105    reading_level(11.0),
    106106    detail_level(.5)
     
    112112|| name || the "logical name", used as an internal identifier but not visible to students; see "Names and state" below ||
    113113|| 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. ||
    115115|| reading_level, detail_level || optional attributes of the lesson ||
     116
     117The query string specified in filename() is passed in a global variable $bolt_query_string,
     118rather than in $_GET.
     119To parse it, use
     120{{{
     121parse_str($bolt_query_string);
     122}}}
    116123
    117124Similarly, '''exercise()''' specifies an exercise:
     
    275282=== Select ===
    276283
    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.
     284The '''select''' structure takes a set of units and a 'value function',
     285which returns the predicted benefit of showing the unit to the student.
    280286The unit for which this value is greatest is shown.
    281287{{{