◆ __construct()
ilMailAddressbookGUI::__construct |
( |
| ) |
|
◆ activateTab()
ilMailAddressbookGUI::activateTab |
( |
|
$a_id | ) |
|
◆ cancel()
ilMailAddressbookGUI::cancel |
( |
| ) |
|
◆ checkInput()
ilMailAddressbookGUI::checkInput |
( |
|
$addr_id = 0 | ) |
|
Check user's input.
Definition at line 106 of file class.ilMailAddressbookGUI.php.
References $_GET, $_POST, $_SESSION, $ilSetting, $lng, ilObjUser\_lookupId(), ilUtil\is_email(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
109 if (!strcmp(trim(
$_POST[
"login"]),
"") &&
110 !strcmp(trim(
$_POST[
"email"]),
""))
115 else if (
$_POST[
"login"] !=
"" &&
121 else if (
$_POST[
"email"] &&
129 (($this->existingEntry != $addr_id && $addr_id > 0) || !$addr_id))
135 return $error ? false :
true;
static is_email($a_email)
This preg-based function checks whether an e-mail address is formally valid.
static _lookupId($a_user_str)
lookup id by login
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
◆ confirmDelete()
ilMailAddressbookGUI::confirmDelete |
( |
| ) |
|
Confirm delete entry.
Definition at line 199 of file class.ilMailAddressbookGUI.php.
References $_GET, $_POST, $lng, and ilUtil\sendInfo().
203 $addr_ids = ((int)
$_GET[
'addr_id']) ? array((
int)
$_GET[
'addr_id']) :
$_POST[
'addr_id'];
208 $this->showAddressbook();
212 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
216 $c_gui->setFormAction($this->ctrl->getFormAction($this,
"performDelete"));
217 $c_gui->setHeaderText($this->lng->txt(
"mail_sure_delete_entry"));
218 $c_gui->setCancel($this->lng->txt(
"cancel"),
"showAddressbook");
219 $c_gui->setConfirm($this->lng->txt(
"confirm"),
"performDelete");
222 foreach($addr_ids as $addr_id)
224 $entry = $this->abook->getEntry($addr_id);
225 $c_gui->addItem(
"addr_id[]", $addr_id, $entry[
"login"] ? $entry[
"login"] : $entry[
"email"]);
228 $this->tpl->setTitle($this->lng->txt(
"mail_addressbook"));
229 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.mail_addressbook.html",
"Services/Contact");
230 $this->tpl->setVariable(
'DELETE_CONFIRMATION', $c_gui->getHTML());
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Confirmation screen class.
◆ executeCommand()
ilMailAddressbookGUI::executeCommand |
( |
| ) |
|
Definition at line 45 of file class.ilMailAddressbookGUI.php.
References $cmd, $ilUser, activateTab(), and showSubTabs().
50 $forward_class = $this->ctrl->getNextClass($this);
53 $this->umail->savePostData($ilUser->getId(), array(),
'',
'',
'',
'',
'',
'',
'',
'');
55 switch($forward_class)
58 include_once
'Services/Mail/classes/class.ilMailFormGUI.php';
62 case 'ilmailsearchcoursesgui':
63 include_once
'Services/Contact/classes/class.ilMailSearchCoursesGUI.php';
67 $this->ctrl->setReturn($this,
"showAddressbook");
71 case 'ilmailsearchgroupsgui':
72 include_once
'Services/Contact/classes/class.ilMailSearchGroupsGUI.php';
76 $this->ctrl->setReturn($this,
"showAddressbook");
80 case 'ilmailinglistsgui':
81 include_once
'Services/Contact/classes/class.ilMailingListsGUI.php';
85 $this->ctrl->setReturn($this,
"showAddressbook");
92 if (!(
$cmd = $this->ctrl->getCmd()))
94 $cmd =
"showAddressbook";
◆ lookupAddressbookAsync()
ilMailAddressbookGUI::lookupAddressbookAsync |
( |
| ) |
|
Definition at line 722 of file class.ilMailAddressbookGUI.php.
References $_REQUEST, $result, ilJsonUtil\encode(), and exit.
724 include_once
'Services/JSON/classes/class.ilJsonUtil.php';
725 include_once
'Services/Contact/classes/class.ilMailAddressbook.php';
static encode($mixed, $suppress_native=false)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
◆ lookupEmailsAsync()
ilMailAddressbookGUI::lookupEmailsAsync |
( |
| ) |
|
Definition at line 735 of file class.ilMailAddressbookGUI.php.
References $_REQUEST, $result, ilJsonUtil\encode(), and exit.
737 include_once
'Services/JSON/classes/class.ilJsonUtil.php';
738 include_once
'Services/Contact/classes/class.ilMailAddressbook.php';
static encode($mixed, $suppress_native=false)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
◆ lookupUsersAsync()
ilMailAddressbookGUI::lookupUsersAsync |
( |
| ) |
|
Definition at line 709 of file class.ilMailAddressbookGUI.php.
References $_REQUEST, $result, ilJsonUtil\encode(), and exit.
711 include_once
'Services/JSON/classes/class.ilJsonUtil.php';
712 include_once
'Services/Contact/classes/class.ilMailAddressbook.php';
static encode($mixed, $suppress_native=false)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
◆ mailToUsers()
ilMailAddressbookGUI::mailToUsers |
( |
| ) |
|
Definition at line 333 of file class.ilMailAddressbookGUI.php.
References $_GET, $_POST, $ilUser, ilUtil\redirect(), and ilUtil\sendInfo().
337 if (
$_GET[
'addr_id'] && is_array(
$_GET[
'addr_id']))
338 $addr_ids =
$_GET[
'addr_id'];
339 else if ((
int)
$_GET[
'addr_id'])
340 $addr_ids = array((
int)$_GET[
'addr_id']);
341 else if (
$_POST[
'addr_id'] && is_array(
$_POST[
'addr_id']))
342 $addr_ids =
$_POST[
'addr_id'];
343 else if ((
int)
$_POST[
'addr_id'])
344 $addr_ids = array((
int)$_POST[
'addr_id']);
351 $this->showAddressbook();
355 $mail_data = $this->umail->getSavedData();
356 if(!is_array($mail_data))
358 $this->umail->savePostData($ilUser->getId(), array(),
'',
'',
'',
'',
'',
'',
'',
'');
362 foreach ($addr_ids as $addr_id)
364 $entry = $this->abook->getEntry($addr_id);
366 if(strlen($entry[
'login']) && !$this->umail->doesRecipientStillExists($entry[
'login'], $mail_data[
'rcp_to'])) {
367 $members[] = $entry[
'login'];
368 }
else if(strlen($entry[
'email']) && !$this->umail->doesRecipientStillExists($entry[
'email'], $mail_data[
'rcp_to'])) {
369 $members[] = $entry[
'email'];
375 $mail_data = $this->umail->appendSearchResult($members,
'to');
376 $this->umail->savePostData(
377 $mail_data[
'user_id'],
378 $mail_data[
'attachments'],
379 $mail_data[
'rcp_to'],
380 $mail_data[
'rcp_cc'],
381 $mail_data[
'rcp_bcc'],
382 $mail_data[
'm_type'],
383 $mail_data[
'm_email'],
384 $mail_data[
'm_subject'],
385 $mail_data[
'm_message'],
386 $mail_data[
'use_placeholders']
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static redirect($a_script)
http redirect to other script
◆ performDelete()
ilMailAddressbookGUI::performDelete |
( |
| ) |
|
◆ resetAddressbookFilter()
ilMailAddressbookGUI::resetAddressbookFilter |
( |
| ) |
|
◆ search()
ilMailAddressbookGUI::search |
( |
| ) |
|
Definition at line 393 of file class.ilMailAddressbookGUI.php.
References $_GET, $_POST, $_SESSION, $ilCtrl, $ilSetting, $ilUser, $lng, $options, $ref_id, $tpl, ilLink\_getStaticLink(), ilChatroom\byRoomId(), ilChatroom\checkPermissionsOfUser(), ilChatroom\lookupPrivateRoomTitle(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilSelectInputGUI\setOptions().
397 $this->showAddressbook();
◆ setAddressbookFilter()
ilMailAddressbookGUI::setAddressbookFilter |
( |
| ) |
|
◆ showSubTabs()
ilMailAddressbookGUI::showSubTabs |
( |
| ) |
|
Definition at line 748 of file class.ilMailAddressbookGUI.php.
Referenced by executeCommand().
752 if($this->tabs_gui->hasTabs())
754 $this->tabs_gui->addSubTab(
'mail_my_entries', $this->lng->txt(
'mail_my_entries'), $this->ctrl->getLinkTarget($this));
755 $this->tabs_gui->addSubTab(
'mail_my_mailing_lists', $this->lng->txt(
'mail_my_mailing_lists'), $this->ctrl->getLinkTargetByClass(
'ilmailinglistsgui'));
756 $this->tabs_gui->addSubTab(
'mail_my_courses', $this->lng->txt(
'mail_my_courses'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchcoursesgui'));
757 $this->tabs_gui->addSubTab(
'mail_my_groups', $this->lng->txt(
'mail_my_groups'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchgroupsgui'));
758 $this->has_sub_tabs =
true;
762 $ilHelp->setScreenIdComponent(
"contacts");
764 $this->tabs_gui->addTab(
'mail_my_entries', $this->lng->txt(
'mail_my_entries'), $this->ctrl->getLinkTarget($this));
765 $this->tabs_gui->addTab(
'mail_my_mailing_lists', $this->lng->txt(
'mail_my_mailing_lists'), $this->ctrl->getLinkTargetByClass(
'ilmailinglistsgui'));
766 $this->tabs_gui->addTab(
'mail_my_courses', $this->lng->txt(
'mail_my_courses'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchcoursesgui'));
767 $this->tabs_gui->addTab(
'mail_my_groups', $this->lng->txt(
'mail_my_groups'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchgroupsgui'));
◆ $abook
ilMailAddressbookGUI::$abook = null |
|
private |
◆ $ctrl
ilMailAddressbookGUI::$ctrl = null |
◆ $lng
ilMailAddressbookGUI::$lng = null |
|
private |
◆ $tabs_gui
ilMailAddressbookGUI::$tabs_gui = null |
|
private |
◆ $tpl
ilMailAddressbookGUI::$tpl = null |
|
private |
◆ $umail
ilMailAddressbookGUI::$umail = null |
|
private |
The documentation for this class was generated from the following file: