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
|
@ -147,6 +147,7 @@ class default_questiontype {
|
||||||
$form->id = $question->id;
|
$form->id = $question->id;
|
||||||
$form->qtype = $question->qtype;
|
$form->qtype = $question->qtype;
|
||||||
$form->category = $question->category;
|
$form->category = $question->category;
|
||||||
|
$form->questiontext = $question->questiontext;
|
||||||
|
|
||||||
$result = $this->save_question_options($form);
|
$result = $this->save_question_options($form);
|
||||||
|
|
||||||
|
@ -856,6 +857,7 @@ class default_questiontype {
|
||||||
// arrays. The ordering of the arrays does not matter.
|
// arrays. The ordering of the arrays does not matter.
|
||||||
// Question types may wish to override this (eg. to ignore trailing
|
// Question types may wish to override this (eg. to ignore trailing
|
||||||
// white space or to make "7.0" and "7" compare equal).
|
// white space or to make "7.0" and "7" compare equal).
|
||||||
|
|
||||||
return $state->responses === $teststate->responses;
|
return $state->responses === $teststate->responses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue