You are here

public function TrueFalseQuestion::load in Quiz 6.3

Same name and namespace in other branches
  1. 6.6 question_types/truefalse/truefalse.classes.inc \TrueFalseQuestion::load()
  2. 6.5 question_types/quiz_question/quiz_question.truefalse.inc \TrueFalseQuestion::load()

Retrieve information about the question and add it to the node.

Overrides QuizQuestion::load

File

question_types/quiz_question/quiz_question.truefalse.inc, line 60
Defines the classes necessary for a True/False quiz.

Class

TrueFalseQuestion
Implementation of QuizQuestion.

Code

public function load() {
  $sql = 'SELECT correct_answer, feedback FROM {quiz_truefalse_node} WHERE nid = %d AND vid = %d';
  $result = db_fetch_object(db_query($sql, $this->node->nid, $this->node->vid));
  return $result;
}