public function QuizQuestionResponse::getReportFormScore in Quiz 8.4
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/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php - Creates the report form for the admin pages, and for when a user gets feedback after answering questions.
3 methods override QuizQuestionResponse::getReportFormScore()
- ClozeResponse::getReportFormScore in question_types/
cloze/ lib/ Drupal/ cloze/ ClozeResponse.php - Implementation of getReportFormScore()
- LongAnswerResponse::getReportFormScore in question_types/
long_answer/ lib/ Drupal/ long_answer/ LongAnswerResponse.php - Implementation of getReportFormScore
- ShortAnswerResponse::getReportFormScore in question_types/
short_answer/ lib/ Drupal/ short_answer/ ShortAnswerResponse.php - Implementation of getReportFormScore
File
- question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php, line 278
Class
Namespace
Drupal\quiz_questionCode
public function getReportFormScore($showpoints = TRUE, $showfeedback = TRUE, $allow_scoring = FALSE) {
return array(
'#markup' => '<span class="quiz-report-score">' . $this
->getScore() . '</span>',
);
}