ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilBannedUsersTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Table/classes/class.ilTable2GUI.php';
5
13{
22 public function __construct($a_parent_obj, $a_parent_cmd = "", $a_template_context = "")
23 {
24 $this->setId('banned_users');
25
26 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
27
28 $this->setTitle($this->lng->txt('ban_table_title'));
29 $this->setExternalSegmentation(true);
30 $this->setExternalSorting(false);
31
32 $this->addColumn('', '', '', true);
33 $this->addColumn($this->lng->txt('login'), 'login');
34 $this->addColumn($this->lng->txt('firstname'), 'firstname');
35 $this->addColumn($this->lng->txt('lastname'), 'lastname');
36 $this->addColumn($this->lng->txt('chtr_ban_ts_tbl_head'), 'timestamp');
37 $this->addColumn($this->lng->txt('chtr_ban_actor_tbl_head'), 'actor');
38
39 $this->setSelectAllCheckbox('banned_user_id');
40 $this->setRowTemplate('tpl.banned_user_table_row.html', 'Modules/Chatroom');
41
42 $this->addMultiCommand('ban-delete', $this->lng->txt('unban'));
43 }
44
48 protected function fillRow($a_set)
49 {
50 if ($a_set['timestamp'] > 0) {
51 $a_set['timestamp'] = ilDatePresentation::formatDate(new ilDateTime($a_set['timestamp'], IL_CAL_UNIX));
52 }
53
54 parent::fillRow($a_set);
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
const IL_CAL_UNIX
Class ilBannedUsersTableGUI.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor Calls parent constructor.
fillRow($a_set)
Standard Version of Fill Row.Most likely to be overwritten by derived class.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date @access public.
@classDescription Date and time handling
Class ilTable2GUI.
setExternalSorting($a_val)
Set external sorting.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setExternalSegmentation($a_val)
Set external segmentation.
setId($a_val)
Set id.