33 $ilCtrl = $DIC[
'ilCtrl'];
38 $this->
setStyle(
'table',
'fullwidth');
42 $this->
setFormAction($ilCtrl->getFormAction($parentObj, $parentCmd));
44 $this->
setRowTemplate(
"tpl.il_as_tst_pass_overview_tblrow.html",
"Modules/Test");
58 $this->
addColumn(
$lng->
txt(
"tst_answered_questions"),
'answered_questions',
'');
72 public function fillRow(array $a_set): void
75 $ilCtrl = $DIC[
'ilCtrl'];
78 $ilCtrl->setParameter($this->parent_obj,
'active_id', $a_set[
'active_id']);
79 $ilCtrl->setParameter($this->parent_obj,
'pass', $a_set[
'pass']);
81 if ($a_set[
'is_scored_pass']) {
82 $this->tpl->setCurrentBlock(
'selected_pass');
83 $this->tpl->touchBlock(
'selected_pass');
84 $this->tpl->parseCurrentBlock();
85 $this->tpl->setVariable(
'CSS_ROW',
'tblrowmarked');
88 $this->tpl->setVariable(
"PASS_NR", $a_set[
'pass'] + 1);
90 $this->tpl->setVariable(
"PASS_ANSWERED_QUESTIONS", $a_set[
'answered_questions'] .
" " . strtolower($this->
lng->txt(
"of")) .
" " . $a_set[
'total_questions']);
91 $this->tpl->setVariable(
"PASS_REACHED_POINTS", $a_set[
'reached_points'] .
" " . strtolower($this->
lng->txt(
"of")) .
" " . $a_set[
'max_points']);
92 $this->tpl->setVariable(
"PASS_REACHED_PERCENTAGE", sprintf(
"%.2f%%", $a_set[
'percentage']));
94 $this->tpl->setVariable(
"TXT_SHOW_PASS",
$lng->
txt(
'tst_edit_scoring'));
95 $this->tpl->setVariable(
"HREF_SHOW_PASS", $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
enable(string $a_module_name)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
__construct($parentObj, $parentCmd)
setPrefix(string $a_prefix)