You are here

public function QuizQuestionResponse::canReview in Quiz 7.6

Same name and namespace in other branches
  1. 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::canReview()

Can the quiz taker view the requested review?

1 call to QuizQuestionResponse::canReview()
QuizQuestionResponse::getFeedback in question_types/quiz_question/quiz_question.core.inc
Returns a renderable array of question feedback.

File

question_types/quiz_question/quiz_question.core.inc, line 847
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 canReview($option) {
  $can_review =& drupal_static(__METHOD__, array());
  if (!isset($can_review[$option])) {
    $quiz_result = quiz_result_load($this->result_id);
    $can_review[$option] = quiz_feedback_can_review($option, $quiz_result);
  }
  return $can_review[$option];
}