19 declare(strict_types=1);
37 $this->
addColumn($this->
lng->txt(
"question_id"),
"qid",
"");
38 $this->
addColumn($this->
lng->txt(
"question_title"),
"question_title",
"35%");
39 $this->
addColumn($this->
lng->txt(
"number_of_answers"),
"number_of_answers",
"15%");
41 $this->
addColumn($this->
lng->txt(
"file_uploads"),
"",
"20%");
44 $this->
setRowTemplate(
"tpl.table_results_by_question_row.html",
"components/ILIAS/Test");
49 protected function fillRow(array $a_set): void
51 if ($a_set[
'number_of_answers'] > 0) {
52 $this->tpl->setVariable(
"PRINT_ANSWERS", $a_set[
'output']);
55 $this->tpl->setVariable(
"QUESTION_ID", $a_set[
'qid']);
56 $this->tpl->setVariable(
"QUESTION_TITLE", $a_set[
'question_title']);
57 $this->tpl->setVariable(
"NUMBER_OF_ANSWERS", $a_set[
'number_of_answers']);
58 $this->tpl->setVariable(
"FILE_UPLOADS", $a_set[
'file_uploads']);
65 case 'number_of_answers':
setFormAction(string $a_form_action, bool $a_multipart=false)
TableGUI class for results by question.
setDefaultOrderField(string $a_defaultorderfield)
numericOrdering(string $a_field)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
Output class for assessment test evaluation.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(ilTestEvaluationGUI $parent_obj, string $parent_cmd="")
__construct(Container $dic, ilPlugin $plugin)
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)