ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilTimingOverviewTableGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  public function __construct($a_parent_obj, $a_parent_cmd)
27  {
28  parent::__construct($a_parent_obj, $a_parent_cmd);
29 
30  $this->setTitle($this->lng->txt('timing'));
31  $this->setRowTemplate("tpl.il_as_tst_timing_overview_row.html", "Modules/Test");
32  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
33 
34  $this->addColumn($this->lng->txt("login"), 'login', '');
35  $this->addColumn($this->lng->txt("name"), 'name', '');
36  $this->addColumn($this->lng->txt("tst_started"), 'started', '');
37  $this->addColumn($this->lng->txt("timing"), 'extratime', '');
38  }
39 
40  public function fillRow(array $a_set): void
41  {
42  $this->tpl->setVariable("LOGIN", $a_set['login']);
43  $this->tpl->setVariable("NAME", $a_set['name']);
44  $this->tpl->setVariable("STARTED", $a_set['started']);
45  $this->tpl->setVariable("EXTRATIME", ilDatePresentation::secondsToString($a_set['extratime'] * 60));
46  }
47 }
setFormAction(string $a_form_action, bool $a_multipart=false)
__construct($a_parent_obj, $a_parent_cmd)
static secondsToString(int $seconds, bool $force_with_seconds=false, ?ilLanguage $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
__construct(VocabulariesInterface $vocabularies)
Class ilTimingOverviewTableGUI.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
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)