ILIAS  release_8 Revision v8.24
class.ilTestInviteGroupsTableGUI.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('invitegroups');
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_groups'), 'icon_grp.svg', $this->lng->txt('grp'));
49
50 $this->setRowTemplate("tpl.il_as_tst_invite_groups_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('group_select');
59 $this->setSelectAllCheckbox('group_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("GROUP_ID", $a_set['ref_id']);
69 $this->tpl->setVariable("TITLE", $a_set['title']);
70 $this->tpl->setVariable("DESCRIPTION", $a_set['description']);
71 }
72}
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