ILIAS  release_8 Revision v8.24
class.ilTimingOverviewTableGUI.php
Go to the documentation of this file.
1<?php
2
23{
24 public function __construct($a_parent_obj, $a_parent_cmd)
25 {
26 parent::__construct($a_parent_obj, $a_parent_cmd);
27
28 $this->setTitle($this->lng->txt('timing'));
29 $this->setRowTemplate("tpl.il_as_tst_timing_overview_row.html", "Modules/Test");
30 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
31
32 $this->addColumn($this->lng->txt("login"), 'login', '');
33 $this->addColumn($this->lng->txt("name"), 'name', '');
34 $this->addColumn($this->lng->txt("tst_started"), 'started', '');
35 $this->addColumn($this->lng->txt("timing"), 'extratime', '');
36 }
37
38 public function fillRow(array $a_set): void
39 {
40 $this->tpl->setVariable("LOGIN", $a_set['login']);
41 $this->tpl->setVariable("NAME", $a_set['name']);
42 $this->tpl->setVariable("STARTED", $a_set['started']);
43 $this->tpl->setVariable("EXTRATIME", ilDatePresentation::secondsToString($a_set['extratime'] * 60));
44 }
45}
static secondsToString(int $seconds, bool $force_with_seconds=false, ?ilLanguage $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillRow(array $a_set)
Standard Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc