ILIAS  release_8 Revision v8.24
class.ilSessionFileTableGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
29{
30 public function __construct(object $a_parent_obj, string $a_parent_cmd = '')
31 {
32 parent::__construct($a_parent_obj, $a_parent_cmd);
33 $this->addColumn('', 'f', "1");
34 $this->addColumn($this->lng->txt('filename'), 'filename', "60%");
35 $this->addColumn($this->lng->txt('filesize'), 'filesize', "20%");
36 $this->addColumn($this->lng->txt('filetype'), 'filetype', "20%");
37
38 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
39 $this->setRowTemplate("tpl.sess_file_row.html", "Modules/Session");
40 $this->setDefaultOrderField("filname");
41 $this->setDefaultOrderDirection("desc");
42 }
43
44 protected function fillRow(array $a_set): void
45 {
46 $this->tpl->setVariable('VAL_ID', $a_set['id']);
47 $this->tpl->setVariable('VAL_FILENAME', $a_set['filename']);
48 $this->tpl->setVariable('VAL_FILETYPE', $a_set['filetype']);
49 $this->tpl->setVariable('VAL_FILESIZE', $a_set['filesize']);
50 }
51}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd='')
fillRow(array $a_set)
Standard Version of Fill Row.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc