ILIAS  release_8 Revision v8.24
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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setFormName(string $a_name="")
addMultiCommand(string $a_cmd, string $a_text)
setPrefix(string $a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
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)
setDefaultOrderField(string $a_defaultorderfield)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
ilLanguage $lng
enable(string $a_module_name)
setStyle(string $a_element, string $a_style)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
fillRow(array $a_set)
Standard Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc