function AbstractQuizQuestionResponse::getScore in Quiz 6.6
Same name and namespace in other branches
- 6.3 question_types/quiz_question/quiz_question.core.inc \AbstractQuizQuestionResponse::getScore()
- 6.5 question_types/quiz_question/quiz_question.core.inc \AbstractQuizQuestionResponse::getScore()
7 calls to AbstractQuizQuestionResponse::getScore()
- AbstractQuizQuestionResponse::getReport in question_types/
quiz_question/ quiz_question.core.inc - AbstractQuizQuestionResponse::isCorrect in question_types/
quiz_question/ quiz_question.core.inc - Check to see if the answer is marked as correct.
- AbstractQuizQuestionResponse::toBareObject in question_types/
quiz_question/ quiz_question.core.inc - LongAnswerResponse::isCorrect in question_types/
long_answer/ long_answer.classes.inc - Check to see if the answer is marked as correct.
- ShortAnswerResponse::isCorrect in question_types/
short_answer/ short_answer.classes.inc - Check to see if the answer is marked as correct.
File
- question_types/
quiz_question/ quiz_question.core.inc, line 248 - Classes used in the Quiz Question module.
Class
- AbstractQuizQuestionResponse
- A base implementation of QuizQuestionResponse.
Code
function getScore() {
if (!isset($this->score)) {
$this->score = $this
->score();
}
return $this->score;
}