ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
4 require_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 }
setExternalSorting($a_val)
Set external sorting.
setExternalSegmentation($a_val)
Set external segmentation.
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setId($a_val)
Set id.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
Class ilBannedUsersTableGUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
Date and time handling
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor Calls parent constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.