ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMailingListsGUI Class Reference
+ Collaboration diagram for ilMailingListsGUI:

Public Member Functions

 __construct ()
 executeCommand ()
 confirmDelete ()
 performDelete ()
 mailToList ()
 showMailingLists ()
 saveForm ()
 showForm ()
 showMembersList ()
 confirmDeleteMembers ()
 performDeleteMembers ()
 saveAssignmentForm ()
 showAssignmentForm ()
 setError ($a_error= '')
 getError ()
 isError ()

Private Member Functions

 initForm ($a_type= 'create')
 setValuesByObject ()
 setDefaultValues ()

Private Attributes

 $tpl = null
 $ctrl = null
 $lng = null
 $umail = null
 $mlists = null
 $abook = null
 $error = array()
 $form_gui = null

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
Id:
class.ilMailingListsGUI.php 24026 2010-05-31 09:28:29Z jposselt

Definition at line 35 of file class.ilMailingListsGUI.php.

Constructor & Destructor Documentation

ilMailingListsGUI::__construct ( )

Definition at line 49 of file class.ilMailingListsGUI.php.

References $_GET, $ilCtrl, $lng, and $tpl.

{
global $tpl, $ilCtrl, $lng, $ilUser;
$this->tpl = $tpl;
$this->ctrl = $ilCtrl;
$this->lng = $lng;
$this->umail = new ilFormatMail($ilUser->getId());
$this->abook = new ilAddressbook($ilUser->getId());
$this->mlists = new ilMailingLists($ilUser);
$this->mlists->setCurrentMailingList($_GET['ml_id']);
$this->ctrl->saveParameter($this, 'mobj_id');
}

Member Function Documentation

ilMailingListsGUI::confirmDelete ( )

Definition at line 83 of file class.ilMailingListsGUI.php.

References $_GET, $_POST, ilUtil\sendInfo(), and showMailingLists().

{
$ml_ids = ((int)$_GET['ml_id']) ? array($_GET['ml_id']) : $_POST['ml_id'];
if (!$ml_ids)
{
ilUtil::sendInfo($this->lng->txt('mail_select_one_entry'));
$this->showMailingLists();
return true;
}
include_once('Services/Utilities/classes/class.ilConfirmationGUI.php');
$c_gui = new ilConfirmationGUI();
$c_gui->setFormAction($this->ctrl->getFormAction($this, 'performDelete'));
$c_gui->setHeaderText($this->lng->txt('mail_sure_delete_entry'));
$c_gui->setCancel($this->lng->txt('cancel'), 'showMailingLists');
$c_gui->setConfirm($this->lng->txt('confirm'), 'performDelete');
$entries = $this->mlists->getSelected($ml_ids);
foreach($entries as $entry)
{
$c_gui->addItem('ml_id[]', $entry->getId(), $entry->getTitle());
}
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_list.html', 'Services/Contact');
$this->tpl->setVariable('DELETE_CONFIRMATION', $c_gui->getHTML());
$this->tpl->show();
return true;
}

+ Here is the call graph for this function:

ilMailingListsGUI::confirmDeleteMembers ( )

Definition at line 477 of file class.ilMailingListsGUI.php.

References $_POST, ilUtil\sendInfo(), and showMembersList().

{
if (!isset($_POST['a_id']))
{
ilUtil::sendInfo($this->lng->txt('mail_select_one_entry'));
$this->showMembersList();
return true;
}
include_once('Services/Utilities/classes/class.ilConfirmationGUI.php');
$c_gui = new ilConfirmationGUI();
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$c_gui->setFormAction($this->ctrl->getFormAction($this, 'performDeleteMembers'));
$c_gui->setHeaderText($this->lng->txt('mail_sure_delete_entry'));
$c_gui->setCancel($this->lng->txt('cancel'), 'showMembersList');
$c_gui->setConfirm($this->lng->txt('confirm'), 'performDeleteMembers');
$assigned_entries = $this->mlists->getCurrentMailingList()->getAssignedEntries();
if (is_array($assigned_entries))
{
foreach ($assigned_entries as $entry)
{
if (in_array($entry['a_id'], $_POST['a_id']))
{
$c_gui->addItem('a_id[]', $entry['a_id'], ($entry['login'] != '' ? $entry['login'] : $entry['email']));
}
}
}
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_members.html', 'Services/Contact');
$this->tpl->setVariable('DELETE_CONFIRMATION', $c_gui->getHTML());
$this->tpl->show();
return true;
}

+ Here is the call graph for this function:

ilMailingListsGUI::executeCommand ( )

Definition at line 66 of file class.ilMailingListsGUI.php.

References $cmd.

{
$forward_class = $this->ctrl->getNextClass($this);
switch ($forward_class)
{
default:
if (!($cmd = $this->ctrl->getCmd()))
{
$cmd = 'showMailingLists';
}
$this->$cmd();
break;
}
return true;
}
ilMailingListsGUI::getError ( )

Definition at line 679 of file class.ilMailingListsGUI.php.

Referenced by saveAssignmentForm().

{
return array_pop($this->error);
}

+ Here is the caller graph for this function:

ilMailingListsGUI::initForm (   $a_type = 'create')
private

Definition at line 346 of file class.ilMailingListsGUI.php.

References ilTextAreaInputGUI\setCols(), and ilFormPropertyGUI\setRequired().

Referenced by saveForm(), and showForm().

{
include_once('./Services/Form/classes/class.ilPropertyFormGUI.php');
$this->form_gui = new ilPropertyFormGUI();
$this->form_gui->setFormAction($this->ctrl->getFormAction($this, 'saveForm'));
$this->form_gui->setTitle($this->lng->txt('mail_mailing_list'));
$titleGui = new ilTextInputGUI($this->lng->txt('title'), 'title');
$titleGui->setRequired(true);
$this->form_gui->addItem($titleGui);
$descriptionGui = new ilTextAreaInputGUI($this->lng->txt('description'), 'description');
$descriptionGui->setCols(40);
$descriptionGui->setRows(8);
$this->form_gui->addItem($descriptionGui);
$this->form_gui->addCommandButton('saveForm',$this->lng->txt('save'));
$this->form_gui->addCommandButton('showMailingLists',$this->lng->txt('cancel'));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMailingListsGUI::isError ( )

Definition at line 683 of file class.ilMailingListsGUI.php.

Referenced by saveAssignmentForm().

{
if (is_array($this->error) && !empty($this->error)) return true;
return false;
}

+ Here is the caller graph for this function:

ilMailingListsGUI::mailToList ( )

Definition at line 144 of file class.ilMailingListsGUI.php.

References $_GET, $_POST, $_SESSION, ilMailingList\_isOwner(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendInfo(), and showMailingLists().

{
global $ilUser, $rbacsystem;
// check if current user may send mails
include_once "Services/Mail/classes/class.ilMail.php";
$mail = new ilMail($_SESSION["AccountId"]);
$mailing_allowed = $rbacsystem->checkAccess('mail_visible',$mail->getMailObjectReferenceId());
if (!$mailing_allowed)
{
ilUtil::sendFailure($this->lng->txt('no_permission'));
return true;
}
$ml_ids = ((int)$_GET['ml_id']) ? array($_GET['ml_id']) : $_POST['ml_id'];
if (!$ml_ids)
{
ilUtil::sendInfo($this->lng->txt('mail_select_one_entry'));
$this->showMailingLists();
return true;
}
$mail_data = $this->umail->getSavedData();
if(!is_array($mail_data))
{
$this->umail->savePostData($ilUser->getId(), array(), '', '', '', '', '', '', '', '');
}
$lists = array();
foreach($ml_ids as $id)
{
if(ilMailingList::_isOwner($id, $ilUser->getId()) &&
!$this->umail->doesRecipientStillExists('#il_ml_'.$id, $mail_data['rcp_to']))
{
$lists[] = '#il_ml_'.$id;
}
}
if(count($lists))
{
$mail_data = $this->umail->appendSearchResult($lists, 'to');
$this->umail->savePostData(
$mail_data['user_id'],
$mail_data['attachments'],
$mail_data['rcp_to'],
$mail_data['rcp_cc'],
$mail_data['rcp_bcc'],
$mail_data['m_type'],
$mail_data['m_email'],
$mail_data['m_subject'],
$mail_data['m_message'],
$mail_data['use_placeholders']
);
}
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&type=search_res");
return true;
}

+ Here is the call graph for this function:

ilMailingListsGUI::performDelete ( )

Definition at line 116 of file class.ilMailingListsGUI.php.

References $_POST, ilMailingList\_isOwner(), ilUtil\sendInfo(), showMailingLists(), and ilUtil\stripSlashes().

{
global $ilUser;
if (is_array($_POST['ml_id']))
{
$counter = 0;
foreach ($_POST['ml_id'] as $id)
{
if(ilMailingList::_isOwner($id, $ilUser->getId()))
{
$this->mlists->get(ilUtil::stripSlashes($id))->delete();
++$counter;
}
}
if($counter)
ilUtil::sendInfo($this->lng->txt('mail_deleted_entry'));
}
else
{
ilUtil::sendInfo($this->lng->txt('mail_delete_error'));
}
$this->showMailingLists();
return true;
}

+ Here is the call graph for this function:

ilMailingListsGUI::performDeleteMembers ( )

Definition at line 515 of file class.ilMailingListsGUI.php.

References $_POST, $ilErr, ilMailingList\_isOwner(), ilUtil\sendInfo(), showMembersList(), and ilUtil\stripSlashes().

{
global $ilUser, $ilErr;
if(!ilMailingList::_isOwner($this->mlists->getCurrentMailingList()->getId(), $ilUser->getId()))
{
$ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE);
}
if (is_array($_POST['a_id']))
{
foreach ($_POST['a_id'] as $id)
{
$this->mlists->getCurrentMailingList()->deassignAddressbookEntry(ilUtil::stripSlashes($id));
}
ilUtil::sendInfo($this->lng->txt('mail_deleted_entry'));
}
else
{
ilUtil::sendInfo($this->lng->txt('mail_delete_error'));
}
$this->showMembersList();
return true;
}

+ Here is the call graph for this function:

ilMailingListsGUI::saveAssignmentForm ( )

Definition at line 543 of file class.ilMailingListsGUI.php.

References $_POST, $error, $ilErr, ilMailingList\_isOwner(), getError(), isError(), ilUtil\sendInfo(), setError(), showAssignmentForm(), showMembersList(), and ilUtil\stripSlashes().

{
global $ilUser, $ilErr;
if(!ilMailingList::_isOwner($this->mlists->getCurrentMailingList()->getId(), $ilUser->getId()))
{
$ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE);
}
if ($_POST['addr_id'] == '') $this->setError($this->lng->txt('mail_entry_of_addressbook'));
if (!$this->isError())
{
$found = false;
$all_entries = $this->abook->getEntries();
if ((int)count($all_entries))
{
foreach ($all_entries as $entry)
{
if($entry['addr_id'] == $_POST['addr_id'])
{
$found = true;
break;
}
}
}
if($found)
{
$this->mlists->getCurrentMailingList()->assignAddressbookEntry(ilUtil::stripSlashes($_POST['addr_id']));
ilUtil::sendInfo($this->lng->txt('saved_successfully'));
}
$this->showMembersList();
}
else
{
$mandatory = '';
while ($error = $this->getError())
{
$mandatory .= $error;
if ($this->isError()) $mandatory .= ', ';
}
ilUtil::sendInfo($this->lng->txt('fill_out_all_required_fields') . ': ' . $mandatory);
$this->showAssignmentForm();
}
return true;
}

+ Here is the call graph for this function:

ilMailingListsGUI::saveForm ( )

Definition at line 293 of file class.ilMailingListsGUI.php.

References $_POST, $ilErr, ilMailingList\_isOwner(), exit, initForm(), ilUtil\redirect(), and ilUtil\sendSuccess().

{
if($this->mlists->getCurrentMailingList()->getId())
{
global $ilUser, $ilErr;
if(!ilMailingList::_isOwner($this->mlists->getCurrentMailingList()->getId(), $ilUser->getId()))
{
$ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE);
}
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$this->initForm('edit');
}
else
{
$this->initForm();
}
if($this->form_gui->checkInput())
{
$this->mlists->getCurrentMailingList()->setTitle($_POST['title']);
$this->mlists->getCurrentMailingList()->setDescription($_POST['description']);
if($this->mlists->getCurrentMailingList()->getId())
{
$this->mlists->getCurrentMailingList()->setChangedate(date('Y-m-d H:i:s', time()));
$this->mlists->getCurrentMailingList()->update();
ilUtil::sendSuccess($this->lng->txt('saved_successfully'), true);
}
else
{
$this->mlists->getCurrentMailingList()->setCreatedate(date('Y-m-d H:i:s', time()));
$this->mlists->getCurrentMailingList()->insert();
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$this->form_gui->setFormAction($this->ctrl->getFormAction($this, 'saveForm'));
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$link = $this->ctrl->getLinkTarget($this, "showMembersList");
}
}
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_form.html', 'Services/Contact');
$this->form_gui->setValuesByPost();
$this->tpl->setVariable('FORM', $this->form_gui->getHTML());
return $this->tpl->show();
}

+ Here is the call graph for this function:

ilMailingListsGUI::setDefaultValues ( )
private

Definition at line 375 of file class.ilMailingListsGUI.php.

Referenced by showForm().

{
$this->form_gui->setValuesByArray(array(
'title' => '',
'description' => ''
));
}

+ Here is the caller graph for this function:

ilMailingListsGUI::setError (   $a_error = '')

Definition at line 675 of file class.ilMailingListsGUI.php.

Referenced by saveAssignmentForm().

{
return $this->error[] = $a_error;
}

+ Here is the caller graph for this function:

ilMailingListsGUI::setValuesByObject ( )
private

Definition at line 367 of file class.ilMailingListsGUI.php.

Referenced by showForm().

{
$this->form_gui->setValuesByArray(array(
'title' => $this->mlists->getCurrentMailingList()->getTitle(),
'description' => $this->mlists->getCurrentMailingList()->getDescription()
));
}

+ Here is the caller graph for this function:

ilMailingListsGUI::showAssignmentForm ( )

Definition at line 598 of file class.ilMailingListsGUI.php.

References $ilErr, ilMailingList\_isOwner(), ilUtil\sendInfo(), ilSelectInputGUI\setOptions(), and showMembersList().

Referenced by saveAssignmentForm().

{
global $ilUser, $ilErr;
if (!$this->mlists->getCurrentMailingList()->getId())
{
$this->showMembersList();
return true;
}
if(!ilMailingList::_isOwner($this->mlists->getCurrentMailingList()->getId(), $ilUser->getId()))
{
$ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE);
}
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_members_form.html', 'Services/Contact');
include_once('./Services/Form/classes/class.ilPropertyFormGUI.php');
$form = new ilPropertyFormGUI();
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$form->setFormAction($this->ctrl->getFormAction($this, 'saveForm'));
$form->setTitle($this->lng->txt('mail_assign_entry_to_mailing_list') . ' ' . $this->mlists->getCurrentMailingList()->getTitle());
$options = array();
$options[''] = $this->lng->txt('please_select');
$all_entries = $this->abook->getEntries();
if ((int)count($all_entries))
{
foreach ($all_entries as $entry)
{
$options[$entry['addr_id']] = ($entry['login'] != '' ? $entry['login'] : $entry['email']);
}
}
$assigned_entries = $this->mlists->getCurrentMailingList()->getAssignedEntries();
if ((int)count($assigned_entries))
{
foreach ($assigned_entries as $assigned_entry)
{
if (is_array($options) && array_key_exists($assigned_entry['addr_id'], $options))
{
unset($options[$assigned_entry['addr_id']]);
}
}
}
if (count($options) > 1)
{
$formItem = new ilSelectInputGUI($this->lng->txt('mail_entry_of_addressbook'), 'addr_id');
$formItem->setOptions($options);
$formItem->setValue($this->mlists->getCurrentMailingList()->getTitle());
$form->addItem($formItem);
$form->addCommandButton('saveAssignmentForm',$this->lng->txt('assign'));
}
else if(count($options) == 1 && (int)count($all_entries))
{
ilUtil::sendInfo($this->lng->txt('mail_mailing_lists_all_addressbook_entries_assigned'));
}
else if(!(int)count($all_entries))
{
ilUtil::sendInfo($this->lng->txt('mail_mailing_lists_no_addressbook_entries'));
}
$form->addCommandButton('showMembersList',$this->lng->txt('cancel'));
$this->tpl->setVariable('FORM', $form->getHTML());
$this->tpl->show();
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMailingListsGUI::showForm ( )

Definition at line 383 of file class.ilMailingListsGUI.php.

References $ilErr, ilMailingList\_isOwner(), initForm(), setDefaultValues(), and setValuesByObject().

{
global $ilUser, $ilErr;
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_form.html', 'Services/Contact');
if($this->mlists->getCurrentMailingList()->getId())
{
if(!ilMailingList::_isOwner($this->mlists->getCurrentMailingList()->getId(), $ilUser->getId()))
{
$ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->MESSAGE);
}
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$this->initForm('edit');
}
else
{
$this->initForm();
$this->setDefaultValues();
}
$this->tpl->setVariable('FORM', $this->form_gui->getHTML());
return $this->tpl->show();
}

+ Here is the call graph for this function:

ilMailingListsGUI::showMailingLists ( )

Definition at line 205 of file class.ilMailingListsGUI.php.

References $_SESSION, $result, and ilUtil\formCheckbox().

Referenced by confirmDelete(), mailToList(), performDelete(), and showMembersList().

{
global $rbacsystem;
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_list.html', 'Services/Contact');
// check if current user may send mails
include_once "Services/Mail/classes/class.ilMail.php";
$mail = new ilMail($_SESSION["AccountId"]);
$mailing_allowed = $rbacsystem->checkAccess('mail_visible',$mail->getMailObjectReferenceId());
$tbl = new ilTable2GUI($this);
$tbl->setId('show_mlng_lists_tbl');
$tbl->setFormAction($this->ctrl->getFormAction($this), 'showForm');
$tbl->setTitle($this->lng->txt('mail_mailing_lists'));
$tbl->setRowTemplate('tpl.mail_mailing_lists_listrow.html', 'Services/Contact');
$tbl->setDefaultOrderField('title');
$result = array();
$tbl->addColumn('', 'check', '10%', true);
$tbl->addColumn($this->lng->txt('title'), 'title', '30%');
$tbl->addColumn($this->lng->txt('description'), 'description', '30%');
$tbl->addColumn($this->lng->txt('members'), 'members', '20%');
$tbl->addColumn($this->lng->txt('actions'), '', '10%');
$entries = $this->mlists->getAll();
if (count($entries))
{
$tbl->enable('select_all');
$tbl->setSelectAllCheckbox('ml_id');
$counter = 0;
include_once("./Services/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
foreach ($entries as $entry)
{
$result[$counter]['check'] = ilUtil::formCheckbox(0, 'ml_id[]', $entry->getId());
$result[$counter]['title'] = $entry->getTitle() . " [#il_ml_" . $entry->getId() . "]";
$result[$counter]['description'] = $entry->getDescription();
$result[$counter]['members'] = count($entry->getAssignedEntries());
$this->ctrl->setParameter($this, 'ml_id', $entry->getId());
//$result[$counter]['edit_text'] = $this->lng->txt("edit");
//$result[$counter]['edit_url'] = $this->ctrl->getLinkTarget($this, "showForm");
//$result[$counter]['members_text'] = $this->lng->txt("members");
//$result[$counter]['members_url'] = $this->ctrl->getLinkTarget($this, "showMembersList");
$current_selection_list = new ilAdvancedSelectionListGUI();
$current_selection_list->setListTitle($this->lng->txt("actions"));
$current_selection_list->setId("act_".$counter);
$current_selection_list->addItem($this->lng->txt("edit"), '', $this->ctrl->getLinkTarget($this, "showForm"));
$current_selection_list->addItem($this->lng->txt("members"), '', $this->ctrl->getLinkTarget($this, "showMembersList"));
if ($mailing_allowed)
$current_selection_list->addItem($this->lng->txt("send_mail_to"), '', $this->ctrl->getLinkTarget($this, "mailToList"));
$current_selection_list->addItem($this->lng->txt("delete"), '', $this->ctrl->getLinkTarget($this, "confirmDelete"));
$result[$counter]['COMMAND_SELECTION_LIST'] = $current_selection_list->getHTML();
++$counter;
}
if ($mailing_allowed)
$tbl->addMultiCommand('mailToList', $this->lng->txt('send_mail_to'));
$tbl->addMultiCommand('confirmDelete', $this->lng->txt('delete'));
}
else
{
$tbl->disable('header');
$tbl->disable('footer');
$tbl->setNoEntriesText($this->lng->txt('mail_search_no'));
}
$tbl->setData($result);
$tbl->addCommandButton('showForm', $this->lng->txt('add'));
$this->tpl->setVariable('MAILING_LISTS', $tbl->getHTML());
$this->tpl->show();
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMailingListsGUI::showMembersList ( )

Definition at line 411 of file class.ilMailingListsGUI.php.

References $result, ilUtil\formCheckbox(), and showMailingLists().

Referenced by confirmDeleteMembers(), performDeleteMembers(), saveAssignmentForm(), and showAssignmentForm().

{
if (!$this->mlists->getCurrentMailingList()->getId())
{
$this->showMailingLists();
return true;
}
$this->ctrl->setParameter($this, 'cmd', 'post');
$this->ctrl->setParameter($this, 'ml_id', $this->mlists->getCurrentMailingList()->getId());
$this->tpl->setVariable('HEADER', $this->lng->txt('mail'));
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.mail_mailing_lists_members.html', 'Services/Contact');
$tbl = new ilTable2GUI($this);
$tbl->setId('show_mlng_mmbrs_list_tbl');
$tbl->setFormAction($this->ctrl->getFormAction($this), 'showMemberForm');
$tbl->setTitle($this->lng->txt('mail_members_of_mailing_list') . ' ' .$this->mlists->getCurrentMailingList()->getTitle());
$tbl->setRowTemplate('tpl.mail_mailing_lists_membersrow.html', 'Services/Contact');
$this->ctrl->setParameter($this, 'cmd', 'showMembersList');
$tbl->setDefaultOrderField('title');
$result = array();
$tbl->addColumn('', 'check', '10%');
$tbl->addColumn($this->lng->txt('title'), 'title', '90%');
$assigned_entries = $this->mlists->getCurrentMailingList()->getAssignedEntries();
if (count($assigned_entries))
{
$tbl->enable('select_all');
$tbl->setSelectAllCheckbox('a_id');
$counter = 0;
foreach ($assigned_entries as $entry)
{
$result[$counter]['check'] = ilUtil::formCheckbox(0, 'a_id[]', $entry['a_id']);
$result[$counter]['title'] = ($entry['login'] != '' ? $entry['login'] : $entry['email']);
++$counter;
}
$tbl->addMultiCommand('confirmDeleteMembers', $this->lng->txt('delete'));
}
else
{
$tbl->disable('header');
$tbl->disable('footer');
$tbl->setNoEntriesText($this->lng->txt('mail_search_no'));
}
$tbl->setData($result);
$tbl->addCommandButton('showAssignmentForm', $this->lng->txt('add'));
$tbl->addCommandButton('showMailingLists', $this->lng->txt('back'));
$this->tpl->setVariable('MEMBERS_LIST', $tbl->getHTML());
$this->tpl->show();
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilMailingListsGUI::$abook = null
private

Definition at line 43 of file class.ilMailingListsGUI.php.

ilMailingListsGUI::$ctrl = null
private

Definition at line 38 of file class.ilMailingListsGUI.php.

ilMailingListsGUI::$error = array()
private

Definition at line 45 of file class.ilMailingListsGUI.php.

Referenced by saveAssignmentForm().

ilMailingListsGUI::$form_gui = null
private

Definition at line 47 of file class.ilMailingListsGUI.php.

ilMailingListsGUI::$lng = null
private

Definition at line 39 of file class.ilMailingListsGUI.php.

Referenced by __construct().

ilMailingListsGUI::$mlists = null
private

Definition at line 42 of file class.ilMailingListsGUI.php.

ilMailingListsGUI::$tpl = null
private

Definition at line 37 of file class.ilMailingListsGUI.php.

Referenced by __construct().

ilMailingListsGUI::$umail = null
private

Definition at line 41 of file class.ilMailingListsGUI.php.


The documentation for this class was generated from the following file: