ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilStudyProgrammeMailMemberSearchTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Daniel Weise <daniel.weise@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5declare(strict_types=1);
6
8{
12 protected $ctrl;
13
17 protected $lng;
18
22 public function __construct($a_parent_obj, $a_parent_cmd = "")
23 {
24 global $DIC;
25
26 $this->ctrl = $DIC['ilCtrl'];
27 $this->lng = $DIC['lng'];
28
29 $obj_id = ilObject::_lookupObjectId($a_parent_obj->ref_id);
30 $this->setId('mmsearch_' . $obj_id);
31 parent::__construct($a_parent_obj, $a_parent_cmd);
32 $this->lng->loadLanguageModule('prg');
33 $this->setTitle($this->lng->txt('members'));
34
35 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
36 $this->ctrl->clearParameters($a_parent_obj);
37
38 $this->setRowTemplate('tpl.mail_member_search_row.html', 'Modules/StudyProgramme');
39
40 // setup columns
41 $this->addColumn('', '', '1%', true);
42 $this->addColumn($this->lng->txt('login'), 'login', '22%');
43 $this->addColumn($this->lng->txt('name'), 'name', '22%');
44
45 $this->setSelectAllCheckbox('user_ids[]');
46 $this->setShowRowsSelector(true);
47
48 $this->addMultiCommand('sendMailToSelectedUsers', $this->lng->txt('mail_assignments'));
49 $this->addCommandButton('cancel', $this->lng->txt('cancel'));
50 }
51
55 public function fillRow($a_set)
56 {
57 foreach ($a_set as $key => $value) {
58 $this->tpl->setVariable(strtoupper($key), $value);
59 }
60 }
61}
An exception for terminatinating execution or to throw for unit testing.
static _lookupObjectId($a_ref_id)
lookup object id
Class ilTable2GUI.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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.
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.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc