abstract public function QuizQuestionResponse::score in Quiz 7
Same name and namespace in other branches
- 6.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
- 6.3 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
- 6.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
- 6.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
- 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
- 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
- 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::score()
Calculate the score for the response.
1 call to QuizQuestionResponse::score()
- QuizQuestionResponse::getScore in question_types/
quiz_question/ quiz_question.core.inc - Returns stored score if it exists, if not the score is calculated and returned.
7 methods override QuizQuestionResponse::score()
- LongAnswerResponse::score in question_types/
long_answer/ long_answer.classes.inc - Implementation of score
- MatchingResponse::score in question_types/
matching/ matching.classes.inc - Implementation of score
- MultichoiceResponse::score in question_types/
multichoice/ multichoice.classes.inc - Implementation of score
- QuizDirectionsResponse::score in question_types/
quiz_directions/ quiz_directions.classes.inc - Implementation of score
- ScaleResponse::score in question_types/
scale/ scale.classes.inc - Implementation of score
File
- question_types/
quiz_question/ quiz_question.core.inc, line 929 - Classes used in the Quiz Question module.
Class
- QuizQuestionResponse
- Each question type must store its own response data and be able to calculate a score for that data.
Code
public abstract function score();