/dports/www/moodle39/moodle/question/type/truefalse/tests/ |
H A D | questiontype_test.php | 89 $this->assertEquals(0, $questiondata->parent); 98 $this->assertEquals(1, $questiondata->length); 106 $this->assertEquals($questiondata->id, $questiondata->options->question); 107 …$this->assertEquals('True', $questiondata->options->answers[$questiondata->options->trueanswer]->a… 108 …$this->assertEquals('False', $questiondata->options->answers[$questiondata->options->falseanswer]-… 109 …$this->assertEquals(1.0, $questiondata->options->answers[$questiondata->options->trueanswer]->frac… 110 …$this->assertEquals(0.0, $questiondata->options->answers[$questiondata->options->falseanswer]->fra… 112 $questiondata->options->answers[$questiondata->options->trueanswer]->feedback); 114 $questiondata->options->answers[$questiondata->options->falseanswer]->feedback); 115 …$this->assertEquals(FORMAT_HTML, $questiondata->options->answers[$questiondata->options->trueanswe… [all …]
|
/dports/www/moodle310/moodle/question/type/truefalse/tests/ |
H A D | questiontype_test.php | 89 $this->assertEquals(0, $questiondata->parent); 98 $this->assertEquals(1, $questiondata->length); 106 $this->assertEquals($questiondata->id, $questiondata->options->question); 107 …$this->assertEquals('True', $questiondata->options->answers[$questiondata->options->trueanswer]->a… 108 …$this->assertEquals('False', $questiondata->options->answers[$questiondata->options->falseanswer]-… 109 …$this->assertEquals(1.0, $questiondata->options->answers[$questiondata->options->trueanswer]->frac… 110 …$this->assertEquals(0.0, $questiondata->options->answers[$questiondata->options->falseanswer]->fra… 112 $questiondata->options->answers[$questiondata->options->trueanswer]->feedback); 114 $questiondata->options->answers[$questiondata->options->falseanswer]->feedback); 115 …$this->assertEquals(FORMAT_HTML, $questiondata->options->answers[$questiondata->options->trueanswe… [all …]
|
/dports/www/moodle311/moodle/question/type/truefalse/tests/ |
H A D | questiontype_test.php | 89 $this->assertEquals(0, $questiondata->parent); 98 $this->assertEquals(1, $questiondata->length); 106 $this->assertEquals($questiondata->id, $questiondata->options->question); 107 …$this->assertEquals('True', $questiondata->options->answers[$questiondata->options->trueanswer]->a… 108 …$this->assertEquals('False', $questiondata->options->answers[$questiondata->options->falseanswer]-… 109 …$this->assertEquals(1.0, $questiondata->options->answers[$questiondata->options->trueanswer]->frac… 110 …$this->assertEquals(0.0, $questiondata->options->answers[$questiondata->options->falseanswer]->fra… 112 $questiondata->options->answers[$questiondata->options->trueanswer]->feedback); 114 $questiondata->options->answers[$questiondata->options->falseanswer]->feedback); 115 …$this->assertEquals(FORMAT_HTML, $questiondata->options->answers[$questiondata->options->trueanswe… [all …]
|
/dports/www/moodle39/moodle/question/type/missingtype/tests/ |
H A D | missingtype_test.php | 44 $questiondata = new stdClass(); 45 $questiondata->id = 0; 46 $questiondata->category = 0; 47 $questiondata->contextid = 0; 48 $questiondata->parent = 0; 49 $questiondata->name = 'Test'; 57 $questiondata->length = 1; 60 $questiondata->hidden = 0; 64 $questiondata->createdby = 0; 65 $questiondata->modifiedby = 0; [all …]
|
/dports/www/moodle310/moodle/question/type/missingtype/tests/ |
H A D | missingtype_test.php | 44 $questiondata = new stdClass(); 45 $questiondata->id = 0; 46 $questiondata->category = 0; 47 $questiondata->contextid = 0; 48 $questiondata->parent = 0; 49 $questiondata->name = 'Test'; 57 $questiondata->length = 1; 60 $questiondata->hidden = 0; 64 $questiondata->createdby = 0; 65 $questiondata->modifiedby = 0; [all …]
|
/dports/www/moodle311/moodle/question/type/missingtype/tests/ |
H A D | missingtype_test.php | 44 $questiondata = new stdClass(); 45 $questiondata->id = 0; 46 $questiondata->category = 0; 47 $questiondata->contextid = 0; 48 $questiondata->parent = 0; 49 $questiondata->name = 'Test'; 57 $questiondata->length = 1; 60 $questiondata->hidden = 0; 64 $questiondata->createdby = 0; 65 $questiondata->modifiedby = 0; [all …]
|
/dports/www/moodle39/moodle/question/type/calculated/tests/ |
H A D | questiontype_test.php | 93 array_keys(get_object_vars($questiondata))); 95 $this->assertEquals(0, $questiondata->parent); 102 $this->assertEquals(0, $questiondata->penalty); 104 $this->assertEquals(1, $questiondata->length); 105 $this->assertEquals(0, $questiondata->hidden); 108 $this->assertEquals('', $questiondata->idnumber); 110 $this->assertEquals([], $questiondata->hints); 113 $this->assertEquals($questiondata->id, $questiondata->options->question); 114 $this->assertEquals([], $questiondata->options->units); 122 'question' => $questiondata->id, [all …]
|
/dports/www/moodle310/moodle/question/type/calculated/tests/ |
H A D | questiontype_test.php | 93 array_keys(get_object_vars($questiondata))); 95 $this->assertEquals(0, $questiondata->parent); 102 $this->assertEquals(0, $questiondata->penalty); 104 $this->assertEquals(1, $questiondata->length); 105 $this->assertEquals(0, $questiondata->hidden); 108 $this->assertEquals('', $questiondata->idnumber); 110 $this->assertEquals([], $questiondata->hints); 113 $this->assertEquals($questiondata->id, $questiondata->options->question); 114 $this->assertEquals([], $questiondata->options->units); 122 'question' => $questiondata->id, [all …]
|
/dports/www/moodle311/moodle/question/type/calculated/tests/ |
H A D | questiontype_test.php | 93 array_keys(get_object_vars($questiondata))); 95 $this->assertEquals(0, $questiondata->parent); 102 $this->assertEquals(0, $questiondata->penalty); 104 $this->assertEquals(1, $questiondata->length); 105 $this->assertEquals(0, $questiondata->hidden); 108 $this->assertEquals('', $questiondata->idnumber); 110 $this->assertEquals([], $questiondata->hints); 113 $this->assertEquals($questiondata->id, $questiondata->options->question); 114 $this->assertEquals([], $questiondata->options->units); 122 'question' => $questiondata->id, [all …]
|
/dports/www/moodle310/moodle/question/type/multianswer/tests/ |
H A D | questiontype_test.php | 146 $this->assertEquals(0, $questiondata->parent); 153 $this->assertEquals(0, $questiondata->penalty); 155 $this->assertEquals(1, $questiondata->length); 156 $this->assertEquals(0, $questiondata->hidden); 159 $this->assertEquals('', $questiondata->idnumber); 164 'questionid' => $questiondata->id, 180 }, $questiondata->hints); 197 'parent' => $questiondata->id, 224 }, $questiondata->options->questions); 252 foreach ($questiondata as $property => $value) { [all …]
|
/dports/www/moodle311/moodle/question/type/multianswer/tests/ |
H A D | questiontype_test.php | 146 $this->assertEquals(0, $questiondata->parent); 153 $this->assertEquals(0, $questiondata->penalty); 155 $this->assertEquals(1, $questiondata->length); 156 $this->assertEquals(0, $questiondata->hidden); 159 $this->assertEquals('', $questiondata->idnumber); 164 'questionid' => $questiondata->id, 180 }, $questiondata->hints); 197 'parent' => $questiondata->id, 224 }, $questiondata->options->questions); 252 foreach ($questiondata as $property => $value) { [all …]
|
/dports/www/moodle39/moodle/question/type/multianswer/tests/ |
H A D | questiontype_test.php | 146 $this->assertEquals(0, $questiondata->parent); 153 $this->assertEquals(0, $questiondata->penalty); 155 $this->assertEquals(1, $questiondata->length); 156 $this->assertEquals(0, $questiondata->hidden); 159 $this->assertEquals('', $questiondata->idnumber); 164 'questionid' => $questiondata->id, 180 }, $questiondata->hints); 197 'parent' => $questiondata->id, 224 }, $questiondata->options->questions); 252 foreach ($questiondata as $property => $value) { [all …]
|
/dports/www/moodle310/moodle/question/type/ |
H A D | questiontypebase.php | 601 return trim($questiondata->answer[$key]) == '' && $questiondata->fraction[$key] == 0 && 653 $fieldarray = $questiondata->$field; 870 public function make_question($questiondata) { argument 895 $question->id = $questiondata->id; 898 $question->parent = $questiondata->parent; 900 $question->name = $questiondata->name; 906 $question->length = $questiondata->length; 908 $question->stamp = $questiondata->stamp; 936 if (empty($questiondata->hints)) { 939 foreach ($questiondata->hints as $hint) { [all …]
|
/dports/www/moodle39/moodle/question/type/ |
H A D | questiontypebase.php | 601 return trim($questiondata->answer[$key]) == '' && $questiondata->fraction[$key] == 0 && 653 $fieldarray = $questiondata->$field; 870 public function make_question($questiondata) { argument 895 $question->id = $questiondata->id; 898 $question->parent = $questiondata->parent; 900 $question->name = $questiondata->name; 906 $question->length = $questiondata->length; 908 $question->stamp = $questiondata->stamp; 936 if (empty($questiondata->hints)) { 939 foreach ($questiondata->hints as $hint) { [all …]
|
/dports/www/moodle311/moodle/question/type/ |
H A D | questiontypebase.php | 640 return trim($questiondata->answer[$key]) == '' && $questiondata->fraction[$key] == 0 && 692 $fieldarray = $questiondata->$field; 909 public function make_question($questiondata) { argument 934 $question->id = $questiondata->id; 937 $question->parent = $questiondata->parent; 939 $question->name = $questiondata->name; 945 $question->length = $questiondata->length; 947 $question->stamp = $questiondata->stamp; 975 if (empty($questiondata->hints)) { 978 foreach ($questiondata->hints as $hint) { [all …]
|
/dports/www/moodle310/moodle/question/type/truefalse/ |
H A D | questiontype.php | 136 parent::initialise_question_instance($question, $questiondata); 137 $answers = $questiondata->options->answers; 149 $question->trueanswerid = $questiondata->options->trueanswer; 150 $question->falseanswerid = $questiondata->options->falseanswer; 170 public function get_random_guess_score($questiondata) { argument 174 public function get_possible_responses($questiondata) { argument 176 $questiondata->id => array( 178 $questiondata->options->answers[ 179 $questiondata->options->falseanswer]->fraction), 181 $questiondata->options->answers[ [all …]
|
/dports/www/moodle311/moodle/question/type/truefalse/ |
H A D | questiontype.php | 136 parent::initialise_question_instance($question, $questiondata); 137 $answers = $questiondata->options->answers; 149 $question->trueanswerid = $questiondata->options->trueanswer; 150 $question->falseanswerid = $questiondata->options->falseanswer; 170 public function get_random_guess_score($questiondata) { argument 174 public function get_possible_responses($questiondata) { argument 176 $questiondata->id => array( 178 $questiondata->options->answers[ 179 $questiondata->options->falseanswer]->fraction), 181 $questiondata->options->answers[ [all …]
|
/dports/www/moodle39/moodle/question/type/truefalse/ |
H A D | questiontype.php | 136 parent::initialise_question_instance($question, $questiondata); 137 $answers = $questiondata->options->answers; 149 $question->trueanswerid = $questiondata->options->trueanswer; 150 $question->falseanswerid = $questiondata->options->falseanswer; 170 public function get_random_guess_score($questiondata) { argument 174 public function get_possible_responses($questiondata) { argument 176 $questiondata->id => array( 178 $questiondata->options->answers[ 179 $questiondata->options->falseanswer]->fraction), 181 $questiondata->options->answers[ [all …]
|
/dports/www/moodle310/moodle/question/type/random/tests/ |
H A D | questiontype_test.php | 80 $questiondata = question_bank::load_question_data($question->id); 86 array_keys(get_object_vars($questiondata))); 87 $this->assertEquals($category->id, $questiondata->category); 91 $this->assertEquals($questiondata->id, $questiondata->parent); 92 $this->assertEquals('Random (' . $category->name . ')', $questiondata->name); 94 $this->assertEquals('random', $questiondata->qtype); 95 $this->assertEquals(1, $questiondata->length); 96 $this->assertEquals(0, $questiondata->hidden); 97 $this->assertEquals($category->contextid, $questiondata->contextid); 101 $this->assertEquals([], $questiondata->options->answers); [all …]
|
/dports/www/moodle311/moodle/question/type/random/tests/ |
H A D | questiontype_test.php | 80 $questiondata = question_bank::load_question_data($question->id); 86 array_keys(get_object_vars($questiondata))); 87 $this->assertEquals($category->id, $questiondata->category); 91 $this->assertEquals($questiondata->id, $questiondata->parent); 92 $this->assertEquals('Random (' . $category->name . ')', $questiondata->name); 94 $this->assertEquals('random', $questiondata->qtype); 95 $this->assertEquals(1, $questiondata->length); 96 $this->assertEquals(0, $questiondata->hidden); 97 $this->assertEquals($category->contextid, $questiondata->contextid); 101 $this->assertEquals([], $questiondata->options->answers); [all …]
|
/dports/www/moodle39/moodle/question/type/random/tests/ |
H A D | questiontype_test.php | 80 $questiondata = question_bank::load_question_data($question->id); 86 array_keys(get_object_vars($questiondata))); 87 $this->assertEquals($category->id, $questiondata->category); 91 $this->assertEquals($questiondata->id, $questiondata->parent); 92 $this->assertEquals('Random (' . $category->name . ')', $questiondata->name); 94 $this->assertEquals('random', $questiondata->qtype); 95 $this->assertEquals(1, $questiondata->length); 96 $this->assertEquals(0, $questiondata->hidden); 97 $this->assertEquals($category->contextid, $questiondata->contextid); 101 $this->assertEquals([], $questiondata->options->answers); [all …]
|
/dports/www/moodle310/moodle/question/classes/statistics/responses/ |
H A D | analyser.php | 48 protected $questiondata; variable in core_question\\statistics\\responses\\analyser 73 * @param object $questiondata the full question data from the database defining this question. 76 public function __construct($questiondata, $whichtries = \question_attempt::LAST_TRY) { argument 77 $this->questiondata = $questiondata; 78 $qtypeobj = \question_bank::get_qtype($this->questiondata->qtype); 80 …this->analysis = new analysis_for_question($qtypeobj->get_possible_responses($this->questiondata)); 82 …ysis = new analysis_for_question_all_tries($qtypeobj->get_possible_responses($this->questiondata)); 85 …kdownbyvariant = $qtypeobj->break_down_stats_and_response_analysis_by_variant($this->questiondata); 122 $questionattempts = $dm->load_attempts_at_question($this->questiondata->id, $qubaids); 134 $this->analysis->cache($qubaids, $whichtries, $this->questiondata->id); [all …]
|
/dports/www/moodle311/moodle/question/classes/statistics/responses/ |
H A D | analyser.php | 48 protected $questiondata; variable in core_question\\statistics\\responses\\analyser 73 * @param object $questiondata the full question data from the database defining this question. 76 public function __construct($questiondata, $whichtries = \question_attempt::LAST_TRY) { argument 77 $this->questiondata = $questiondata; 78 $qtypeobj = \question_bank::get_qtype($this->questiondata->qtype); 80 …this->analysis = new analysis_for_question($qtypeobj->get_possible_responses($this->questiondata)); 82 …ysis = new analysis_for_question_all_tries($qtypeobj->get_possible_responses($this->questiondata)); 85 …kdownbyvariant = $qtypeobj->break_down_stats_and_response_analysis_by_variant($this->questiondata); 122 $questionattempts = $dm->load_attempts_at_question($this->questiondata->id, $qubaids); 134 $this->analysis->cache($qubaids, $whichtries, $this->questiondata->id); [all …]
|
/dports/www/moodle39/moodle/question/classes/statistics/responses/ |
H A D | analyser.php | 48 protected $questiondata; variable in core_question\\statistics\\responses\\analyser 73 * @param object $questiondata the full question data from the database defining this question. 76 public function __construct($questiondata, $whichtries = \question_attempt::LAST_TRY) { argument 77 $this->questiondata = $questiondata; 78 $qtypeobj = \question_bank::get_qtype($this->questiondata->qtype); 80 …this->analysis = new analysis_for_question($qtypeobj->get_possible_responses($this->questiondata)); 82 …ysis = new analysis_for_question_all_tries($qtypeobj->get_possible_responses($this->questiondata)); 85 …kdownbyvariant = $qtypeobj->break_down_stats_and_response_analysis_by_variant($this->questiondata); 122 $questionattempts = $dm->load_attempts_at_question($this->questiondata->id, $qubaids); 134 $this->analysis->cache($qubaids, $whichtries, $this->questiondata->id); [all …]
|
/dports/www/moodle311/moodle/question/type/essay/ |
H A D | questiontype.php | 97 parent::initialise_question_instance($question, $questiondata); 98 $question->responseformat = $questiondata->options->responseformat; 99 $question->responserequired = $questiondata->options->responserequired; 100 $question->responsefieldlines = $questiondata->options->responsefieldlines; 101 $question->minwordlimit = $questiondata->options->minwordlimit; 102 $question->maxwordlimit = $questiondata->options->maxwordlimit; 103 $question->attachments = $questiondata->options->attachments; 105 $question->graderinfo = $questiondata->options->graderinfo; 106 $question->graderinfoformat = $questiondata->options->graderinfoformat; 107 $question->responsetemplate = $questiondata->options->responsetemplate; [all …]
|