Merge branch 'MDL-84708-master' of https://github.com/danghieu1407/moodle
This commit is contained in:
@@ -139,7 +139,8 @@ final class feedback_test extends qbehaviour_walkthrough_test_base {
|
||||
'specificgradedetailfeedback' => [
|
||||
'showpartialwrong' => 0,
|
||||
],
|
||||
'generalfeedback' => 'The correct answer is "Modular Object Oriented Dynamic Learning Environment".',
|
||||
'generalfeedback' => '<div class="clearfix">The correct answer is ' .
|
||||
'"Modular Object Oriented Dynamic Learning Environment".</div>',
|
||||
'rightanswer' => [
|
||||
'hascorrectresponse' => true,
|
||||
'showcorrect' => false,
|
||||
@@ -197,7 +198,8 @@ final class feedback_test extends qbehaviour_walkthrough_test_base {
|
||||
'totalscore' => 28,
|
||||
'totalmaxscore' => 30,
|
||||
],
|
||||
'generalfeedback' => 'The correct answer is "Modular Object Oriented Dynamic Learning Environment".',
|
||||
'generalfeedback' => '<div class="clearfix">The correct answer is ' .
|
||||
'"Modular Object Oriented Dynamic Learning Environment".</div>',
|
||||
'rightanswer' => [
|
||||
'hascorrectresponse' => true,
|
||||
'showcorrect' => true,
|
||||
@@ -216,7 +218,8 @@ final class feedback_test extends qbehaviour_walkthrough_test_base {
|
||||
'specificgradedetailfeedback' => [
|
||||
'showpartialwrong' => 0,
|
||||
],
|
||||
'generalfeedback' => 'The correct answer is "Modular Object Oriented Dynamic Learning Environment".',
|
||||
'generalfeedback' => '<div class="clearfix">The correct answer is ' .
|
||||
'"Modular Object Oriented Dynamic Learning Environment".</div>',
|
||||
'rightanswer' => [
|
||||
'hascorrectresponse' => true,
|
||||
'showcorrect' => false,
|
||||
@@ -229,7 +232,8 @@ final class feedback_test extends qbehaviour_walkthrough_test_base {
|
||||
qtype_ordering_question::GRADING_RELATIVE_ALL_PREVIOUS_AND_NEXT,
|
||||
['rot' => 'horizontal', 'inprogress' => false, 'feedback' => false],
|
||||
[
|
||||
'generalfeedback' => 'The correct answer is "Modular Object Oriented Dynamic Learning Environment".',
|
||||
'generalfeedback' => '<div class="clearfix">The correct answer is ' .
|
||||
'"Modular Object Oriented Dynamic Learning Environment".</div>',
|
||||
'rightanswer' => [
|
||||
'hascorrectresponse' => true,
|
||||
'showcorrect' => true,
|
||||
@@ -294,7 +298,8 @@ final class feedback_test extends qbehaviour_walkthrough_test_base {
|
||||
'totalscore' => 20,
|
||||
'totalmaxscore' => 30,
|
||||
],
|
||||
'generalfeedback' => 'The correct answer is "Modular Object Oriented Dynamic Learning Environment".',
|
||||
'generalfeedback' => '<div class="clearfix">The correct answer is ' .
|
||||
'"Modular Object Oriented Dynamic Learning Environment".</div>',
|
||||
'rightanswer' => [
|
||||
'hascorrectresponse' => true,
|
||||
'showcorrect' => true,
|
||||
@@ -354,7 +359,8 @@ final class feedback_test extends qbehaviour_walkthrough_test_base {
|
||||
'totalscore' => 1,
|
||||
'totalmaxscore' => 5,
|
||||
],
|
||||
'generalfeedback' => 'The correct answer is "Modular Object Oriented Dynamic Learning Environment".',
|
||||
'generalfeedback' => '<div class="clearfix">The correct answer is ' .
|
||||
'"Modular Object Oriented Dynamic Learning Environment".</div>',
|
||||
'rightanswer' => [
|
||||
'hascorrectresponse' => true,
|
||||
'showcorrect' => true,
|
||||
|
||||
@@ -107,7 +107,7 @@ final class formulation_and_controls_test extends advanced_testcase {
|
||||
'horizontal',
|
||||
[
|
||||
'readonly' => false,
|
||||
'questiontext' => 'Put these words in order',
|
||||
'questiontext' => '<div class="clearfix">Put these words in order</div>',
|
||||
'responsename' => 'q0:_response_0',
|
||||
'responseid' => 'id_q0_response_0',
|
||||
'value' => 'ordering_item_ac5fc041de63c8c5b34d0aabb96cf33d,' .
|
||||
@@ -168,7 +168,7 @@ final class formulation_and_controls_test extends advanced_testcase {
|
||||
'vertical',
|
||||
[
|
||||
'readonly' => false,
|
||||
'questiontext' => 'Put these words in order',
|
||||
'questiontext' => '<div class="clearfix">Put these words in order</div>',
|
||||
'responsename' => 'q0:_response_0',
|
||||
'responseid' => 'id_q0_response_0',
|
||||
'value' => 'ordering_item_497031794414a552435f90151ac3b54b,' .
|
||||
@@ -229,7 +229,7 @@ final class formulation_and_controls_test extends advanced_testcase {
|
||||
'horizontal',
|
||||
[
|
||||
'readonly' => false,
|
||||
'questiontext' => 'Put these words in order',
|
||||
'questiontext' => '<div class="clearfix">Put these words in order</div>',
|
||||
'responsename' => 'q0:_response_0',
|
||||
'responseid' => 'id_q0_response_0',
|
||||
'value' => 'ordering_item_ac5fc041de63c8c5b34d0aabb96cf33d,' .
|
||||
|
||||
@@ -459,14 +459,14 @@ abstract class question_definition {
|
||||
|
||||
/** @return the result of applying {@link format_text()} to the question text. */
|
||||
public function format_questiontext($qa) {
|
||||
return $this->format_text($this->questiontext, $this->questiontextformat,
|
||||
$qa, 'question', 'questiontext', $this->id);
|
||||
return html_writer::tag('div', $this->format_text($this->questiontext, $this->questiontextformat,
|
||||
$qa, 'question', 'questiontext', $this->id), ['class' => 'clearfix']);
|
||||
}
|
||||
|
||||
/** @return the result of applying {@link format_text()} to the general feedback. */
|
||||
public function format_generalfeedback($qa) {
|
||||
return $this->format_text($this->generalfeedback, $this->generalfeedbackformat,
|
||||
$qa, 'question', 'generalfeedback', $this->id);
|
||||
return html_writer::tag('div', $this->format_text($this->generalfeedback, $this->generalfeedbackformat,
|
||||
$qa, 'question', 'generalfeedback', $this->id), ['class' => 'clearfix']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -103,7 +103,7 @@ abstract class qtype_renderer extends plugin_renderer_base {
|
||||
|
||||
if ($options->feedback) {
|
||||
$output .= html_writer::nonempty_tag('div', $this->specific_feedback($qa),
|
||||
array('class' => 'specificfeedback'));
|
||||
['class' => 'specificfeedback clearfix']);
|
||||
$hint = $qa->get_applicable_hint();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user