ILIAS  release_8 Revision v8.24
class.ilBannedUsersTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
28{
29 public function __construct(ilChatroomObjectGUI $a_parent_obj, string $a_parent_cmd)
30 {
31 $this->setId('banned_users');
32
33 parent::__construct($a_parent_obj, $a_parent_cmd);
34
35 $this->setTitle($this->lng->txt('ban_table_title'));
36 $this->setExternalSegmentation(true);
37 $this->setExternalSorting(false);
38
39 $this->addColumn('', '', '', true);
40 $this->addColumn($this->lng->txt('login'), 'login');
41 $this->addColumn($this->lng->txt('firstname'), 'firstname');
42 $this->addColumn($this->lng->txt('lastname'), 'lastname');
43 $this->addColumn($this->lng->txt('chtr_ban_ts_tbl_head'), 'timestamp');
44 $this->addColumn($this->lng->txt('chtr_ban_actor_tbl_head'), 'actor');
45
46 $this->setSelectAllCheckbox('banned_user_id');
47 $this->setRowTemplate('tpl.banned_user_table_row.html', 'Modules/Chatroom');
48
49 $this->addMultiCommand('ban-delete', $this->lng->txt('unban'));
50 }
51
52 protected function fillRow(array $a_set): void
53 {
54 if (is_numeric($a_set['timestamp']) && $a_set['timestamp'] > 0) {
55 $a_set['timestamp'] = ilDatePresentation::formatDate(new ilDateTime($a_set['timestamp'], IL_CAL_UNIX));
56 }
57
58 parent::fillRow($a_set);
59 }
60}
const IL_CAL_UNIX
Class ilBannedUsersTableGUI.
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(ilChatroomObjectGUI $a_parent_obj, string $a_parent_cmd)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
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="")
setExternalSegmentation(bool $a_val)
addMultiCommand(string $a_cmd, string $a_text)
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)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setExternalSorting(bool $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc