ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilForumModeratorsTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Table/classes/class.ilTable2GUI.php';
5
13{
17 public function __construct($a_parent_obj, $a_parent_cmd = "", $a_template_context = "", $ref_id = 0)
18 {
22 global $ilCtrl;
23
24 $this->setId('frm_show_mods_tbl_' . $ref_id);
25 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
26
27 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
28 $this->setTitle($this->lng->txt('frm_moderators'));
29 $this->setRowTemplate('tpl.forum_moderators_table_row.html', 'Modules/Forum');
30 $this->setDefaultOrderField('login');
31 $this->setNoEntriesText($this->lng->txt('frm_moderators_not_exist_yet'));
32
33 $this->addColumn('', 'check', '1%', true);
34 $this->addColumn($this->lng->txt('login'), 'login', '30%');
35 $this->addColumn($this->lng->txt('firstname'), 'firstname', '30%');
36 $this->addColumn($this->lng->txt('lastname'), 'lastname', '30%');
37
38 $this->setSelectAllCheckbox('usr_id');
39 $this->addMultiCommand('detachModeratorRole', $this->lng->txt('frm_detach_moderator_role'));
40 }
41}
Class ilForumModeratorsTableGUI.
Class ilTable2GUI.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setNoEntriesText($a_text)
Set text for an empty table.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setId($a_val)
Set id.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
$ref_id
Definition: sahs_server.php:39