ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilStudyProgrammeAutoCategoriesTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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", "Modules/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 }
setTopCommands(bool $a_val)
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setId(string $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjStudyProgrammeAutoCategoriesGUI $a_parent_obj, string $a_parent_cmd="", string $a_template_context="")
setExternalSorting(bool $a_val)
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setEnableAllCommand(bool $a_value)
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)
disable(string $a_module_name)
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)
setExternalSegmentation(bool $a_val)