public function AbstractQuizQuestionResponse::getReport in Quiz 6.6
Same name and namespace in other branches
- 6.3 question_types/quiz_question/quiz_question.core.inc \AbstractQuizQuestionResponse::getReport()
- 6.5 question_types/quiz_question/quiz_question.core.inc \AbstractQuizQuestionResponse::getReport()
File
- question_types/
quiz_question/ quiz_question.core.inc, line 265 - Classes used in the Quiz Question module.
Class
- AbstractQuizQuestionResponse
- A base implementation of QuizQuestionResponse.
Code
public function getReport() {
// Basically, we encode internal information in a
// legacy array format for Quiz.
$report = array(
'answer_id' => 0,
// <-- Stupid vestige of multichoice.
'answer' => $this->answer,
'is_evaluated' => $this
->isEvaluated(),
'is_correct' => $this
->isCorrect(),
'score' => $this
->getScore(),
'question_vid' => $this->question->vid,
'question_nid' => $this->question->nid,
'result_id' => $this->rid,
);
return $report;
}