mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Give a bit more information to the subclasses.
This commit is contained in:
parent
a974b5a4d8
commit
6459b8fc8d
1 changed files with 4 additions and 2 deletions
|
@ -144,9 +144,10 @@ class default_questiontype {
|
|||
|
||||
// Now to save all the answers and type-specific options
|
||||
|
||||
$form->id = $question->id;
|
||||
$form->qtype = $question->qtype;
|
||||
$form->id = $question->id;
|
||||
$form->qtype = $question->qtype;
|
||||
$form->category = $question->category;
|
||||
$form->questiontext = $question->questiontext;
|
||||
|
||||
$result = $this->save_question_options($form);
|
||||
|
||||
|
@ -856,6 +857,7 @@ class default_questiontype {
|
|||
// arrays. The ordering of the arrays does not matter.
|
||||
// Question types may wish to override this (eg. to ignore trailing
|
||||
// white space or to make "7.0" and "7" compare equal).
|
||||
|
||||
return $state->responses === $teststate->responses;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue