ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCategoryAssignRoleTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
27  public function __construct(
28  ilObjCategoryGUI $a_parent_obj,
29  string $a_parent_cmd
30  ) {
31  global $DIC;
32 
33  $this->ctrl = $DIC->ctrl();
34  $this->lng = $DIC->language();
35  $ilCtrl = $DIC->ctrl();
36  $lng = $DIC->language();
37 
38  $this->setId("ilcatluaar");
39 
40  parent::__construct($a_parent_obj, $a_parent_cmd);
41 
42  $this->addColumn("", "", "4%", true);
43  $this->addColumn($lng->txt("title"), "title", "35%");
44  $this->addColumn($lng->txt("description"), "desc", "45%");
45  $this->addColumn($lng->txt("type"), "type", "16%");
46 
47  $this->addMultiCommand('assignSave', $lng->txt("change_assignment"));
48 
49  $ilCtrl->saveParameter($a_parent_obj, 'obj_id');
50  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
51  $this->setRowTemplate("tpl.cat_role_assignment.html", "Modules/Category");
52  $this->setDefaultOrderDirection("asc");
53  $this->setShowRowsSelector(false);
54  $this->setLimit(999999);
55  }
56 
57  protected function fillRow(array $a_set): void
58  {
59  $this->tpl->setVariable("INPUT_CHCKBX", $a_set["checkbox"]);
60  $this->tpl->setVariable("TXT_TITLE", $a_set["title"]);
61  $this->tpl->setVariable("TXT_DESCRIPTION", $a_set["desc"]);
62  $this->tpl->setVariable("TXT_TYPE", $a_set["type"]);
63  }
64 }
Class ilObjCategoryGUI.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
ilLanguage $lng
setId(string $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
__construct(ilObjCategoryGUI $a_parent_obj, string $a_parent_cmd)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
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)
addMultiCommand(string $a_cmd, string $a_text)