ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTestInviteUsersTableGUI.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('inviteusers');
42  $this->setStyle('table', 'fullwidth');
43 
44  $this->addColumn('', 'f', '1%');
45  $this->addColumn($this->lng->txt("login"), 'login', '');
46  $this->addColumn($this->lng->txt("firstname"), 'firstname', '');
47  $this->addColumn($this->lng->txt("lastname"), 'lastname', '');
48  $this->addColumn($this->lng->txt("clientip"), 'clientip', '');
49 
50  $this->setTitle($this->lng->txt('search_users'), 'icon_usr.svg', $this->lng->txt('usr'));
51 
52  $this->setRowTemplate("tpl.il_as_tst_invite_users_row.html", "Modules/Test");
53 
54  $this->addMultiCommand('addParticipants', $this->lng->txt('add'));
55 
56  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
57 
58  $this->setDefaultOrderField("login");
59  $this->setDefaultOrderDirection("asc");
60  $this->setPrefix('user_select');
61  $this->setSelectAllCheckbox('user_select');
62 
63  $this->enable('header');
64  $this->enable('sort');
65  $this->enable('select_all');
66  }
67 
68  public function fillRow(array $a_set): void
69  {
70  $this->tpl->setVariable("USER_ID", $a_set['usr_id']);
71  $this->tpl->setVariable("LOGIN", $a_set['login']);
72  $this->tpl->setVariable("FIRSTNAME", $a_set['firstname']);
73  $this->tpl->setVariable("LASTNAME", $a_set['lastname']);
74  $this->tpl->setVariable("CLIENT_IP", $a_set['clientip']);
75  }
76 }
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)
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)
__construct($a_parent_obj, $a_parent_cmd)
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)
addMultiCommand(string $a_cmd, string $a_text)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setPrefix(string $a_prefix)