ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
11{
15 public function __construct($a_parent_obj, $a_parent_cmd = "", $a_template_context = "", $ref_id = 0)
16 {
17 global $DIC;
18
19 $this->setId('frm_show_mods_tbl_' . $ref_id);
20 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
21
22 $this->setFormAction($DIC->ctrl()->getFormAction($a_parent_obj, $a_parent_cmd));
23 $this->setTitle($this->lng->txt('frm_moderators'));
24 $this->setRowTemplate('tpl.forum_moderators_table_row.html', 'Modules/Forum');
25 $this->setDefaultOrderField('login');
26 $this->setNoEntriesText($this->lng->txt('frm_moderators_not_exist_yet'));
27
28 $this->addColumn('', 'check', '1%', true);
29 $this->addColumn($this->lng->txt('login'), 'login', '30%');
30 $this->addColumn($this->lng->txt('firstname'), 'firstname', '30%');
31 $this->addColumn($this->lng->txt('lastname'), 'lastname', '30%');
32
33 $this->setSelectAllCheckbox('usr_id');
34 $this->addMultiCommand('detachModeratorRole', $this->lng->txt('frm_detach_moderator_role'));
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
Class ilForumModeratorsTableGUI.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="", $ref_id=0)
{}
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setNoEntriesText($a_text)
Set text for an empty table.
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.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setId($a_val)
Set id.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $DIC
Definition: saml.php:7