ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilMailingListsMembersTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Table/classes/class.ilTable2GUI.php';
5
12{
16 protected $lng;
17
21 protected $ctrl;
22
28 public function __construct($a_parent_obj, $a_parent_cmd = '', ilMailingList $mailing_list)
29 {
30 global $DIC;
31
32 $this->lng = $DIC['lng'];
33 $this->ctrl = $DIC['ilCtrl'];
34
35 $this->setId('show_mlng_mmbrs_list_tbl_' . $mailing_list->getId());
36 parent::__construct($a_parent_obj, $a_parent_cmd);
37
38 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj), 'showMemberForm');
39 $this->setTitle($this->lng->txt('mail_members_of_mailing_list') . ' ' . $mailing_list->getTitle());
40 $this->setRowTemplate('tpl.mail_mailing_lists_membersrow.html', 'Services/Contact');
41
42 $this->addCommandButton('showMailingLists', $this->lng->txt('back'));
43
44 $this->setDefaultOrderField('title');
45
46 $this->initColumns();
47 }
48
49 protected function initColumns()
50 {
51 $this->addColumn('', 'check', '1%', true);
52 $this->addColumn($this->lng->txt('user'), 'user', '99%');
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
__construct($a_parent_obj, $a_parent_cmd='', ilMailingList $mailing_list)
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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