You are here

public function QuizDirectionsResponse::__construct in Quiz 6.6

Same name and namespace in other branches
  1. 6.3 question_types/quiz_directions/quiz_directions.classes.inc \QuizDirectionsResponse::__construct()
  2. 6.5 question_types/quiz_directions/quiz_directions.classes.inc \QuizDirectionsResponse::__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;
}