You are here

public function QuizQuestionResponse::saveResult in Quiz 6.4

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

Saves the quiz result. This is not used when a question is skipped!

File

question_types/quiz_question/quiz_question.core.inc, line 938
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 saveResult() {
  $this->is_skipped = FALSE;
  $this
    ->save();
}