You are here

public function LongAnswerQuestion::load in Quiz 6.3

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

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

Overrides QuizQuestion::load

File

question_types/long_answer/long_answer.classes.inc, line 56
Long answer classes.

Class

LongAnswerQuestion
Implementation of QuizQuestion.

Code

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