ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStudyProgrammeMailMemberSearchTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
26 public function __construct(ilStudyProgrammeMailMemberSearchGUI $parent_obj, int $root_obj_id, string $parent_cmd = "")
27 {
28 global $DIC;
29
30 $this->ctrl = $DIC['ilCtrl'];
31 $this->lng = $DIC['lng'];
32
33 $this->setId('mmsearch_' . $root_obj_id);
35 $this->lng->loadLanguageModule('prg');
36 $this->setTitle($this->lng->txt('members'));
37
38 $this->setFormAction($this->ctrl->getFormAction($parent_obj));
39 $this->ctrl->clearParameters($parent_obj);
40
41 $this->setRowTemplate('tpl.mail_member_search_row.html', 'components/ILIAS/StudyProgramme');
42
43 // setup columns
44 $this->addColumn('', '', '1%', true);
45 $this->addColumn($this->lng->txt('login'), 'login', '22%');
46 $this->addColumn($this->lng->txt('name'), 'name', '22%');
47
48 $this->setSelectAllCheckbox('user_ids[]');
49 $this->setShowRowsSelector(true);
50
51 $this->addMultiCommand('sendMailToSelectedUsers', $this->lng->txt('mail_assignments'));
52 $this->addCommandButton('cancel', $this->lng->txt('cancel'));
53 }
54
58 protected function fillRow(array $a_set): void
59 {
60 foreach ($a_set as $key => $value) {
61 $this->tpl->setVariable(strtoupper($key), $value);
62 }
63 }
64}
__construct(ilStudyProgrammeMailMemberSearchGUI $parent_obj, int $root_obj_id, string $parent_cmd="")
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)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26