You are here

public function QuizQuestionResponse::isValid in Quiz 6.4

Same name and namespace in other branches
  1. 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isValid()
  2. 7 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isValid()
  3. 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isValid()

Validates response from a quiz taker. If the response isn't valid the quiz taker won't be allowed to proceed.

Return value

True if the response is valid. False otherwise

1 call to QuizQuestionResponse::isValid()
QuizQuestionResponse::toBareObject in question_types/quiz_question/quiz_question.core.inc
Represent the response as a stdClass object.
6 methods override QuizQuestionResponse::isValid()
LongAnswerResponse::isValid in question_types/long_answer/long_answer.classes.inc
Implementation of isValid
MatchingResponse::isValid in question_types/matching/matching.classes.inc
Implementation of isValid
MultichoiceResponse::isValid in question_types/multichoice/multichoice.classes.inc
Implementation of isValid
ScaleResponse::isValid in question_types/scale/scale.classes.inc
Validates response from a quiz taker. If the response isn't valid the quiz taker won't be allowed to proceed.
ShortAnswerResponse::isValid in question_types/short_answer/short_answer.classes.inc
Implementation of isValid

... See full list

File

question_types/quiz_question/quiz_question.core.inc, line 764
Classes used in the Quiz Question module.

Class

QuizQuestionResponse
Each question type must store its own response data and be able to calculate a score for that data.

Code

public function isValid() {
  return TRUE;
}