ILIAS  release_8 Revision v8.24
class.ilMailMemberSearchTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public function __construct(ilMailMemberSearchGUI $a_parent_obj, string $a_parent_cmd)
27 {
28 global $DIC;
29
30 $obj_id = ilObject::_lookupObjectId($a_parent_obj->ref_id);
31 $this->setId('mmsearch_' . $obj_id);
32 parent::__construct($a_parent_obj, $a_parent_cmd);
33 $this->lng->loadLanguageModule('crs');
34 $this->lng->loadLanguageModule('grp');
35 $this->setTitle($this->lng->txt('members'));
36
37 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
38 $this->ctrl->clearParameters($a_parent_obj);
39
40 $this->setRowTemplate('tpl.mail_member_search_row.html', 'Services/Contact');
41
42 $this->addColumn('', '', '1%', true);
43 $this->addColumn($this->lng->txt('login'), 'login', '22%');
44 $this->addColumn($this->lng->txt('name'), 'name', '22%');
45 $this->addColumn($this->lng->txt('role'), 'role', '22%');
46
47 $this->setSelectAllCheckbox('user_ids[]');
48 $this->setShowRowsSelector(true);
49
50 $this->addMultiCommand('sendMailToSelectedUsers', $this->lng->txt('mail_members'));
51 $this->addCommandButton('cancel', $this->lng->txt('cancel'));
52 }
53
54 protected function fillRow(array $a_set): void
55 {
56 foreach ($a_set as $key => $value) {
57 $this->tpl->setVariable(strtoupper($key), $value);
58 }
59 }
60}
Class ilMailMemberSearchGUI.
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(ilMailMemberSearchGUI $a_parent_obj, string $a_parent_cmd)
static _lookupObjectId(int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
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)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
string $key
Consumer key/client ID value.
Definition: System.php:193