next up previous contents
Next: 成績 Up: 試題編輯 Previous: quiz/eccessrule/securewindow/rule.php 存取規則   Contents

quiz/override.php 作答次數

  1. 預設作答次數最高為「無限制」,實際使用並不需要,因學生可能因此不會謹慎面對每次的作答,且增加系統的資料量。
    [root@dywang moodle23]# diff -urNwbBE ../moodle/mod/quiz/override_form.php mod/quiz/override_form.php
    --- ../moodle/mod/quiz/override_form.php	2012-06-26 01:15:22.000000000 +0800
    +++ mod/quiz/override_form.php	2013-04-26 08:23:46.000000000 +0800
    @@ -192,7 +192,7 @@
             $mform->setDefault('timelimit', $this->quiz->timelimit);
     
             // Number of attempts.
    -        $attemptoptions = array('0' => get_string('unlimited'));
    +        //$attemptoptions = array('0' => get_string('unlimited'));//dywang
             for ($i = 1; $i <= QUIZ_MAX_ATTEMPT_OPTION; $i++) {
                 $attemptoptions[$i] = $i;
             }
    


2018-08-14