Changes between Version 44 and Version 45 of BoltRef


Ignore:
Timestamp:
Oct 29, 2008, 9:34:41 AM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltRef

    v44 v45  
    5454    'option2',
    5555     ...
    56     [ weight(X) ]
     56    [, weight(X) ]
    5757);
    5858}}}
     
    6969    array('option1', true|false),
    7070    array('option2', true|false),
     71    ...
     72    [,  weight(X) ]
     73);
     74}}}
     75This specifies a multiple-choice question where any number of answers can be chosen.
     76
     77{{{
     78fitb(
     79    regexp
    7180    [ weight(X) ]
    7281);
    7382}}}
    74 This specifies a multiple-choice question where any number of answers can be chosen.
     83
     84This specifies a "fill in the blank" question.
     85Any answer matching the given regular expression is considered correct.
    7586
    7687{{{
     
    191202exercise(
    192203    filename('bolt_sample_exercise1.php')
    193     [ attrs((object) array("name"=>"value")) ]
    194     [ callback("function_name") ]
     204    [, attrs((object) array("name"=>"value")) ]
     205    [, callback("function_name") ]
    195206);
    196207}}}
     
    230241    unit2,
    231242    ...
    232     [ attrs(), ]
     243    [, attrs() ]
    233244);
    234245}}}
     
    258269   unit2,
    259270   ...
    260    [ attrs(), ]
     271   [, attrs() ]
    261272);
    262273}}}
     
    292303random(
    293304    name('name'),
    294     [ number(N), ]
    295     [ attrs(), ]
    296305    unit1,
    297306    unit2,
    298307    ...
     308    [, number(N) ]
     309    [, attrs() ]
    299310);
    300311}}}
     
    333344exercise_set(
    334345    name('name'),
    335     [ number(N), ]
    336     [ attrs(), ]
    337346    exercise1,
    338347    exercise2,
    339348    ...
    340     [ callback('my_func'), ]
    341     [ repeat-spec1, ]
    342     [ repeat-spec2, ]
     349    [, number(N) ]
     350    [, attrs() ]
     351    [, callback('my_func') ]
     352    [, repeat-spec1 ]
     353    [, repeat-spec2 ]
    343354    [ ... ]
    344     [ refresh-spec ]
     355    [, refresh-spec ]
    345356);
    346357}}}