|
Written by Administrator
|
|
Thursday, 20 May 2010 21:30 |
| Situation | Action | Find function or variable in code
| PHP Cross Reference of Moodle 1.9.3 | | Quiz | | Maximum Number of Tests The system allows only to generate up to 100 copies of different values.
| \moodle\question\type\datasetdependent\datasetitems_form.php function definition() ... for ($i=10; $i<=100 ; $i+=10) { $addremoveoptions["$i"]="$i"; } \moodle\question\type\calculated\questiontype.php function save_dataset_items($question, $fromform) ... $max100 = 100 ;
| Format of the random generated values The system allows only to generate numbers bigger than 1E-10. There is no possibility to generate numbers in a general format.
| \moodle\question\type\calculated\questiontype.php function generate_dataset_item($options) ... return sprintf("%.".$regs[4]."f",$nbr); |
|