39 $this->
setId(
'qst_usage_' . $question->
getId());
43 $this->
setRowTemplate(
'tpl.il_as_qpl_question_cumulated_stats_table_row.html',
'Modules/TestQuestionPool');
49 $this->
setTitle($this->
lng->txt(
'question_cumulated_statistics'));
76 $total_of_answers = $this->question->getTotalAnswers();
78 if ($total_of_answers) {
80 'result' => $this->
lng->txt(
'qpl_assessment_total_of_answers'),
81 'value' => $total_of_answers,
86 'result' => $this->
lng->txt(
'qpl_assessment_total_of_right_answers'),
87 'value' => $this->questioninfo->getFractionOfReachedToReachablePointsTotal($this->question->getId()) * 100.0,
103 if (
'value' == $a_field) {
115 $this->tpl->setVariable(
'VAL_RESULT', $a_set[
'result']);
116 $this->tpl->setVariable(
'VAL_VALUE', $a_set[
'is_percent'] ? sprintf(
"%2.2f", $a_set[
'value'])
117 .
' %' : $a_set[
'value']);
setNoEntriesText(string $a_text)
Abstract basic class which is to be extended by the concrete assessment question type classes...
Class ChatMainBarProvider .
numericOrdering(string $a_field)
__construct($controller, $cmd, $template_context, assQuestion $question, \ILIAS\TestQuestionPool\QuestionInfoService $questioninfo)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
disable(string $a_module_name)
ILIAS TestQuestionPool QuestionInfoService $questioninfo