---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format.php' : C:\moodle\moodle\site\moodle_head\question\format.php(256): $answersvalid = true; // in case they are! C:\moodle\moodle\site\moodle_head\question\format.php(260): $answersvalid = false; C:\moodle\moodle\site\moodle_head\question\format.php(266): if (!$answersvalid) { C:\moodle\moodle\site\moodle_head\question\format.php(321): // Now to save all the answers and type-specific options C:\moodle\moodle\site\moodle_head\question\format.php(488): static $defaultshuffleanswers = null; C:\moodle\moodle\site\moodle_head\question\format.php(489): if (is_null($defaultshuffleanswers)) { C:\moodle\moodle\site\moodle_head\question\format.php(490): $defaultshuffleanswers = get_config('quiz', 'shuffleanswers'); C:\moodle\moodle\site\moodle_head\question\format.php(494): $question->shuffleanswers = $defaultshuffleanswers; Trouvé 'answers' 6 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\backuplib.php' : C:\moodle\moodle\site\moodle_head\question\backuplib.php(55): // question_answers |--(CL,pk->id,fk->question) C:\moodle\moodle\site\moodle_head\question\backuplib.php(226): //This function backups the answers data in some question types C:\moodle\moodle\site\moodle_head\question\backuplib.php(228): function question_backup_answers($bf,$preferences,$question, $level = 6) { C:\moodle\moodle\site\moodle_head\question\backuplib.php(233): $answers = $DB->get_records("question_answers", array("question"=>$question), "id"); C:\moodle\moodle\site\moodle_head\question\backuplib.php(234): //If there are answers C:\moodle\moodle\site\moodle_head\question\backuplib.php(235): if ($answers) { C:\moodle\moodle\site\moodle_head\question\backuplib.php(236): $status = $status && fwrite ($bf,start_tag("ANSWERS",$level,true)); C:\moodle\moodle\site\moodle_head\question\backuplib.php(238): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\backuplib.php(247): $status = $status && fwrite ($bf,end_tag("ANSWERS",$level,true)); Trouvé 'answers' 10 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\restorelib.php' : C:\moodle\moodle\site\moodle_head\question\restorelib.php(63): // question_answers |--(CL,pk->id,fk->question) C:\moodle\moodle\site\moodle_head\question\restorelib.php(451): //Now, restore every question_answers in this question C:\moodle\moodle\site\moodle_head\question\restorelib.php(452): $status = question_restore_answers($oldid,$newid,$que_info,$restore); C:\moodle\moodle\site\moodle_head\question\restorelib.php(461): //We are NOT creating the question, but we need to know every question_answers C:\moodle\moodle\site\moodle_head\question\restorelib.php(464): $status = question_restore_map_answers($oldid,$newid,$que_info,$restore); C:\moodle\moodle\site\moodle_head\question\restorelib.php(496): function question_restore_answers ($old_question_id,$new_question_id,$info,$restore) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(502): //Get the answers array C:\moodle\moodle\site\moodle_head\question\restorelib.php(503): if (isset($info['#']['ANSWERS']['0']['#']['ANSWER'])) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(504): $answers = $info['#']['ANSWERS']['0']['#']['ANSWER']; C:\moodle\moodle\site\moodle_head\question\restorelib.php(506): //Iterate over answers C:\moodle\moodle\site\moodle_head\question\restorelib.php(507): for($i = 0; $i < sizeof($answers); $i++) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(508): $ans_info = $answers[$i]; C:\moodle\moodle\site\moodle_head\question\restorelib.php(516): //Now, build the question_answers record structure C:\moodle\moodle\site\moodle_head\question\restorelib.php(523): // Update 'match everything' answers for numerical questions coming from old backup files. C:\moodle\moodle\site\moodle_head\question\restorelib.php(528): //The structure is equal to the db, so insert the question_answers C:\moodle\moodle\site\moodle_head\question\restorelib.php(529): $newid = $DB->insert_record ("question_answers",$answer); C:\moodle\moodle\site\moodle_head\question\restorelib.php(544): backup_putid($restore->backup_unique_code,"question_answers",$oldid, C:\moodle\moodle\site\moodle_head\question\restorelib.php(555): function question_restore_map_answers ($old_question_id,$new_question_id,$info,$restore) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(560): if (!isset($info['#']['ANSWERS'])) { // No answers in this question (eg random) C:\moodle\moodle\site\moodle_head\question\restorelib.php(564): //Get the answers array C:\moodle\moodle\site\moodle_head\question\restorelib.php(565): $answers = $info['#']['ANSWERS']['0']['#']['ANSWER']; C:\moodle\moodle\site\moodle_head\question\restorelib.php(567): //Iterate over answers C:\moodle\moodle\site\moodle_head\question\restorelib.php(568): for($i = 0; $i < sizeof($answers); $i++) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(569): $ans_info = $answers[$i]; C:\moodle\moodle\site\moodle_head\question\restorelib.php(577): //Now, build the question_answers record structure C:\moodle\moodle\site\moodle_head\question\restorelib.php(584): //answers must exist too. C:\moodle\moodle\site\moodle_head\question\restorelib.php(589): $db_answer = $DB->get_record ("question_answers", array("question"=>$new_question_id, "answer"=>$answer->answer)); C:\moodle\moodle\site\moodle_head\question\restorelib.php(604): backup_putid($restore->backup_unique_code,"question_answers",$oldid, $db_answer->id); C:\moodle\moodle\site\moodle_head\question\restorelib.php(928): $qtypeswithhtmlanswers = array(); C:\moodle\moodle\site\moodle_head\question\restorelib.php(931): $qtypeswithhtmlanswers[$qtype] = $qtypeclass->has_html_answers(); C:\moodle\moodle\site\moodle_head\question\restorelib.php(983): // Decode links in answers. C:\moodle\moodle\site\moodle_head\question\restorelib.php(984): if ($answers = $DB->get_records_sql("SELECT qa.id, qa.answer, qa.feedback, q.qtype C:\moodle\moodle\site\moodle_head\question\restorelib.php(985): FROM {question_answers} qa, {question} q, {question_categories} qc C:\moodle\moodle\site\moodle_head\question\restorelib.php(990): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(992): if ($qtypeswithhtmlanswers[$answer->qtype]) { C:\moodle\moodle\site\moodle_head\question\restorelib.php(1001): if (!$DB->update_record('question_answers', $answer)) { Trouvé 'answers' 40 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php' : C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(200): // Process Multiple Choice Questions With Multiple Answers C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(217): $question->single = 0; // More than one answers allowed C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(234): $correctanswers = $thisquestion["#"]["GRADABLE"][0]["#"]["CORRECTANSWER"]; C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(242): $correctanswercount = sizeof($correctanswers); C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(247): $correct_answer_id = trim($correctanswers[$k]["@"]["answer_id"]); C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(359): $question->subanswers[] = trim($choice); C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(361): $correctanswers = $thisquestion["#"]["GRADABLE"][0]["#"]["CORRECTANSWER"]; C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(362): for ($k = 0; $k < sizeof ($correctanswers); $k++) { C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(364): if (strcmp($choice_id, $correctanswers[$k]["@"]["choice_id"]) == 0) { C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(366): $answer_id = $correctanswers[$k]["@"]["answer_id"]; C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(368): $answers = $thisquestion["#"]["ANSWER"]; C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(369): for ($m = 0; $m < sizeof ($answers); $m++) { C:\moodle\moodle\site\moodle_head\question\format\blackboard\format.php(371): $answer = $answers[$m]; Trouvé 'answers' 13 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\examview\format.php' : C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(73): $newgroup->subanswers = array(); C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(92): $match_group->subanswers[] = $match_group->subchoices[$answer]; C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(109): $question->subanswers = array(); C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(114): $htmltext = s($match_group->subanswers[$key]); C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(115): $question->subanswers[] = $htmltext; C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(243): $answers = explode("\n",$answer); C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(245): foreach($answers as $key => $value) { C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(267): $answers = explode("\n",$answer); C:\moodle\moodle\site\moodle_head\question\format\examview\format.php(269): foreach($answers as $key => $value) { Trouvé 'answers' 9 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\gift\format.php' : C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(103): function check_answer_count( $min, $answers, $text ) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(104): $countanswers = count($answers); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(105): if ($countanswers < $min) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(172): $answerstart = strpos($text, "{"); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(176): if (($answerstart === false) and ($answerfinish === false)) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(181): elseif (!(($answerstart !== false) and ($answerfinish !== false))) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(186): $answerlength = $answerfinish - $answerstart; C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(187): $answertext = trim(substr($text, $answerstart + 1, $answerlength - 1)); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(195): // no blank line if answers follow question, outside of closing punctuation C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(196): $questiontext = substr_replace($text, "", $answerstart, $answerlength+1); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(199): $questiontext = substr_replace($text, "_____", $answerstart, $answerlength+1); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(263): $valid_tf_answers = array("T", "TRUE", "F", "FALSE"); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(264): if (in_array($truefalse_check, $valid_tf_answers)) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(291): $question->single = 0; // multiple answers are enabled if no single answer is 100% correct C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(297): $answers = explode("~", $answertext); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(298): if (isset($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(299): $answers[0] = trim($answers[0]); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(301): if (empty($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(302): array_shift($answers); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(305): $countanswers = count($answers); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(307): if (!$this->check_answer_count( 2,$answers,$text )) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(312): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(340): $answers = explode("=", $answertext); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(341): if (isset($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(342): $answers[0] = trim($answers[0]); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(344): if (empty($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(345): array_shift($answers); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(348): if (!$this->check_answer_count( 2,$answers,$text )) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(353): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(364): $question->subanswers[$key] = trim($this->escapedchar_post(substr($answer, $marker+2))); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(394): $answers = explode("=", $answertext); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(395): if (isset($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(396): $answers[0] = trim($answers[0]); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(398): if (empty($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(399): array_shift($answers); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(402): if (!$this->check_answer_count( 1,$answers,$text )) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(407): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(439): $answers = explode("=", $answertext); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(440): if (isset($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(441): $answers[0] = trim($answers[0]); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(443): if (empty($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(444): array_shift($answers); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(447): if (count($answers) == 0) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(449): $giftnonumericalanswers = get_string('giftnonumericalanswers','quiz'); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(450): $this->error( $giftnonumericalanswers, $text ); C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(455): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(566): $trueanswer = $question->options->answers[$question->options->trueanswer]; C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(567): $falseanswer = $question->options->answers[$question->options->falseanswer]; C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(593): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(614): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\gift\format.php(622): foreach ($question->options->answers as $answer) { Trouvé 'answers' 58 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php' : C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(161): $answers = array(); C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(163): // add answers C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(176): $answers[] = (empty($fraction) ? '' : '=').$text.(empty($feedback) ? '' : ('#'.$feedback)); C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(180): // compile answers into question text, if necessary C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(181): $wrapped->questiontext = '{'.$defaultgrade.':SHORTANSWER:'.implode('~', $answers).'}'; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(253): $question->subanswers = array(); C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(261): $question->subanswers[$p] = $this->hotpot_prepare_str($right); C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(353): if ($xml->xml_value($tags, $question_record."['answers']")) { C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(355): $answers = $question_record."['answers'][0]['#']"; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(358): $answers = $question_record; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(388): // workaround required to calculate scores for multiple select answers C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(389): $no_of_correct_answers = 0; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(392): while (($answer = $answers."['answer'][$a]['#']") && $xml->xml_value($tags, $answer)) { C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(397): $no_of_correct_answers++; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(407): $correct_answers = array(); C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(408): $correct_answers_all_zero = true; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(409): while (($answer = $answers."['answer'][$a]['#']") && $xml->xml_value($tags, $answer)) { C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(415): $fraction = round(1/$no_of_correct_answers, 5); C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(433): $correct_answers_all_zero = false; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(435): $correct_answers[] = $aa; C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(441): if ($correct_answers_all_zero) { C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(442): // correct answers all have score of 0%, C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(443): // so reset score for correct answers 100% C:\moodle\moodle\site\moodle_head\question\format\hotpot\format.php(444): foreach ($correct_answers as $aa) { Trouvé 'answers' 25 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\learnwise\format.php' : C:\moodle\moodle\site\moodle_head\question\format\learnwise\format.php(3): // Imports learnwise multiple choice quizzes (single and multiple answers) C:\moodle\moodle\site\moodle_head\question\format\learnwise\format.php(118): } else { // mulitple answers Trouvé 'answers' 2 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php' : C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(50): $answerstart = strpos($text, "{"); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(51): if ($answerstart === false) { C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(66): $answerlength = $answerfinish - $answerstart; C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(67): $answertext = substr($text, $answerstart + 1, $answerlength - 1); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(70): $question->questiontext = substr_replace($text, "_____", $answerstart, $answerlength+1); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(74): /// Parse the answers C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(76): $answers = explode("~", $answertext); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(77): if (isset($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(78): $answers[0] = trim($answers[0]); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(80): if (empty($answers[0])) { C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(81): array_shift($answers); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(84): $countanswers = count($answers); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(86): switch ($countanswers) { C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(89): echo "

No answers found in $answertext"; C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(96): $answer = trim($answers[0]); C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(109): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\format\missingword\format.php(125): //remove the protective underscore for leading numbers in answers Trouvé 'answers' 19 fois. ---------------------------------------- ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\webct\format.php' : C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(207): $question->subanswers[$currentchoice] = $answertext; C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(338): foreach ($question->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(352): // switch subquestions and subanswers C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(355): $question->subquestions[$id] = $question->subanswers[$id]; C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(356): $question->subanswers[$id] = $temp; C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(362): $question->subanswers[] = 'dummy'; C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(396): // Multiple Choice Question with several good answers C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(400): $question->single = 0; // Many answers allowed C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(423): $question->answers = array(); // No problem as they go as :FORMULA: from webct C:\moodle\moodle\site\moodle_head\question\format\webct\format.php(538): $question->answers[$currentchoice] = Trouvé 'answers' 10 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\xhtml\format.php' : C:\moodle\moodle\site\moodle_head\question\format\xhtml\format.php(59): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xhtml\format.php(90): // build drop down for answers Trouvé 'answers' 2 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\xml\format.php' : C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(177): $shuffleanswers = $this->getpath( $question, array('#','shuffleanswers',0,'#'), 'false' ); C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(179): $qo->shuffleanswers = $this->trans_single($shuffleanswers); C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(189): // run through the answers C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(190): $answers = $question['#']['answer']; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(192): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(237): // In the past, it used to be assumed that the two answers were in the file C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(286): // run through the answers C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(287): $answers = $question['#']['answer']; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(289): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(327): // get answers array C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(328): $answers = $question['#']['answer']; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(333): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(372): $qo->shuffleanswers = $this->getpath( $question, array( '#','shuffleanswers',0,'#' ), 1 ); C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(377): $qo->subanswers = array(); C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(382): $qo->subanswers[] = $this->getpath( $subquestion, array('#','answer',0,'#','text',0,'#'), '', true); C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(418): // get answers array C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(420): $answers = $question['#']['answer']; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(421): $qo->answers = array(); C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(429): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(438): $qo->answers[] = '*'; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(440): $qo->answers[] = $answertext; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(827): if (!empty($question->options->shuffleanswers)) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(828): $expout .= " {$question->options->shuffleanswers}\n"; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(831): $expout .= " 0\n"; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(840): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(857): $expout .= " ".$this->get_single($question->options->shuffleanswers)."\n"; C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(862): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(874): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(885): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(931): if (!empty($question->options->answers)) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(932): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\xml\format.php(943): foreach ($question->options->answers as $answer) { Trouvé 'answers' 40 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php' : C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(334): $matching_answerset = $pblock['#']['flow']; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(336): $answerset = array(); C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(337): foreach($matching_answerset as $answer) { C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(338): // $answerset[] = $this->process_block($answer, $bb_answer); C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(341): $answerset[] = $bb_answer; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(343): $block->matching_answerset = $answerset; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(607): $answers = array(); C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(624): //for BB Fill in the Blank, only interested in correct answers C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(626): $answers[] = $response->ident[0]['varequal'][0]['#']; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(640): //Adding catchall to so that students can see feedback for incorrect answers when they enter something the C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(642): $answers[] = '*'; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(651): $question->answer = $answers; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(731): // Process Multiple Choice Questions With Multiple Answers C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(738): $answers = $quest->responses; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(739): $correct_answers = array(); C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(740): foreach($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(742): $answerset = $answer->ident[0]['and'][0]['#']['varequal']; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(743): foreach($answerset as $ans) { C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(744): $correct_answers[] = $ans['#']; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(753): $correct_answer_count = count($correct_answers); C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(758): if (in_array($choice->ident, $correct_answers)) { C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(830): $question->subanswers[] = $quest->RIGHT_MATCH_BLOCK->matching_answerset[$cid]->text; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(837): if ( count($quest->RESPONSE_BLOCK->subquestions) > count($quest->RIGHT_MATCH_BLOCK->matching_answerset) || count($question->subquestions) < 2) { C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(842): foreach($question->subanswers as $qstn) { C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(861): print 'This matching question is malformed. Please ensure there are no blank answers, no two questions have the same answer, and/or there are correct answers for each question. There must be at least as many subanswers as subquestions, and at least one subquestion.'; C:\moodle\moodle\site\moodle_head\question\format\blackboard_six\format.php(885): print $quest->RIGHT_MATCH_BLOCK->matching_answerset[$id]->text.''; Trouvé 'answers' 30 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php' : C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(363): $questions = $this->quiz_export_prepare_questions($questions, $quiz->id, $course->id, $quiz->shuffleanswers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(394): * - the question answers atached to the questions C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(403): function quiz_export_prepare_questions($questions, $quizid, $courseid, $shuffleanswers = null) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(405): // add the answers to the questions and format the image property C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(433): $questions = $this->questions_with_export_info($questions, $shuffleanswers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(476): function questions_with_export_info($questions, $shuffleanswers = null) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(479): $expout = $this->writequestion( $question , $shuffleanswers) . "\n"; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(493): * @param boolean $shuffleanswers whether or not to shuffle the answers C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(498): function writequestion($question, $shuffleanswers = null, $courselevel = false, $path = '') { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(537): $qanswers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(538): $answers[0] = (array)$qanswers['true']; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(539): $answers[0]['answer'] = get_string("true", "quiz"); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(540): $answers[1] = (array)$qanswers['false']; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(541): $answers[1]['answer'] = get_string("false", "quiz"); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(543): if (!empty($shuffleanswers)) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(544): $answers = $this->shuffle_things($answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(549): if ($answers[0]['id'] == $correctresponseid) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(550): $correctresponse = $answers[0]; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(552): $correctresponse = $answers[1]; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(560): $smarty->assign('answers', $answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(564): $answers = $this->objects_to_array($question->options->answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(565): $correctresponses = $this->get_correct_answers($answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(570): $smarty->assign('answers', $answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(571): $smarty->assign('maxChoices', $question->options->single ? '1' : count($answers)); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(572): $smarty->assign('maxChoices', $question->options->single ? '1' : count($answers)); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(573): $smarty->assign('shuffle', empty($shuffleanswers) ? 'false' : 'true'); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(581): $answers = $this->objects_to_array($question->options->answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(582): if (!empty($shuffleanswers)) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(583): $answers = $this->shuffle_things($answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(586): $correctresponses = $this->get_correct_answers($answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(591): $smarty->assign('answers', $answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(595): $qanswer = array_pop( $question->options->answers ); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(604): if (!empty($shuffleanswers)) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(616): // loss of get_answers() from quiz_embedded_close_qtype class during C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(620): $answers = $this->get_cloze_answers_array($question); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(621): $questions = $this->get_cloze_questions($question, $answers, $allowedtags); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(624): $smarty->assign('answers', $answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(650): * gets the answers whose grade fraction > 0 C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(652): * @param array $answers C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(653): * @return array (0-indexed) containing the answers whose grade fraction > 0 C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(655): function get_correct_answers($answers) C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(657): $correctanswers = array(); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(658): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(660): $correctanswers[] = $answer; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(663): return $correctanswers; C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(708): function get_cloze_answers_array($question) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(709): $answers = $this->get_answers($question); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(710): $this->xml_entitize($answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(711): foreach ($answers as $answerkey => $answer) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(712): $answers[$answerkey]->subanswers = $this->objects_to_array($answer->subanswers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(714): return $this->objects_to_array($answers); C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(724): * @param array $answers - an array of arrays containing the question's answers C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(728): function get_cloze_questions($question, $answers, $allowabletags) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(742): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\format\qti_two\format.php(816): * The results are based on whether or not Moodle stores answers for the given question type Trouvé 'answers' 75 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\edit_question_form.php' : C:\moodle\moodle\site\moodle_head\question\type\edit_question_form.php(23): * Question object with options and answers already loaded by get_question_options Trouvé 'answers' 1 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(132): * @return whether the question_answers.answer field needs to have C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(135): function has_html_answers() { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(152): * If your question type has a table that extends the question_answers table, C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(263): * Given some question info and some data about the answers C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(356): // Now to save all the answers and type-specific options C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(433): // TODO save the answers, with any extra data. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(475): $question->options->answers = $DB->get_records_sql(" C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(477): FROM {question_answers} qa, {$answer_extension_table} qax C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(479): if (!$question->options->answers) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(480): notify("Failed to load question answers from the table $answer_extension_table for questionid " . C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(485): // Don't check for success or failure because some question types do not use the answers table. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(486): $question->options->answers = $DB->get_records('question_answers', array('question' => $question->id), 'id ASC'); C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(524): "answerid IN (SELECT qa.id FROM {question_answers} qa WHERE qa.question = ?)", array($questionid)); C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(527): $success = $success && $DB->delete_records('question_answers', array('question' => $questionid)); C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(665): if ($question->options->answers) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(666): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(679): * All answers are found and their text values isolated C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(684): * to all answers to the question. Answer ids are used as keys. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(686): * @param object $question The question for which the answers are to C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(692): if (isset($question->options->answers) && is_array($question->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(693): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(694): foreach ($question->options->answers as $aid=>$answer) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(698): $answers[$aid] = $r; C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(702): $result->responses = $answers; C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(710): * method is not passed a state object. It is the possible answers to a C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(713): * @return array of possible answers. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1302): * equivalent answers to the question by the student. This method will be C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1343): * This method only applies to questions that use teacher-defined answers C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1375): // answers stored in the question, and uses the grade from the C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1380): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1480): * Need to check for links to files in question_answers.answer and feedback C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1522): /// Answers, if this question uses them. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1523): if (isset($question->options->answers)){ C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1524): foreach ($question->options->answers as $answerkey => $answer){ C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1525): /// URLs in the answers themselves, if appropriate. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1526): if ($this->has_html_answers()) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1543): * Need to check for links to files in question_answers.answer and feedback C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1585): /// Answers, if this question uses them. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1586): if (isset($question->options->answers)){ C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1587): //answers that do not need updating have been unset C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1588): foreach ($question->options->answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1590): /// URLs in the answers themselves, if appropriate. C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1591): if ($this->has_html_answers()) { C:\moodle\moodle\site\moodle_head\question\type\questiontype.php(1598): if (!$DB->update_record('question_answers', $answer)){ Trouvé 'answers' 46 fois. --------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetdefinitions_form.php' : C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetdefinitions_form.php(9): * Question object with options and answers already loaded by get_question_options C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetdefinitions_form.php(39): if (isset($this->question->options->answers)){ C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetdefinitions_form.php(40): foreach ($this->question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetdefinitions_form.php(44): foreach ($SESSION->calculated->questionform->answers as $answer){ Trouvé 'answers' 4 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php' : C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(4): * Question object with options and answers already loaded by get_question_options C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(28): public $commentanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(90): $mform->addElement('header', 'updateanswershdr', get_string('answerstoleranceparam', 'qtype_datasetdependent')); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(91): $mform->addElement('submit', 'updateanswers', get_string('updatetolerancesparam', 'qtype_datasetdependent')); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(92): $mform->setAdvanced('updateanswers',true); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(93): $mform->registerNoSubmitButton('updateanswers'); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(95): $answers = fullclone($this->question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(97): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(116): $mform->addElement('select', 'correctanswerlength['.$key.']', get_string('correctanswershows', 'qtype_calculated'), range(0, 9)); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(120): $mform->addElement('select', 'correctanswerformat['.$key.']', get_string('correctanswershowsformat', 'qtype_calculated'), $answerlengthformats); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(217): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(218): if (count($answers)) { C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(219): if ( optional_param('updateanswers', '', PARAM_RAW) != '' || optional_param('updatedatasets', '', PARAM_RAW) != ''){ C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(220): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(235): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(258): $comment = $this->qtypeobj->comment_on_datasetitems($question->id,$answers, $data, $itemnumber); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(263): foreach ($question->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(264): $totalcomment .= $comment->stranswers[$key].'
'; C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(279): if( optional_param('updatedatasets', '', PARAM_RAW) == '' && optional_param('updateanswers', '', PARAM_RAW)== ''){ C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(294): if (!$this->regenerate && (optional_param('updatedatasets', '', PARAM_RAW) == '' && optional_param('updateanswers', '', PARAM_RAW)== '')){ C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(309): $comment = $this->qtypeobj->comment_on_datasetitems($question->id,$answers, $data, ($this->noofitems+1)); C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(314): foreach ($question->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\datasetitems_form.php(315): $formdata['answercomment['.($this->noofitems+$key1).']'] = $comment->stranswers[$key]; Trouvé 'answers' 26 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php' : C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(43): $repeated[] =& $mform->createElement('text', 'answers', get_string('correctanswerformula', 'quiz').'=', array('size' => 50)); C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(44): $repeatedoptions['answers']['type'] = PARAM_NOTAGS; C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(56): $repeated[] =& $mform->createElement('select', 'correctanswerlength', get_string('correctanswershows', 'qtype_calculated'), range(0, 9)); C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(60): $repeated[] =& $mform->createElement('select', 'correctanswerformat', get_string('correctanswershowsformat', 'qtype_calculated'), $answerlengthformats); C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(67): $count = count($this->question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(76): $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', 1, get_string('addmoreanswerblanks', 'qtype_calculated')); C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(114): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(115): if (count($answers)) { C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(117): foreach ($answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(118): $default_values['answers['.$key.']'] = $answer->answer; C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(196): $answers = $data['answers']; C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(201): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(206): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(207): $errors['answers['.$key.']'] = get_string('atleastonewildcard', 'qtype_datasetdependent'); C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(210): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(217): $errors['answers['.$key.']'] = $eqerror; C:\moodle\moodle\site\moodle_head\question\type\calculated\edit_calculated_form.php(280): $errors['answers[0]'] = get_string('atleastoneanswer', 'qtype_calculated'); Trouvé 'answers' 20 fois. Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(32): if (!$question->options->answers = $DB->get_records_sql( C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(34): "FROM {question_answers} a, " . C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(62): foreach ($question->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(63): $answer = &$question->options->answers[$key]; // for PHP 4.x C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(131): // Get old answers: C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(135): if (!$oldanswers = $DB->get_records('question_answers', array('question' => $question->id), 'id ASC')) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(136): $oldanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(151): // Insert all the new answers C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(152): foreach ($question->answers as $key => $dataanswer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(160): if ($oldanswer = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(162): if (! $DB->update_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(167): if (! $answer->id = $DB->insert_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(202): if (!empty($oldanswers)) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(203): foreach($oldanswers as $oa) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(204): $DB->delete_records('question_answers', array('id' => $oa->id)); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(354): $question->options->answers = array(); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(355): foreach ($form->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(362): $question->options->answers[] = clone($a); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(379): foreach ($form->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(514): foreach ($form->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(525): // always prepare the mandatorydatasets present in the answers C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(561): * the general parameters and answers are saved using parent::save_question C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(767): foreach ($numericalquestion->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(768): $answer = fullclone($numericalquestion->options->answers[$key]); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(769): $numericalquestion->options->answers[$key]->answer = $this->substitute_variables_and_eval($answer->answer, C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(799): foreach ($numericalquestion->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(800): $answer = $numericalquestion->options->answers[$key]->answer; // for PHP 4.x C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(801): $numericalquestion->options->answers[$key]->answer = $this->substitute_variables_and_eval($answer, C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(819): foreach ($question->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(820): $numericalquestion->options->answers[$key] = clone($answer); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(822): foreach ($numericalquestion->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(823): $answer = &$numericalquestion->options->answers[$key]; // for PHP 4.x C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(841): foreach ($question->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(842): $numericalquestion->options->answers[$key] = clone($answer); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(844): foreach ($numericalquestion->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(845): $answer = &$numericalquestion->options->answers[$key]; // for PHP 4.x C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(979): foreach ($question->options->answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1148): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1150): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1161): function comment_on_datasetitems($questionid, $answers,$data, $number) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1164): $comment->stranswers = array(); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1166): $comment->answers = array(); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1174): $answers = fullclone($answers); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1180): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1195): $comment->stranswers[$key] = " $formattedanswer->answer".'

'; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1197): $comment->stranswers[$key] = $formula.' = '.get_string('anyvalue','qtype_calculated').'


'; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1199): $comment->stranswers[$key]= $formula.' = '.$formattedanswer->answer.'
' ; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1200): $comment->stranswers[$key] .= $strmin. $delimiter.$answer->min.'---'; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1201): $comment->stranswers[$key] .= $strmax.$delimiter.$answer->max; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1202): $comment->stranswers[$key] .='
'; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1207): $comment->answers[$key] = $key; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1208): $comment->stranswers[$key] .=get_string('trueansweroutsidelimits','qtype_calculated',$correcttrue);//ERROR True answer '..' outside limits'; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1210): $comment->stranswers[$key] .=get_string('trueanswerinsidelimits','qtype_calculated',$correcttrue);//' True answer :'.$calculated->trueanswer.' inside limits'; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1212): $comment->stranswers[$key] .=''; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1282): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1753): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1754): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1790): $answer = backup_getid($restore->backup_unique_code,"question_answers",$calculated->answer); C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1834): $form->shuffleanswers = 1; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1835): $form->noanswers = 1; C:\moodle\moodle\site\moodle_head\question\type\calculated\questiontype.php(1838): $form->answers = array('{a} + {b}'); Trouvé 'answers' 64 fois. ---------------------------------------- ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php' : C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(17): $answers= array(); C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(20): $answers[$i]->answer = ""; C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(21): $answers[$i]->feedback = ""; C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(22): $answers[$i]->fraction = "1.0"; C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(23): $answers[$i]->tolerance = "0.01"; C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(24): $answers[$i]->tolerancetype = "1"; C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(25): $answers[$i]->correctanswerlength = "2"; // Defaults to two ... C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(26): $answers[$i]->correctanswerformat = "1"; // ... decimals C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(31): if (!empty($question->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(34): $answersraw = array_values($question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(35): $n = count($answersraw); C:\moodle\moodle\site\moodle_head\question\type\calculated\editquestionb.php(37): $answers[$i] = $answersraw[$i]; Trouvé 'answers' 14 fois. Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\essay\edit_essay_form.php' : C:\moodle\moodle\site\moodle_head\question\type\essay\edit_essay_form.php(34): if (!empty($question->options) && !empty($question->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\essay\edit_essay_form.php(35): $answer = reset($question->options->answers); Trouvé 'answers' 2 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(26): $answer = $DB->get_record("question_answers", array("question" => $question->id)); C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(36): if (!$DB->update_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(41): if (!$answer->id = $DB->insert_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(53): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(75): if ($options->feedback && !empty($answers)) { C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(76): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\essay\questiontype.php(130): return question_backup_answers($bf, $preferences, $questionid, $level); Trouvé 'answers' 8 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php' : C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(22): $mform->addElement('advcheckbox', 'shuffleanswers', get_string('shuffle', 'quiz'), null, null, array(0,1)); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(23): $mform->setHelpButton('shuffleanswers', array('matchshuffle', get_string('shuffle','quiz'), 'quiz')); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(24): $mform->setDefault('shuffleanswers', 1); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(26): $mform->addElement('static', 'answersinstruct', get_string('choices', 'quiz'), get_string('filloutthreeqsandtwoas', 'qtype_match')); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(27): $mform->closeHeaderBefore('answersinstruct'); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(32): $repeated[] =& $mform->createElement('text', 'subanswers', get_string('answer', 'quiz'), array('size'=>50)); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(48): $this->repeat_elements($repeated, $repeatsatstart, array(), 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmoreqblanks', 'qtype_match')); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(58): $default_values['subanswers['.$key.']'] = $subquestion->answertext; C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(63): $default_values['shuffleanswers'] = $question->options->shuffleanswers; C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(75): $answers = $data['subanswers']; C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(81): $trimmedanswer = trim($answers[$key]); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(89): $errors['subanswers['.$key.']'] = get_string('nomatchinganswerforq', 'qtype_match', $trimmedquestion); C:\moodle\moodle\site\moodle_head\question\type\match\edit_match_form.php(102): $errors['subanswers[2]'] = get_string('notenoughqsandas', 'qtype_match', $numberqanda); Trouvé 'answers' 16 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(38): $answertext = $question->subanswers[$key]; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(78): $options->shuffleanswers = $question->shuffleanswers; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(87): $options->shuffleanswers = $question->shuffleanswers; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(99): $result->notice = get_string('notenoughanswers', 'quiz', 3); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(130): // answers per question, each with different marks and feedback. C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(136): ->answers[$subquestion->code] = clone($answer); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(141): // Shuffle the answers if required C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(142): if ($cmoptions->shuffleanswers and $question->options->shuffleanswers) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(179): // answers per question, each with different marks and feedback. C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(185): ->answers[$subquestion->code] = clone($answer); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(195): // Prepare an array to help when disambiguating equal answers. C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(198): $ans = reset($subquestion->options->answers); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(209): if (!array_key_exists($response, $subquestion->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(211): // two answers with the same text, but different ids, C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(213): $expected_answer = reset($subquestion->options->answers); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(235): foreach ($sub->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(247): $correctanswers = $this->get_correct_responses($question, $state); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(249): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(250): $allanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(254): // Prepare a list of answers, removing duplicates. C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(256): foreach ($subquestion->options->answers as $ans) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(257): $allanswers[$ans->id] = $ans->answer; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(258): if (!in_array($ans->answer, $answers)) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(259): $answers[$ans->id] = $ans->answer; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(268): $responses[$subquestionid] = $answerids[$allanswers[$responses[$subquestionid]]]; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(271): foreach ($correctanswers as $subquestionid => $ignored) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(272): $correctanswers[$subquestionid] = $answerids[$allanswers[$correctanswers[$subquestionid]]]; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(275): // Shuffle the answers C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(276): $answers = draw_rand_array($answers, count($answers)); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(300): if (isset($correctanswers[$subquestion->id]) C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(301): and ($correctanswers[$subquestion->id] == $response)) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(313): $a->control = choose_from_menu($answers, $menuname, $response, 'choose', C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(322): // && !empty($subquestion->options->answers[$responses[$key]]->feedback)) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(323): // print_comment($subquestion->options->answers[$responses[$key]]->feedback); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(336): // Prepare an array to help when disambiguating equal answers. C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(339): $ans = reset($subquestion->options->answers); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(350): if ($response && !array_key_exists($response, $sub->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(352): // two answers with the same text, but different ids, C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(354): $expected_answer = reset($sub->options->answers); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(359): if (array_key_exists($response, $sub->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(360): $sumgrade += $sub->options->answers[$response]->fraction; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(396): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(403): $answers[$aid] = $r; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(409): $result->responses = $answers; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(414): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(421): $answers[$subqid] = array($answer->id =>$r); C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(425): return $answers; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(435): if (isset($sub->options->answers[$code])) { C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(436): $results[$ind] = $subquestions[$ind]->questiontext . ": " . $sub->options->answers[$code]->answer; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(766): $form->shuffleanswers = 1; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(767): $form->noanswers = 3; C:\moodle\moodle\site\moodle_head\question\type\match\questiontype.php(769): $form->subanswers = array('feline', 'canine', 'bovine'); Trouvé 'answers' 59 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php' : C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(32): $countanswers = count($this->question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(34): $countanswers = 0; C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(37): $repeatsatstart = (QUESTION_NUMANS_START > ($countanswers + QUESTION_NUMANS_ADD))? C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(38): QUESTION_NUMANS_START : ($countanswers + QUESTION_NUMANS_ADD); C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(40): $repeatsatstart = $countanswers; C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(45): $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmorechoiceblanks', 'qtype_multichoice')); C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(50): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(51): if (count($answers)) { C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(53): foreach ($answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(71): $answers = $data['answer']; C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(77): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\missingtype\edit_missingtype_form.php(95): $errors['answer[0]'] = get_string('notenoughanswers', 'qtype_multichoice', 1); Trouvé 'answers' 15 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\missingtype\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\missingtype\questiontype.php(35): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\missingtype\questiontype.php(49): if ($answers) { C:\moodle\moodle\site\moodle_head\question\type\missingtype\questiontype.php(50): foreach ($answers as $answer) { Trouvé 'answers' 4 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(31): // Get relevant data indexed by positionkey from the multianswers table C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(278): $answers = &$wrapped->options->answers; C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(279): // $correctanswers = $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $state); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(297): if ($correctanswers = $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $testedstate)) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(300): if ($correctanswers) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(301): foreach ($correctanswers as $ca) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(308): if (isset($answers[$ca])){ C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(309): $correctanswer .= $delimiter.$answers[$ca]->answer; C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(332): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(341): if (isset($answers[$response])) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(342): $chosenanswer = clone($answers[$response]); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(350): // answers are highlighted red C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(388): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(428): foreach ($answers as $snanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(444): foreach ($answers as $mcanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(549): $multianswers = get_records("question_multianswer","question",$question,"id"); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(550): //If there are multianswers C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(551): if ($multianswers) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(552): //Print multianswers header C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(553): $status = fwrite ($bf,start_tag("MULTIANSWERS",$level,true)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(555): foreach ($multianswers as $multianswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(563): //Print multianswers footer C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(564): $status = fwrite ($bf,end_tag("MULTIANSWERS",$level,true)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(565): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(566): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(582): //Get the multianswers array C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(583): $multianswers = $info['#']['MULTIANSWERS']['0']['#']['MULTIANSWER']; C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(584): //Iterate over multianswers C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(585): for($i = 0; $i < sizeof($multianswers); $i++) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(586): $mul_info = $multianswers[$i]; C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(615): //We have the answers field recoded to its new ids C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(645): //Get the multianswers array C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(646): $multianswers = $info['#']['MULTIANSWERS']['0']['#']['MULTIANSWER']; C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(647): //Iterate over multianswers C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(648): for($i = 0; $i < sizeof($multianswers); $i++) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(649): $mul_info = $multianswers[$i]; C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(656): $multianswer->answers = backup_todb($mul_info['#']['ANSWERS']['0']['#']); C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(694): //The answer is a comma separated list of hypen separated sequence number and answers. We may have to recode the answers C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(717): if (!$ans = backup_getid($restore->backup_unique_code,"question_answers",$answer)) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(801): // for identifying numerical answers in ANSWER_ALTERNATIVE_REGEX_ANSWER C:\moodle\moodle\site\moodle_head\question\type\multianswer\regexpquestiontype.php(872): $wrapped->shuffleanswers = 1; Trouvé 'answers' 46 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php' : C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php(116): foreach ($wrapped->options->answers as $subanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php(121): // Special for numerical answers: C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php(193): $this->_form->setElementError($prefix.'answer[0]' , get_string('notenoughanswers', 'qtype_multichoice', 2)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php(195): $this->_form->setElementError($prefix.'answer[0]' , get_string('notenoughanswers', 'quiz', 1)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php(250): $errors[$prefix.'answer[0]']= get_string('notenoughanswers', 'qtype_multichoice', 2); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formgenerator.php(252): $errors[$prefix.'answer[0]'] = get_string('notenoughanswers', 'quiz', 1); Trouvé 'answers' 6 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php' : C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php(123): foreach ($wrapped->options->answers as $subanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php(128): // Special for numerical answers: C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php(211): $this->_form->setElementError($prefix.'answer[0]' , get_string('notenoughanswers', 'qtype_multichoice', 2)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php(213): $this->_form->setElementError($prefix.'answer[0]' , get_string('notenoughanswers', 'quiz', 1)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php(271): $errors[$prefix.'answer[0]']= get_string('notenoughanswers', 'qtype_multichoice', 2); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_formtotalgrade.php(273): $errors[$prefix.'answer[0]'] = get_string('notenoughanswers', 'quiz', 1); Trouvé 'answers' 6 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php' : C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php(119): foreach ($wrapped->options->answers as $subanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php(124): // Special for numerical answers: C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php(207): $this->_form->setElementError($prefix.'answer[0]' , get_string('notenoughanswers', 'qtype_multichoice', 2)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php(209): $this->_form->setElementError($prefix.'answer[0]' , get_string('notenoughanswers', 'quiz', 1)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php(264): $errors[$prefix.'answer[0]']= get_string('notenoughanswers', 'qtype_multichoice', 2); C:\moodle\moodle\site\moodle_head\question\type\multianswer\edit_multianswer_form.php(266): $errors[$prefix.'answer[0]'] = get_string('notenoughanswers', 'quiz', 1); Trouvé 'answers' 6 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(44): // Get relevant data indexed by positionkey from the multianswers table C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(327): $answers = &$wrapped->options->answers; C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(328): // $correctanswers = $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $state); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(345): if ($correctanswers = $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $testedstate)) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(348): if ($correctanswers) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(349): foreach ($correctanswers as $ca) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(356): if (isset($answers[$ca])){ C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(357): $correctanswer .= $delimiter.$answers[$ca]->answer; C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(378): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(387): if (isset($answers[$response])) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(388): $chosenanswer = clone($answers[$response]); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(396): // answers are highlighted red C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(434): foreach ($answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(474): foreach ($answers as $mcanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(500): foreach ($answers as $mcanswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(687): $multianswers = $DB->get_records("question_multianswer",array("question" => $question),"id"); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(688): //If there are multianswers C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(689): if ($multianswers) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(690): //Print multianswers header C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(691): $status = fwrite ($bf,start_tag("MULTIANSWERS",$level,true)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(693): foreach ($multianswers as $multianswer) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(701): //Print multianswers footer C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(702): $status = fwrite ($bf,end_tag("MULTIANSWERS",$level,true)); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(703): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(704): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(721): //Get the multianswers array C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(722): $multianswers = $info['#']['MULTIANSWERS']['0']['#']['MULTIANSWER']; C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(723): //Iterate over multianswers C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(724): for($i = 0; $i < sizeof($multianswers); $i++) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(725): $mul_info = $multianswers[$i]; C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(754): //We have the answers field recoded to its new ids C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(785): //Get the multianswers array C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(786): $multianswers = $info['#']['MULTIANSWERS']['0']['#']['MULTIANSWER']; C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(787): //Iterate over multianswers C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(788): for($i = 0; $i < sizeof($multianswers); $i++) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(789): $mul_info = $multianswers[$i]; C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(796): $multianswer->answers = backup_todb($mul_info['#']['ANSWERS']['0']['#']); C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(835): //The answer is a comma separated list of hypen separated sequence number and answers. We may have to recode the answers C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(858): if (!$ans = backup_getid($restore->backup_unique_code,"question_answers",$answer)) { C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(943): // for identifying numerical answers in ANSWER_ALTERNATIVE_REGEX_ANSWER C:\moodle\moodle\site\moodle_head\question\type\multianswer\questiontype.php(1037): $wrapped->shuffleanswers = 1; Trouvé 'answers' 46 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php' : C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(24): $menu = array(get_string('answersingleno', 'qtype_multichoice'), get_string('answersingleyes', 'qtype_multichoice')); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(28): $mform->addElement('advcheckbox', 'shuffleanswers', get_string('shuffleanswers', 'qtype_multichoice'), null, null, array(0,1)); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(29): $mform->setHelpButton('shuffleanswers', array('multichoiceshuffle', get_string('shuffleanswers','qtype_multichoice'), 'qtype_multichoice')); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(30): $mform->setDefault('shuffleanswers', 1); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(40): /* $mform->addElement('static', 'answersinstruct', get_string('choices', 'qtype_multichoice'), get_string('fillouttwochoices', 'qtype_multichoice')); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(41): $mform->closeHeaderBefore('answersinstruct'); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(53): $countanswers = count($this->question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(55): $countanswers = 0; C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(58): $repeatsatstart = max(5, QUESTION_NUMANS_START, $countanswers + QUESTION_NUMANS_ADD); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(60): $repeatsatstart = $countanswers; C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(65): $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmorechoiceblanks', 'qtype_multichoice')); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(85): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(86): if (count($answers)) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(88): foreach ($answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(97): $default_values['shuffleanswers'] = $question->options->shuffleanswers; C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(112): $answers = $data['answer']; C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(118): foreach ($answers as $key => $answer){ C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(136): $errors['answer[0]'] = get_string('notenoughanswers', 'qtype_multichoice', 2); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(137): $errors['answer[1]'] = get_string('notenoughanswers', 'qtype_multichoice', 2); C:\moodle\moodle\site\moodle_head\question\type\multichoice\edit_multichoice_form.php(139): $errors['answer[1]'] = get_string('notenoughanswers', 'qtype_multichoice', 2); Trouvé 'answers' 27 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(17): function has_html_answers() { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(30): list ($usql, $params) = $DB->get_in_or_equal(explode(',', $question->options->answers)); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(31): if (!$question->options->answers = $DB->get_records_select('question_answers', "id $usql", $params, 'id')) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(32): notify('Error: Missing question answers for multichoice question'.$question->id.'!'); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(42): if (!$oldanswers = $DB->get_records("question_answers", array("question" => $question->id), "id ASC")) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(43): $oldanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(46): // following hack to check at least two answers exist C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(53): $answercount += count($oldanswers); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(54): if ($answercount < 2) { // check there are at lest 2 answers for multiple choice C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(55): $result->notice = get_string("notenoughanswers", "qtype_multichoice", "2"); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(59): // Insert all the new answers C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(64): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(68): if ($answer = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(72): if (!$DB->update_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(82): if (!$answer->id = $DB->insert_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(87): $answers[] = $answer->id; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(106): $options->answers = implode(",",$answers); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(112): $options->shuffleanswers = $question->shuffleanswers; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(129): if (!empty($oldanswers)) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(130): foreach($oldanswers as $oa) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(131): $DB->delete_records('question_answers', array('id' => $oa->id)); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(168): 'return $val->id;'), $question->options->answers)); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(169): // Shuffle the answers if required C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(170): if (!empty($cmoptions->shuffleanswers) and !empty($question->options->shuffleanswers)) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(187): // answers) followed by a colon, followed by another comma separated C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(190): // E.g. 1,3,2,4:2,4 means that the answers were shown in the order C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(191): // 1, 3, 2 and then 4 and the answers 2 and 4 were checked. C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(194): if (false === $pos) { // No order of answers is given, so use the default C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(195): $state->options->order = array_keys($question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(196): } else { // Restore the order of the answers C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(202): // if multiple answers are allowed. For single answers the answer id is C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(203): // saved in $state->responses[''], whereas for the multiple answers case C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(233): // E.g. 1,3,2,4:2,4 means that the answers were shown in the order C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(234): // 1, 3, 2 and then 4 and the answers 2 and 4 were checked. C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(247): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(255): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(267): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(268): $correctanswers = $this->get_correct_responses($question, $state); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(281): get_string('multipleanswers', 'quiz'); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(285): $answer = &$answers[$aid]; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(360): $state->raw_grade = $question->options->answers[$response]->fraction; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(365): $state->raw_grade += $question->options->answers[$response]->fraction; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(385): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(389): if (!empty($answers[$rid])) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(390): $responses[] = $answers[$rid]->answer; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(411): foreach ($question->options->answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(414): return $totalfraction / count($question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(436): fwrite ($bf,full_tag("ANSWERS",$level+1,false,$multichoice->answers)); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(438): fwrite ($bf,full_tag("SHUFFLEANSWERS",$level+1,false,$multichoice->shuffleanswers)); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(446): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(447): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(475): $multichoice->answers = backup_todb($mul_info['#']['ANSWERS']['0']['#']); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(477): $multichoice->shuffleanswers = isset($mul_info['#']['SHUFFLEANSWERS']['0']['#'])?backup_todb($mul_info['#']['SHUFFLEANSWERS']['0']['#']):''; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(499): //We have to recode the answers field (a list of answers id) C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(501): $answers_field = ""; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(503): $tok = strtok($multichoice->answers,","); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(506): $answer = backup_getid($restore->backup_unique_code,"question_answers",$tok); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(509): $answers_field .= $answer->new_id; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(512): $answers_field .= ",".$answer->new_id; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(518): //We have the answers field recoded to its new ids C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(519): $multichoice->answers = $answers_field; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(547): if (false === $pos) { // No order of answers is given, so use the default C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(559): $answer = backup_getid($restore->backup_unique_code,"question_answers",$oldansid); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(569): $answer = backup_getid($restore->backup_unique_code,"question_answers",$oldansid); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(658): // find links in the answers table. C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(662): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(677): // We need to use a separate object, because in load_question_options, $question->options->answers C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(692): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(695): if (!$DB->update_record('question_answers', $answer)){ C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(696): print_error('Couldn\'t update \'question_answers\' record '.$answer->id); C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(714): $form->shuffleanswers = 1; C:\moodle\moodle\site\moodle_head\question\type\multichoice\questiontype.php(716): $form->noanswers = 3; Trouvé 'answers' 87 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php' : C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(45): $countanswers = count($this->question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(47): $countanswers = 0; C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(50): $repeatsatstart = (QUESTION_NUMANS_START > ($countanswers + 1))? C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(51): QUESTION_NUMANS_START : ($countanswers + 1); C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(53): $repeatsatstart = $countanswers; C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(55): $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', 2, get_string('addmoreanswerblanks', 'qtype_numerical')); C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(126): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(127): if (count($answers)) { C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(129): foreach ($answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(163): // Check the answers. C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(166): $answers = $data['answer']; C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(167): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\numerical\edit_numerical_form.php(183): $errors['answer[0]'] = get_string('notenoughanswers', 'qtype_numerical'); Trouvé 'answers' 16 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(38): // Get the question answers and their respective tolerances C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(43): if (!$question->options->answers = $DB->get_records_sql( C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(45): "FROM {question_answers} a, " . C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(58): foreach($question->options->answers as $key => $val) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(62): $question->options->answers[$key]->answer = C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(96): * Save the units and the answers associated with this question. C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(101): if (!$oldanswers = $DB->get_records('question_answers', array('question' => $question->id), 'id ASC')) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(102): $oldanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(130): // Insert all the new answers C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(151): if ($oldanswer = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(153): if (! $DB->update_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(158): if (! $answer->id = $DB->insert_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(193): if (!empty($oldanswers)) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(194): foreach($oldanswers as $oa) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(195): $DB->delete_records('question_answers', array('id' => $oa->id)); C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(291): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(292): foreach($answers as $aid => $answer) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(312): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(314): if (is_array($question->options->answers)) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(315): foreach ($question->options->answers as $aid=>$answer) { C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(328): $answers[$aid] = $r; C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(332): $result->responses = $answers; C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(455): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(456): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(491): $answer = backup_getid($restore->backup_unique_code,"question_answers",$numerical->answer); C:\moodle\moodle\site\moodle_head\question\type\numerical\questiontype.php(534): $form->noanswers = 3; Trouvé 'answers' 28 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(142): // Now we overwrite the $question->options->answers field to only C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(144): // take all answers into account (i.e. put them all into the C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(147): foreach ($wrappedquestion->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(149): unset($wrappedquestion->options->answers[$answer->id]); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(166): // Shuffle the answers (Do this always because this is a random question type) C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(209): // Now we overwrite the $question->options->answers field to only C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(211): // take all answers into account (i.e. put them all into the C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(214): foreach ($wrappedquestions[$wqid]->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(216): unset($wrappedquestions[$wqid]->options->answers[$answer->id]); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(265): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(269): foreach($answer->options->answers as $ans ){ C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(275): $answers[$aid] = $r; C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(281): $result->responses = $answers; C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(286): * method is not passed a state object. It is the possible answers to a C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(289): * @return array of possible answers. C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(293): static $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(294): if (!isset($answers[$question->id])){ C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(309): // Now we overwrite the $question->options->answers field to only C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(311): // take all answers into account (i.e. put them all into the C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(314): foreach ($wrappedquestion->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(316): unset($wrappedquestion->options->answers[$answer->id]); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(322): $answers[$question->id] = array(); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(326): $ans = array_shift($answer->options->answers); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(331): $answers[$question->id][$subqid] = array($ans->id => $r); C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(336): return $answers[$question->id]; C:\moodle\moodle\site\moodle_head\question\type\randomsamatch\questiontype.php(439): if (!$ans = backup_getid($restore->backup_unique_code,"question_answers",$answer_id)) { Trouvé 'answers' 26 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php' : C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(25): $mform->addElement('static', 'answersinstruct', get_string('correctanswers', 'quiz'), get_string('filloutoneanswer', 'quiz')); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(26): $mform->closeHeaderBefore('answersinstruct'); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(38): $countanswers = count($this->question->options->answers); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(40): $countanswers = 0; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(43): $repeatsatstart = (QUESTION_NUMANS_START > ($countanswers + QUESTION_NUMANS_ADD))? C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(44): QUESTION_NUMANS_START : ($countanswers + QUESTION_NUMANS_ADD); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(46): $repeatsatstart = $countanswers; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(51): $this->repeat_elements($repeated, $repeatsatstart, $repeatedoptions, 'noanswers', 'addanswers', QUESTION_NUMANS_ADD, get_string('addmoreanswerblanks', 'qtype_shortanswer')); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(57): $answers = $question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(58): if (count($answers)) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(60): foreach ($answers as $answer){ C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(74): $answers = $data['answer']; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(77): foreach ($answers as $key => $answer) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\edit_shortanswer_form.php(90): $errors['answer[0]'] = get_string('notenoughanswers', 'quiz', 1); Trouvé 'answers' 18 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(38): if (!$question->options->answers = $DB->get_records('question_answers', array('question' => $question->id), 'id ASC')) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(39): notify('Error: Missing question answers for shortanswer question ' . $question->id . '!'); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(49): if (!$oldanswers = $DB->get_records('question_answers', array('question' => $question->id), 'id ASC')) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(50): $oldanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(53): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(56): // Insert all the new answers C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(64): if ($oldanswer = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(69): if (!$DB->update_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(79): if (!$answer->id = $DB->insert_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(84): $answers[] = $answer->id; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(91): $options->answers = implode(",",$answers); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(100): $options->answers = implode(",",$answers); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(109): if (!empty($oldanswers)) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(110): foreach($oldanswers as $oa) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(111): $DB->delete_records('question_answers', array('id' => $oa->id)); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(169): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(189): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(192): foreach($answers as $aid => $answer) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(257): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(258): foreach($answers as $aid => $answer) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(277): $shortanswers = $DB->get_records('question_shortanswer', array('question' => $question), 'id ASC'); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(278): //If there are shortanswers C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(279): if ($shortanswers) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(281): foreach ($shortanswers as $shortanswer) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(284): fwrite ($bf,full_tag("ANSWERS",$level+1,false,$shortanswer->answers)); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(288): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(289): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(306): //Get the shortanswers array C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(307): $shortanswers = $info['#']['SHORTANSWER']; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(309): //Iterate over shortanswers C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(310): for($i = 0; $i < sizeof($shortanswers); $i++) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(311): $sho_info = $shortanswers[$i]; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(316): $shortanswer->answers = backup_todb($sho_info['#']['ANSWERS']['0']['#']); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(319): //We have to recode the answers field (a list of answers id) C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(321): $answers_field = ""; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(323): $tok = strtok($shortanswer->answers,","); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(326): $answer = backup_getid($restore->backup_unique_code,"question_answers",$tok); C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(329): $answers_field .= $answer->new_id; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(332): $answers_field .= ",".$answer->new_id; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(338): //We have the answers field recoded to its new ids C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(339): $shortanswer->answers = $answers_field; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(391): if ($correctanswers = $QTYPES[$question->qtype]->get_correct_responses($question, $state)) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(394): if ($correctanswers) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(395): foreach ($correctanswers as $ca) { C:\moodle\moodle\site\moodle_head\question\type\shortanswer\questiontype.php(470): $form->noanswers = 3; Trouvé 'answers' 55 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\shortanswer\simpletest\testquestiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\shortanswer\simpletest\testquestiontype.php(77): $question->options->answers = array( C:\moodle\moodle\site\moodle_head\question\type\shortanswer\simpletest\testquestiontype.php(104): $question->options->answers = array( C:\moodle\moodle\site\moodle_head\question\type\shortanswer\simpletest\testquestiontype.php(112): $question->options->answers[17]->fraction = 0; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\simpletest\testquestiontype.php(114): $question->options->answers[23]->fraction = 0; C:\moodle\moodle\site\moodle_head\question\type\shortanswer\simpletest\testquestiontype.php(116): $question->options->answers[29]->fraction = 0; Trouvé 'answers' 5 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\truefalse\edit_truefalse_form.php' : C:\moodle\moodle\site\moodle_head\question\type\truefalse\edit_truefalse_form.php(41): $trueanswer = $question->options->answers[$question->options->trueanswer]; C:\moodle\moodle\site\moodle_head\question\type\truefalse\edit_truefalse_form.php(44): $question->feedbackfalse = $question->options->answers[$question->options->falseanswer]->feedback; Trouvé 'answers' 2 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(23): if (!$oldanswers = $DB->get_records("question_answers", array("question" => $question->id), "id ASC")) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(24): $oldanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(28): if ($true = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(32): if (!$DB->update_record("question_answers", $true)) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(42): if (!$true->id = $DB->insert_record("question_answers", $true)) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(49): if ($false = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(53): if (!$DB->update_record("question_answers", $false)) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(63): if (!$false->id = $DB->insert_record("question_answers", $false)) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(70): if (!empty($oldanswers)) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(71): foreach($oldanswers as $oa) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(72): $DB->delete_records('question_answers', array('id' => $oa->id)); C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(110): // Load the answers C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(111): if (!$question->options->answers = $DB->get_records('question_answers', array('question' => $question->id), 'id ASC')) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(112): notify('Error: Missing question answers for truefalse question ' . $question->id . '!'); C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(133): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(160): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(161): $trueanswer = &$answers[$question->options->trueanswer]; C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(162): $falseanswer = &$answers[$question->options->falseanswer]; C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(188): if (isset($answers[$response])) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(208): if ($options->feedback and isset($answers[$response])) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(209): $chosenanswer = $answers[$response]; C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(217): if (isset($state->responses['']) && isset($question->options->answers[$state->responses['']])) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(218): $state->raw_grade = $question->options->answers[$state->responses['']]->fraction * $question->maxgrade; C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(232): if (isset($question->options->answers[$state->responses['']])) { C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(233): $responses[] = $question->options->answers[$state->responses['']]->answer; C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(272): //Now print question_answers C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(273): $status = question_backup_answers($bf,$preferences,$question); C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(308): $answer = backup_getid($restore->backup_unique_code,"question_answers",$truefalse->trueanswer); C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(314): $answer = backup_getid($restore->backup_unique_code,"question_answers",$truefalse->falseanswer); C:\moodle\moodle\site\moodle_head\question\type\truefalse\questiontype.php(344): $answer = backup_getid($restore->backup_unique_code,"question_answers",$state->answer); Trouvé 'answers' 33 fois. ---------------------------------------- Recherche de 'answers' dans 'C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php' : C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(15): include("expandregexp.php"); // to generate alternate correct answers from reg expressions in answers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(29): if (!$question->options->answers = get_records('question_answers', 'question', C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(31): notify('Error: Missing question answers!'); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(38): if (!$oldanswers = get_records("question_answers", "question", $question->id, "id ASC")) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(39): $oldanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(42): $answers = array(); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(46): // Insert all the new answers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(52): if ($oldanswer = array_shift($oldanswers)) { // Existing answer, so reuse it C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(57): if (!update_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(67): if (!$answer->id = insert_record("question_answers", $answer)) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(72): $answers[] = $answer->id; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(84): $options->answers = implode(",",$answers); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(93): $options->answers = implode(",",$answers); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(102): if (!empty($oldanswers)) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(103): foreach($oldanswers as $oa) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(104): delete_records('question_answers', 'id', $oa->id); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(127): // rewrite this function if more answers are needed C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(128): $correctanswers = $this->get_correct_responses($question, $state); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(196): foreach($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(211): if ($correctanswers) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(212): foreach ($correctanswers as $ca) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(234): //JR uncomment return false if you want real student answers displayed C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(236): $answers = &$question->options->answers; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(240): foreach($answers as $aid => $answer) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(262): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(325): // function to find whether student's response matches at least the beginning of one of the correct answers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(339): return null; // no need to generate alternate answers because no hint will be needed in non-adaptive mode C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(342): // generate alternative answers for answers with score > 0% C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(343): // this means that TEACHER MUST write answers with a > 0% grade as regexp generating alternative answers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(344): $correctanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(347): foreach ($question->options->answers as $answer) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(353): $correctanswers[] = $correctanswer; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(357): $correctanswers[] = $correctanswer; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(360): $alternateanswers = array(); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(361): $alternateanswersic = array(); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(363): foreach ($correctanswers as $thecorrectanswer) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(366): $alternateanswers[] = $firstcorrectanswer; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(374): $r = expand_regexp($correctanswer); // go to expand_regexp function to generate alternative answers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(377): $alternateanswersic[] = "$fraction $correctanswer (ignore case)"; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(379): $alternateanswersic = array_merge($alternateanswersic, $r); // ignorecase alternateanswers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(381): $alternateanswersic[] = "$fraction $r"; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(382): $alternateanswersic[] = "$r"; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(389): $alternateanswers[] = "$fraction $correctanswer"; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(390): $alternateanswers = array_merge($alternateanswers, $r); // normal alternateanswers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(392): $alternateanswers[] = "$fraction $r"; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(393): $alternateanswers[] = "$r"; C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(400): if (($ispreview) && ((sizeof($alternateanswersic) != 0) || (sizeof($alternateanswers) != 0))) { C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(402): echo(""); C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(404): // print alernate answers C:\moodle\moodle\site\moodle_head\question\type\regexp\questiontype.php(405): echo('