ILIAS  release_8 Revision v8.24
class.ilForumModeratorsTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 public function __construct(object $a_parent_obj, string $a_parent_cmd, int $ref_id)
29 {
30 global $DIC;
31
32 $this->setId('frm_show_mods_tbl_' . $ref_id);
33 parent::__construct($a_parent_obj, $a_parent_cmd);
34
35 $this->setFormAction($DIC->ctrl()->getFormAction($a_parent_obj, $a_parent_cmd));
36 $this->setTitle($this->lng->txt('frm_moderators'));
37 $this->setRowTemplate('tpl.forum_moderators_table_row.html', 'Modules/Forum');
38 $this->setDefaultOrderField('login');
39 $this->setNoEntriesText($this->lng->txt('frm_moderators_not_exist_yet'));
40
41 $this->addColumn('', 'check', '1%', true);
42 $this->addColumn($this->lng->txt('login'), 'login', '30%');
43 $this->addColumn($this->lng->txt('firstname'), 'firstname', '30%');
44 $this->addColumn($this->lng->txt('lastname'), 'lastname', '30%');
45
46 $this->setSelectAllCheckbox('usr_id');
47 $this->addMultiCommand('detachModeratorRole', $this->lng->txt('remove'));
48 }
49}
Class ilForumModeratorsTableGUI.
__construct(object $a_parent_obj, string $a_parent_cmd, int $ref_id)
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="")
addMultiCommand(string $a_cmd, string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setDefaultOrderField(string $a_defaultorderfield)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setNoEntriesText(string $a_text)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
global $DIC
Definition: feed.php:28
$ref_id
Definition: ltiauth.php:67
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc