ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilForumModeratorsTableGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
setNoEntriesText(string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
__construct(object $a_parent_obj, string $a_parent_cmd, int $ref_id)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setId(string $a_val)
Class ilForumModeratorsTableGUI.
global $DIC
Definition: feed.php:28
$ref_id
Definition: ltiauth.php:67
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
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)
addMultiCommand(string $a_cmd, string $a_text)