Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 26... Línea 26...
26
 * @copyright 2012 The Open University
26
 * @copyright 2012 The Open University
27
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
28
 */
29
class mod_quiz_generator extends testing_module_generator {
29
class mod_quiz_generator extends testing_module_generator {
Línea 30... Línea 30...
30
 
30
 
31
    public function create_instance($record = null, array $options = null) {
31
    public function create_instance($record = null, ?array $options = null) {
Línea 32... Línea 32...
32
        global $CFG;
32
        global $CFG;
33
 
33
 
Línea 179... Línea 179...
179
                $attemptobj->process_submitted_actions(time(), false, $postdata);
179
                $attemptobj->process_submitted_actions(time(), false, $postdata);
180
            }
180
            }
181
        }
181
        }
Línea 182... Línea 182...
182
 
182
 
183
        if ($finishattempt) {
183
        if ($finishattempt) {
-
 
184
            $attemptobj->process_submit(time(), false);
184
            $attemptobj->process_finish(time(), false);
185
            $attemptobj->process_grade_submission(time());
185
        }
186
        }
Línea 186... Línea 187...
186
    }
187
    }
187
 
188