45 $this->
setId(
'qst_usage_' . $question->
getId());
49 $this->
setRowTemplate(
'tpl.il_as_qpl_question_cumulated_stats_table_row.html',
'components/ILIAS/TestQuestionPool');
55 $this->
setTitle($this->
lng->txt(
'question_cumulated_statistics'));
82 $total_of_answers = $this->question->getTotalAnswers();
84 if ($total_of_answers) {
86 'result' => $this->
lng->txt(
'qpl_assessment_total_of_answers'),
87 'value' => $total_of_answers,
92 'result' => $this->
lng->txt(
'qpl_assessment_total_of_right_answers'),
93 'value' => $this->questionrepository->getFractionOfReachedToReachablePointsTotal($this->question->getId()) * 100.0,
109 if (
'value' == $a_field) {
121 $this->tpl->setVariable(
'VAL_RESULT', $a_set[
'result']);
122 $this->tpl->setVariable(
'VAL_VALUE', $a_set[
'is_percent'] ? sprintf(
"%2.2f", $a_set[
'value'])
123 .
' %' : $a_set[
'value']);
setNoEntriesText(string $a_text)
__construct( $controller, $cmd, $template_context, assQuestion $question, protected GeneralQuestionPropertiesRepository $questionrepository)
numericOrdering(string $a_field)
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="")
Class ilQuestionUsagesTableGUI.
__construct(Container $dic, ilPlugin $plugin)
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)