19 declare(strict_types=1);
39 $this->
setStyle(
'table',
'fullwidth');
45 $this->
setRowTemplate(
"tpl.il_as_tst_pass_overview_tblrow.html",
"components/ILIAS/Test");
53 $this->
addColumn($this->
lng->txt(
"scored_pass"),
'',
'150');
55 $this->
addColumn($this->
lng->txt(
"date"),
'finishdate',
'');
56 $this->
addColumn($this->
lng->txt(
"tst_answered_questions"),
'answered_questions',
'');
57 $this->
addColumn($this->
lng->txt(
"tst_reached_points"),
'reached_points',
'');
58 $this->
addColumn($this->
lng->txt(
"tst_percent_solved"),
'percentage',
'');
70 public function fillRow(array $a_set): void
72 $this->
ctrl->setParameter($this->parent_obj,
'active_id', $a_set[
'active_id']);
73 $this->
ctrl->setParameter($this->parent_obj,
'pass', $a_set[
'pass']);
75 if ($a_set[
'is_scored_pass']) {
76 $this->tpl->setCurrentBlock(
'selected_pass');
77 $this->tpl->touchBlock(
'selected_pass');
78 $this->tpl->parseCurrentBlock();
79 $this->tpl->setVariable(
'CSS_ROW',
'tblrowmarked');
82 $this->tpl->setVariable(
"PASS_NR", $a_set[
'pass'] + 1);
84 $this->tpl->setVariable(
"PASS_ANSWERED_QUESTIONS", $a_set[
'answered_questions'] .
" " . strtolower($this->
lng->txt(
"of")) .
" " . $a_set[
'total_questions']);
85 $this->tpl->setVariable(
"PASS_REACHED_POINTS", $a_set[
'reached_points'] .
" " . strtolower($this->
lng->txt(
"of")) .
" " . $a_set[
'max_points']);
86 $this->tpl->setVariable(
"PASS_REACHED_PERCENTAGE", sprintf(
"%.2f%%", $a_set[
'percentage']));
88 $this->tpl->setVariable(
"TXT_SHOW_PASS", $this->
lng->txt(
'tst_edit_scoring'));
89 $this->tpl->setVariable(
"HREF_SHOW_PASS", $this->
ctrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setFormName(string $a_name="")
__construct(TestScoringByParticipantGUI $parent_obj, string $parent_cmd)
setStyle(string $a_element, string $a_style)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
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)
setPrefix(string $a_prefix)