ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilMailMemberSearchTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Table/classes/class.ilTable2GUI.php';
5
12{
16 public function __construct($a_parent_obj)
17 {
18 global $ilCtrl, $lng;
19 $obj_id = ilObject::_lookupObjectId($a_parent_obj->ref_id);
20 $this->setId('mmsearch_'.$obj_id);
21 parent::__construct($a_parent_obj, 'showSelectableUsers');
22 $lng->loadLanguageModule('crs');
23 $lng->loadLanguageModule('grp');
24 $this->setTitle($lng->txt('members'));
25
26 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
27 $ilCtrl->clearParameters($a_parent_obj);
28
29 $this->setRowTemplate('tpl.mail_member_search_row.html', 'Services/Contact');
30
31 // setup columns
32 $this->addColumn('', '', '1%', true);
33 $this->addColumn($lng->txt('login'), 'login', '22%');
34 $this->addColumn($lng->txt('name'), 'name', '22%');
35 $this->addColumn($lng->txt('role'), 'role', '22%');
36
37 $this->setSelectAllCheckbox('user_ids[]');
38 $this->setShowRowsSelector(true);
39
40 $this->addMultiCommand('sendMailToSelectedUsers', $lng->txt('mail_members'));
41 $this->addCommandButton('cancel', $lng->txt('cancel'));
42 }
43
47 public function fillRow($a_set)
48 {
49 foreach($a_set as $key => $value)
50 {
51 $this->tpl->setVariable(strtoupper($key), $value);
52 }
53 }
54}
static _lookupObjectId($a_ref_id)
lookup object id
Class ilTable2GUI.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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 $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40