19 declare(strict_types=1);
37 $this->
setStyle(
'table',
'fullwidth');
43 $this->
setRowTemplate(
"tpl.il_as_tst_pass_overview_tblrow.html",
"Modules/Test");
51 $this->
addColumn($this->
lng->txt(
"scored_pass"),
'',
'150');
53 $this->
addColumn($this->
lng->txt(
"date"),
'finishdate',
'');
54 $this->
addColumn($this->
lng->txt(
"tst_answered_questions"),
'answered_questions',
'');
55 $this->
addColumn($this->
lng->txt(
"tst_reached_points"),
'reached_points',
'');
56 $this->
addColumn($this->
lng->txt(
"tst_percent_solved"),
'percentage',
'');
68 public function fillRow(array $a_set): void
70 $this->
ctrl->setParameter($this->parent_obj,
'active_id', $a_set[
'active_id']);
71 $this->
ctrl->setParameter($this->parent_obj,
'pass', $a_set[
'pass']);
73 if ($a_set[
'is_scored_pass']) {
74 $this->tpl->setCurrentBlock(
'selected_pass');
75 $this->tpl->touchBlock(
'selected_pass');
76 $this->tpl->parseCurrentBlock();
77 $this->tpl->setVariable(
'CSS_ROW',
'tblrowmarked');
80 $this->tpl->setVariable(
"PASS_NR", $a_set[
'pass'] + 1);
82 $this->tpl->setVariable(
"PASS_ANSWERED_QUESTIONS", $a_set[
'answered_questions'] .
" " . strtolower($this->
lng->txt(
"of")) .
" " . $a_set[
'total_questions']);
83 $this->tpl->setVariable(
"PASS_REACHED_POINTS", $a_set[
'reached_points'] .
" " . strtolower($this->
lng->txt(
"of")) .
" " . $a_set[
'max_points']);
84 $this->tpl->setVariable(
"PASS_REACHED_PERCENTAGE", sprintf(
"%.2f%%", $a_set[
'percentage']));
86 $this->tpl->setVariable(
"TXT_SHOW_PASS", $this->
lng->txt(
'tst_edit_scoring'));
87 $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)
__construct(ilTestScoringGUI $parent_obj, string $parent_cmd)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
setFormName(string $a_name="")
setStyle(string $a_element, string $a_style)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
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)