You are here

public function QuizQuestionResponse::isValid in Quiz 7.6

Same name and namespace in other branches
  1. 6.4 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

2 calls to QuizQuestionResponse::isValid()
QuizQuestionResponse::toBareObject in question_types/quiz_question/quiz_question.core.inc
Represent the response as a stdClass object.
ScaleResponse::score in question_types/scale/scale.classes.inc
Implementation of score

File

question_types/quiz_question/quiz_question.core.inc, line 609
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;
}