ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMailingListsMembersTableGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
27  public function __construct(ilMailingListsGUI $a_parent_obj, string $a_parent_cmd, ilMailingList $mailing_list)
28  {
29  $this->setId('show_mlng_mmbrs_list_tbl_' . $mailing_list->getId());
30  parent::__construct($a_parent_obj, $a_parent_cmd);
31 
32  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, 'showMemberForm'));
33  $this->setTitle(sprintf($this->lng->txt('mail_members_of_mailing_list'), $mailing_list->getTitle()));
34  $this->setRowTemplate('tpl.mail_mailing_lists_membersrow.html', 'Services/Contact');
35 
36  $this->addCommandButton('showMailingLists', $this->lng->txt('back'));
37 
38  $this->setDefaultOrderField('title');
39 
40  $this->initColumns();
41  }
42 
43  protected function initColumns(): void
44  {
45  $this->addColumn('', 'check', '1px', true);
46  $this->addColumn($this->lng->txt('user'), 'user', '99%');
47  }
48 }
setFormAction(string $a_form_action, bool $a_multipart=false)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setId(string $a_val)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(ilMailingListsGUI $a_parent_obj, string $a_parent_cmd, ilMailingList $mailing_list)
__construct(Container $dic, ilPlugin $plugin)
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)