You are here

public function QuizQuestionResponse::getReportFormScore in OG Quiz 7

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 includes/og_quiz_question.php
Creates the report form for the admin pages, and for when a user gets feedback after answering questions.
1 method overrides QuizQuestionResponse::getReportFormScore()
LongAnswerResponse::getReportFormScore in includes/og_long_answer.php
Implementation of getReportFormScore

File

includes/og_quiz_question.php, line 1082
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(
    '#markup' => '<span class="quiz-report-score">' . $this
      ->getScore() . '</span>',
  );
}