You are here

public function QuizQuestionResponse::isEvaluated in Quiz 7.6

Same name and namespace in other branches
  1. 6.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()
  2. 6.3 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()
  3. 6.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()
  4. 6.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()
  5. 7 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()
  6. 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()
  7. 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::isEvaluated()

Indicate whether the response has been evaluated (scored) yet. Questions that require human scoring (e.g. essays) may need to manually toggle this.

4 calls to QuizQuestionResponse::isEvaluated()
QuizQuestionResponse::getFeedback in question_types/quiz_question/quiz_question.core.inc
Returns a renderable array of question feedback.
QuizQuestionResponse::getReport in question_types/quiz_question/quiz_question.core.inc
Get data suitable for reporting a user's score on the question. This expects an object with the following attributes:
QuizQuestionResponse::getReportFormScore in question_types/quiz_question/quiz_question.core.inc
Implementation of getReportFormScore
QuizQuestionResponse::toBareObject in question_types/quiz_question/quiz_question.core.inc
Represent the response as a stdClass object.

File

question_types/quiz_question/quiz_question.core.inc, line 526
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 isEvaluated() {
  return (bool) $this->evaluated;
}