ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTestInviteRolesTableGUI.php
Go to the documentation of this file.
1 <?php
2 
28 {
29  public function __construct($a_parent_obj, $a_parent_cmd)
30  {
31  parent::__construct($a_parent_obj, $a_parent_cmd);
32 
33  global $DIC;
34  $lng = $DIC['lng'];
35  $ilCtrl = $DIC['ilCtrl'];
36 
37  $this->lng = $lng;
38  $this->ctrl = $ilCtrl;
39  $this->counter = 1;
40 
41  $this->setFormName('inviteroles');
42  $this->setStyle('table', 'fullwidth');
43 
44  $this->addColumn('', 'f', '1%');
45  $this->addColumn($this->lng->txt("title"), 'title', '');
46  $this->addColumn($this->lng->txt("description"), 'description', '');
47 
48  $this->setTitle($this->lng->txt('search_roles'), 'icon_role.svg', $this->lng->txt('role'));
49 
50  $this->setRowTemplate("tpl.il_as_tst_invite_roles_row.html", "Modules/Test");
51 
52  $this->addMultiCommand('addParticipants', $this->lng->txt('add'));
53 
54  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
55 
56  $this->setDefaultOrderField("login");
57  $this->setDefaultOrderDirection("asc");
58  $this->setPrefix('role_select');
59  $this->setSelectAllCheckbox('role_select');
60 
61  $this->enable('header');
62  $this->enable('sort');
63  $this->enable('select_all');
64  }
65 
66  public function fillRow(array $a_set): void
67  {
68  $this->tpl->setVariable("ROLE_ID", $a_set['obj_id']);
69  $this->tpl->setVariable("TITLE", $a_set['title']);
70  $this->tpl->setVariable("DESCRIPTION", $a_set['description']);
71  }
72 }
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFormName(string $a_name="")
ilLanguage $lng
global $DIC
Definition: feed.php:28
setStyle(string $a_element, string $a_style)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
__construct($a_parent_obj, $a_parent_cmd)
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)
setPrefix(string $a_prefix)