You are here

public function ShortAnswerResponse::getResponse in Quiz 6.3

Same name and namespace in other branches
  1. 6.6 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()
  2. 6.4 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()
  3. 6.5 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()
  4. 7.6 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()
  5. 7 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()
  6. 7.4 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()
  7. 7.5 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getResponse()

Get the user's response.

Overrides QuizQuestionResponse::getResponse

1 call to ShortAnswerResponse::getResponse()
ShortAnswerResponse::score in question_types/short_answer/short_answer.classes.inc
Calculate the score for the response. This MUST set the $score instance variable.

File

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

Class

ShortAnswerResponse
The short answer question response class.

Code

public function getResponse() {
  return $this->answer;
}