You are here

public function QuizQuestionResponse::getReportFormScore in Quiz 6.4

Same name and namespace in other branches
  1. 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormScore()
  2. 7 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormScore()
  3. 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormScore()
  4. 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormScore()

Get the score part of the report form

Parameters

$showpoints:

$showfeedback:

$allow_scoring:

Return value

FAPI form array holding the score part

1 call to QuizQuestionResponse::getReportFormScore()
QuizQuestionResponse::getReportForm in question_types/quiz_question/quiz_question.core.inc
Creates the report form for the admin pages, and for when a user gets feedback after answering questions.
2 methods override QuizQuestionResponse::getReportFormScore()
LongAnswerResponse::getReportFormScore in question_types/long_answer/long_answer.classes.inc
Implementation of getReportFormScore
ShortAnswerResponse::getReportFormScore in question_types/short_answer/short_answer.classes.inc
Implementation of getReportFormScore

File

question_types/quiz_question/quiz_question.core.inc, line 893
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 getReportFormScore($showpoints = TRUE, $showfeedback = TRUE, $allow_scoring = FALSE) {
  return array(
    '#type' => 'markup',
    '#value' => '<span class="quiz-report-score">' . $this
      ->getScore() . '</span>',
  );
}