You are here

public function ShortAnswerQuestion::load in Quiz 6.3

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

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

Overrides QuizQuestion::load

File

question_types/short_answer/short_answer.classes.inc, line 82
The main classes for the short answer question type.

Class

ShortAnswerQuestion
Implementation of QuizQuestion.

Code

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