ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilMailingListsTableGUI.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 = '', $a_template_context = '')
29 {
34 global $lng, $ilCtrl;
35
36 $this->lng = $lng;
37 $this->ctrl = $ilCtrl;
38
39 $this->setId('show_mlng_lists_tbl');
40 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
41
42 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj), 'showForm');
43 $this->setTitle($this->lng->txt('mail_mailing_lists'));
44 $this->setRowTemplate('tpl.mail_mailing_lists_listrow.html', 'Services/Contact');
45 $this->setDefaultOrderField('title');
46 $this->setSelectAllCheckbox('ml_id');
47 $this->setNoEntriesText($this->lng->txt('mail_search_no'));
48 $this->addCommandButton('showForm', $this->lng->txt('add'));
49
50 $this->initColumns();
51 }
52
53 protected function initColumns()
54 {
55 $this->addColumn('', 'check', '10%', true);
56 $this->addColumn($this->lng->txt('title'), 'title', '30%');
57 $this->addColumn($this->lng->txt('description'), 'description', '30%');
58 $this->addColumn($this->lng->txt('members'), 'members', '20%');
59 $this->addColumn($this->lng->txt('actions'), '', '10%');
60 }
61}
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setNoEntriesText($a_text)
Set text for an empty table.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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