Home Moodle
Moodle PDF Print E-mail
Written by Administrator   
Thursday, 20 May 2010 21:30
SituationAction

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);

 
Copyright © 2010 gPhysics. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.