Changes between Version 5 and Version 6 of BoltRef
- Timestamp:
- Dec 4, 2007, 9:08:25 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltRef
v5 v6 135 135 136 136 === Random === 137 The '''random''' control structure 137 The '''random''' control structure selects randomly from a set of units. 138 138 {{{ 139 139 <?php … … 156 156 {{{ 157 157 <?php 158 function value($unit) { 159 global $student; 160 return abs($student->verbal_level - $unit->verbal_level); 161 } 162 158 163 return select( 159 164 name('course'), 165 valuator(value), 160 166 lesson( 161 value(val_func1($student)),162 167 name('lesson 1'), 163 168 filename('bolt_sample_lesson1.php') 164 169 ), 165 170 lesson( 166 value(val_func1($student)),167 171 name('lesson 2'), 168 172 filename('bolt_sample_lesson2.php')