public function QuizQuestionResponse::__construct in Quiz 6.5
Same name and namespace in other branches
- 6.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
- 6.3 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
- 6.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
- 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
- 7 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
- 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
- 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::__construct()
Create a new user response.
Parameters
$rid: The result ID for the user's result set. There is one result ID per time the user takes a quiz.
$question: The question node.
$answer: The answer (dependent on question type).
File
- question_types/
quiz_question/ quiz_question.core.inc, line 139 - 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 function __construct($rid, $question, $answer);