ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStudyProgrammeAutoCategoriesTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 public function __construct(
30 string $a_parent_cmd = "",
31 string $a_template_context = ""
32 ) {
33 $this->setId("sp_ac_list");
34 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
35
36 $this->setTitle($this->lng->txt('content_automation_title'));
37 $this->setEnableTitle(true);
38 $this->setTopCommands(false);
39 $this->setEnableHeader(true);
40 $this->setExternalSorting(false);
41 $this->setExternalSegmentation(true);
42 $this->setRowTemplate("tpl.autocats_table_row.html", "components/ILIAS/StudyProgramme");
43 $this->setShowRowsSelector(false);
44 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, "view"));
45 $this->disable('sort');
46
47 $this->addColumn("", "", "1", true);
48 $this->addColumn($this->lng->txt('title'), 'title');
49 $this->addColumn($this->lng->txt('last_edited_by'), 'editor');
50 $this->addColumn($this->lng->txt('last_edited'), 'last');
51 $this->addColumn($this->lng->txt(''), 'actions');
52
54 $this->setEnableAllCommand(true);
55 $this->addMultiCommand('deleteConfirmation', $this->lng->txt('delete'));
56 }
57
58 protected function fillRow(array $a_set): void
59 {
60 [$ac, $title, $usr, $actions] = $a_set;
61
62 $this->tpl->setVariable("ID", $ac->getCategoryRefId());
63 $this->tpl->setVariable("TITLE", $title);
64 $this->tpl->setVariable("EDITOR", $usr);
65 $this->tpl->setVariable("LAST_EDITED", $ac->getLastEdited()->format('Y/m/d H:i:s'));
66 $this->tpl->setVariable("ACTIONS", $actions);
67 }
68}
__construct(ilObjStudyProgrammeAutoCategoriesGUI $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setEnableAllCommand(bool $a_value)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setExternalSegmentation(bool $a_val)
setEnableTitle(bool $a_enabletitle)
addMultiCommand(string $a_cmd, string $a_text)
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)
setEnableHeader(bool $a_enableheader)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setTopCommands(bool $a_val)
setExternalSorting(bool $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
disable(string $a_module_name)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc