public function QuizDirectionsResponse::__construct in Quiz 6.3
Same name and namespace in other branches
- 6.6 question_types/quiz_directions/quiz_directions.classes.inc \QuizDirectionsResponse::__construct()
- 6.5 question_types/quiz_directions/quiz_directions.classes.inc \QuizDirectionsResponse::__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).
Overrides QuizQuestionResponse::__construct
File
- question_types/
quiz_directions/ quiz_directions.classes.inc, line 89 - quiz_directions.classes
Class
- QuizDirectionsResponse
- Class that describes a "Directions question response". For the most part, no real scoring takes place for a direction node. However, there are a few behind-the-scenes tricks that are done here to make the quiz-taking process a little easier.
Code
public function __construct($rid, $question, $answer = NULL) {
$this->answer = $answer;
$this->question = $question;
$this->rid = $rid;
}