ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
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) ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
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)