You are here

public function QuizQuestionResponseBroken::__construct in Quiz 7.5

Create a new user response.

Parameters

int $result_id: The result ID for the user's result set. There is one result ID per time the user takes a quiz.

stdClass $question_node: The question node.

mixed $answer: The answer (dependent on question type).

Overrides QuizQuestionResponse::__construct

File

question_types/quiz_question/quiz_question.core.inc, line 1010
Classes used in the Quiz Question module.

Class

QuizQuestionResponseBroken

Code

public function __construct($result_id, stdClass $question_node, $answer = NULL) {
  $this->quizQuestion = _quiz_question_get_instance($question_node);
}