You are here

public function QuizQuestionResponse::isValid in OG Quiz 7

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 includes/og_quiz_question.php
Represent the response as a stdClass object.
1 method overrides QuizQuestionResponse::isValid()
LongAnswerResponse::isValid in includes/og_long_answer.php
Implementation of isValid

File

includes/og_quiz_question.php, line 957
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;
}