5 require_once
'Services/User/classes/class.ilObjUser.php';
6 require_once
'Services/Mail/classes/class.ilMailbox.php';
7 require_once
'Services/Mail/classes/class.ilMail.php';
8 require_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
9 include_once
'Services/Mail/classes/class.ilMailFolderTableGUI.php';
41 $this->umail =
new ilMail($ilUser->getId());
42 $this->mbox =
new ilMailBox($ilUser->getId());
46 $_GET[
'mobj_id'] = $_POST[
'mobj_id'];
49 if(!(
int)
$_GET[
'mobj_id'])
51 $_GET[
'mobj_id'] = $this->mbox->getInboxFolder();
54 $ilCtrl->saveParameter($this,
'mobj_id');
55 $ilCtrl->setParameter($this,
'mobj_id',
$_GET[
'mobj_id']);
63 $_GET[
"cmd"] =
'editFolder';
66 $this->current_select_cmd =
$_POST[
'select_cmd'];
67 $this->current_selected_cmd =
$_POST[
'selected_cmd'];
69 else if (
$_POST[
"select_cmd2"])
72 $_GET[
"cmd"] =
'editFolder';
73 $this->current_select_cmd =
$_POST[
'select_cmd2'];
74 $this->current_selected_cmd =
$_POST[
'selected_cmd2'];
80 if (
$_GET[
'selected_cmd'] ==
"deleteMails" &&
$_GET[
"mail_id"])
82 $_GET[
"cmd"] =
"editFolder";
83 $this->current_selected_cmd =
"deleteMails";
90 $cmd = $this->ctrl->getCmd();
91 if(
$cmd ==
'changeFolder' &&
92 is_numeric(
$_POST[
'selected_cmd']) &&
95 $this->current_selected_cmd = (int)
$_POST[
'selected_cmd'];
98 $forward_class = $this->ctrl->getNextClass($this);
99 switch($forward_class)
102 require_once
'Services/Contact/classes/class.ilContactGUI.php';
106 case 'ilmailoptionsgui':
107 include_once
'Services/Mail/classes/class.ilMailOptionsGUI.php';
112 case 'ilpublicuserprofilegui':
113 include_once(
"Services/User/classes/class.ilPublicUserProfileGUI.php");
114 $this->tpl->setTitle($this->lng->txt(
"mail"));
115 $this->ctrl->saveParameter($this,
"mail_id");
117 $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this,
"showMail"));
118 $ret = $this->ctrl->forwardCommand($profile_gui);
121 $this->tpl->setContent(
$ret);
127 if (!(
$cmd = $this->ctrl->getCmd()))
150 $this->umail->deleteMailsOfFolder(
$_GET[
'mobj_id']);
160 if($this->umail->countMailsOfFolder((
int)
$_GET[
'mobj_id']))
162 $this->askForConfirmation =
true;
174 $this->ctrl->setParameter($this,
"mail_id",
$_GET[
"mail_id"]);
176 $this->tpl->setTitle($this->lng->txt(
"mail"));
179 $this->tpl->setVariable(
"TBL_TITLE", $this->lng->txt(
"profile_of").
" ".
182 $this->tpl->setVariable(
"TBL_TITLE_IMG_ALT", $this->lng->txt(
"public_profile"));
184 include_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
186 $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this,
"showMail"));
187 $this->tpl->setContent($ilCtrl->getHTML($profile_gui));
199 $ilToolbar->addSeparator();
202 $ilToolbar->addButton($this->lng->txt(
'mail_add_subfolder'), $this->ctrl->getLinkTarget($this,
'addSubFolder'));
204 if($check_uf ==
true)
206 $ilToolbar->addButton($this->lng->txt(
'rename'), $this->ctrl->getLinkTarget($this,
'renameSubFolder'));
207 $ilToolbar->addButton($this->lng->txt(
'delete'), $this->ctrl->getLinkTarget($this,
'deleteSubFolder'));
214 public function showFolder($a_show_confirmation =
false)
222 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
223 $this->tpl->setTitle($this->lng->txt(
'mail'));
225 $sentFolderId = $this->mbox->getSentFolder();
226 $draftsFolderId = $this->mbox->getDraftsFolder();
228 $isTrashFolder =
$_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
229 $isSentFolder =
$_GET[
'mobj_id'] == $sentFolderId;
230 $isDraftFolder =
$_GET[
'mobj_id'] == $draftsFolderId;
232 if($this->current_selected_cmd ==
'deleteMails' &&
233 !$this->errorDelete &&
234 $this->current_selected_cmd !=
'confirm' &&
237 if(isset($_REQUEST[
'mail_id']) && !is_array($_REQUEST[
'mail_id'])) $_REQUEST[
'mail_id'] =
array($_REQUEST[
'mail_id']);
239 $confirmation->setHeaderText($this->lng->txt(
'mail_sure_delete'));
240 $this->ctrl->setParameter($this,
'mail_id', implode(
',', (
array)$_REQUEST[
'mail_id']));
241 $confirmation->setFormAction($this->ctrl->getFormAction($this,
'confirmDeleteMails'));
242 $confirmation->setConfirm($this->lng->txt(
'confirm'),
'confirmDeleteMails');
243 $confirmation->setCancel($this->lng->txt(
'cancel'),
'cancelDeleteMails');
244 $this->tpl->setVariable(
'CONFIRMATION', $confirmation->getHTML());
245 $a_show_confirmation =
true;
248 $folders = $this->mbox->getSubFolders();
249 $mtree =
new ilTree($ilUser->getId());
253 $check_local =
false;
257 $folder_d = $mtree->getNodeData(
$_GET[
'mobj_id']);
258 if($folder_d[
'm_type'] ==
'user_folder')
262 else if($folder_d[
'm_type'] ==
'local')
269 $mailtable->isSentFolder($isSentFolder)
270 ->isDraftFolder($isDraftFolder)
271 ->isTrashFolder($isTrashFolder)
273 $mailtable->setSelectedItems(
$_POST[
'mail_id']);
277 $mailtable->prepareHTML();
282 $this->lng->txt($e->getMessage()) !=
'-'.$e->getMessage().
'-' ?
283 $this->lng->txt($e->getMessage()) :
288 $table_html = $mailtable->getHtml();
290 $folder_options =
array();
293 foreach($folders as $folder)
295 $folder_d = $mtree->getNodeData($folder[
'obj_id']);
297 if($folder[
'obj_id'] == $_GET[
'mobj_id'])
299 if($folder[
'type'] ==
'user_folder')
303 else if($folder[
'type'] ==
'local')
310 if($folder[
'type'] ==
'user_folder')
313 for ($i = 2; $i < $folder_d[
'depth'] - 1; $i++)
318 if ($folder_d[
'depth'] > 1)
323 $folder_options[$folder[
'obj_id']] = $pre.
' '.$folder[
'title'];
327 $folder_options[$folder[
'obj_id']] = $this->lng->txt(
'mail_'.$folder[
'title']);
332 if($a_show_confirmation ==
false && $this->askForConfirmation ==
false)
336 $ilToolbar->addText($this->lng->txt(
'mail_change_to_folder'));
337 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
339 $si->setOptions($folder_options);
340 $si->setValue($_GET[
'mobj_id']);
341 $ilToolbar->addInputItem(
$si);
343 $ilToolbar->addFormButton($this->lng->txt(
'change'),
'showFolder');
344 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'showFolder'));
346 if($check_local ==
true || $check_uf ==
true)
353 if($mailtable->isTrashFolder() &&
354 $mailtable->getNumerOfMails() > 0 &&
355 $this->askForConfirmation)
358 $confirmation->setHeaderText($this->lng->txt(
'mail_empty_trash_confirmation'));
359 $confirmation->setFormAction($this->ctrl->getFormAction($this,
'performEmptyTrash'));
360 $confirmation->setConfirm($this->lng->txt(
'confirm'),
'performEmptyTrash');
361 $confirmation->setCancel($this->lng->txt(
'cancel'),
'cancelEmptyTrash');
362 $this->tpl->setVariable(
'CONFIRMATION', $confirmation->getHTML());
365 $this->tpl->setVariable(
'MAIL_TABLE', $table_html);
373 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
377 $oConfirmationGUI->setFormAction($this->ctrl->getFormAction($this,
"showFolder"));
378 $oConfirmationGUI->setHeaderText($this->lng->txt(
"mail_sure_delete_folder"));
379 $oConfirmationGUI->setCancel($this->lng->txt(
"cancel"),
"showFolder");
380 $oConfirmationGUI->setConfirm($this->lng->txt(
"confirm"),
"performDeleteSubfolder");
381 $this->tpl->setVariable(
'CONFIRMATION',$oConfirmationGUI->getHTML());
383 return $this->showFolder(
true);
386 return $this->showFolder(
false);
391 $new_parent = $this->mbox->getParentFolderId((
int)
$_GET[
'mobj_id']);
392 if($this->mbox->deleteFolder((
int)$_GET[
'mobj_id']))
395 $this->ctrl->setParameterByClass(
'ilMailGUI',
'mobj_id', (
int)$new_parent);
396 $this->ctrl->redirectByClass(
'ilMailGUI');
410 if (empty(
$_POST[
'subfolder_title']))
413 return $this->addSubFolder();
420 $this->ctrl->setParameterByClass(
"ilMailGUI",
'mobj_id', $mobj_id);
421 $this->ctrl->redirectByClass(
"ilMailGUI");
426 $this->addSubFolder();
431 public function addSubFolder()
439 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
441 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
442 $tpl->setTitle($this->lng->txt(
'mail'));
445 $oForm->setFormAction($ilCtrl->getFormAction($this,
'performAddSubFolder'));
446 $oForm->setTitle($this->lng->txt(
'mail_add_folder'));
450 $oTitle->setTitle($this->lng->txt(
'title'));
451 $oTitle->setPostVar(
'subfolder_title');
452 $oForm->addItem($oTitle);
454 $oForm->addCommandButton(
'performAddSubFolder', $this->lng->txt(
'save'));
455 $oForm->addCommandButton(
'showFolder', $this->lng->txt(
'cancel'));
457 $tpl->setVariable(
'FORM', $oForm->getHTML());
463 public function renameSubFolder()
471 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
473 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
474 $tpl->setTitle($this->lng->txt(
'mail'));
477 $oForm->setFormAction($ilCtrl->getFormAction($this,
'performRenameSubFolder'));
478 $oForm->setTitle($this->lng->txt(
'mail_rename_folder'));
482 $oTitle->setTitle($this->lng->txt(
'title'));
483 $tmp_data = $this->mbox->getFolderData(
$_GET[
"mobj_id"]);
484 $oTitle->setValue($tmp_data[
"title"]);
485 $oTitle->setPostVar(
'subfolder_title');
486 $oForm->addItem($oTitle);
488 $oForm->addCommandButton(
'performRenameSubFolder', $this->lng->txt(
'save'));
489 $oForm->addCommandButton(
'showFolder', $this->lng->txt(
'cancel'));
490 $tpl->setVariable(
'FORM', $oForm->getHTML());
500 $tmp_data = $this->mbox->getFolderData(
$_GET[
"mobj_id"]);
501 if ($tmp_data[
"title"] !=
$_POST[
"subfolder_title"])
503 if (
$_POST[
"subfolder_title"] ==
"")
506 return $this->renameSubFolder();
514 $this->ctrl->redirectByClass(
"ilMailGUI");
519 return $this->renameSubFolder();
523 return $this->showFolder();
528 switch ($this->current_selected_cmd)
531 if(!(
int)
$_GET[
"mail_id"] || !(
int)$this->current_selected_cmd)
534 return $this->showMail();
537 if ($this->umail->moveMailsToFolder(
array(
$_GET[
"mail_id"]), $this->current_selected_cmd))
540 $this->ctrl->redirectByClass(
"ilMailGUI");
556 switch ($this->current_selected_cmd)
558 case 'markMailsRead':
559 if(is_array(
$_POST[
"mail_id"]))
561 $this->umail->markRead(
$_POST[
"mail_id"]);
568 case 'markMailsUnread':
569 if(is_array(
$_POST[
"mail_id"]))
571 $this->umail->markUnread(
$_POST[
"mail_id"]);
581 if($this->mbox->getTrashFolder() ==
$_GET[
"mobj_id"])
583 if(!is_array(
$_POST[
"mail_id"]))
586 $this->errorDelete =
true;
592 if(!is_array(
$_POST[
"mail_id"]))
596 else if($this->umail->moveMailsToFolder(
$_POST[
"mail_id"], $this->mbox->getTrashFolder()))
609 $this->ctrl->setParameterByClass(
"ilmailoptionsgui",
"cmd",
"add");
610 $this->ctrl->redirectByClass(
"ilmailoptionsgui");
614 if(!is_array(
$_POST[
"mail_id"]))
618 else if($this->umail->moveMailsToFolder(
$_POST[
"mail_id"],$this->current_selected_cmd))
637 if($this->mbox->getTrashFolder() ==
$_GET[
'mobj_id'])
639 $_POST[
'mail_id'] = $mail_ids = explode(
',',
$_GET[
'mail_id']);
640 if(!is_array($mail_ids))
644 else if($this->umail->deleteMails($mail_ids))
660 $this->ctrl->redirect($this);
666 public function showMail()
673 global
$ilUser, $ilToolbar, $ilTabs;
681 $ilTabs->clearTargets();
682 $ilTabs->setBackTarget($this->lng->txt(
'back_to_folder'), $this->ctrl->getFormAction($this,
'showFolder'));
684 $this->umail->markRead(
array((
int)
$_GET[
'mail_id']));
685 $mailData = $this->umail->getMail((
int)$_GET[
'mail_id']);
687 $this->tpl->setTitle($this->lng->txt(
'mail_mails_of'));
689 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
692 $form->setPreventDoubleSubmission(
false);
693 $form->setTableWidth(
'100%');
694 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
695 $form->setFormAction($this->ctrl->getFormAction($this,
'showMail'));
696 $this->ctrl->clearParameters($this);
697 $form->setTitle($this->lng->txt(
'mail_mails_of'));
704 include_once
'Services/Accessibility/classes/class.ilAccessKeyGUI.php';
711 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
713 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mail_id', (
int)$_GET[
'mail_id']);
714 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'reply');
715 $this->ctrl->clearParametersByClass(
'iliasmailformgui');
716 $ilToolbar->addButton($this->lng->txt(
'reply'), $this->ctrl->getLinkTargetByClass(
'ilmailformgui'),
'',
ilAccessKey::REPLY);
717 $this->ctrl->clearParameters($this);
720 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mail_id', (
int)$_GET[
'mail_id']);
721 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'forward');
722 $this->ctrl->clearParametersByClass(
'iliasmailformgui');
723 $ilToolbar->addButton($this->lng->txt(
'forward'), $this->ctrl->getLinkTargetByClass(
'ilmailformgui'),
'',
ilAccessKey::FORWARD_MAIL);
724 $this->ctrl->clearParameters($this);
726 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
727 $ilToolbar->addButton($this->lng->txt(
'print'), $this->ctrl->getLinkTarget($this,
'printMail'),
'_blank');
728 $this->ctrl->clearParameters($this);
730 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
731 $this->ctrl->setParameter($this,
'selected_cmd',
'deleteMails');
732 $ilToolbar->addButton($this->lng->txt(
'delete'), $this->ctrl->getLinkTarget($this),
'',
ilAccessKey::DELETE);
733 $this->ctrl->clearParameters($this);
735 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
737 $linked_fullname = $sender->getPublicName();
738 $picture =
ilUtil::img($sender->getPersonalPicturePath(
'xsmall'), $sender->getPublicName());
739 $add_to_addb_button =
'';
743 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
744 $this->ctrl->setParameter($this,
'user', $sender->getId());
745 $linked_fullname =
'<br /><a href="' . $this->ctrl->getLinkTarget($this,
'showUser') .
'" title="'.$linked_fullname.
'">' . $linked_fullname .
'</a>';
746 $this->ctrl->clearParameters($this);
750 $from->
setHtml($picture .
' ' . $linked_fullname . $add_to_addb_button);
751 $form->addItem($from);
753 else if(!$sender || !$sender->getId())
756 $from->
setHtml($mailData[
'import_name'] .
' (' . $this->lng->txt(
'user_deleted') .
')');
757 $form->addItem($from);
763 $form->addItem($from);
770 if($mailData[
'rcp_cc'])
777 if($mailData[
'rcp_bcc'])
781 $form->addItem($bcc);
786 $form->addItem($subject);
790 $form->addItem($date);
794 $form->addItem($message);
796 if($mailData[
'attachments'])
802 foreach($mailData[
'attachments'] as
$file)
807 $att->
setHtml($radiog->render());
808 $form->addCommandButton(
'deliverFile', $this->lng->txt(
'download'));
809 $form->addItem($att);
812 $isTrashFolder =
false;
813 if($this->mbox->getTrashFolder() == $_GET[
'mobj_id'])
815 $isTrashFolder =
true;
818 $current_folder_data = $this->mbox->getFolderData((
int)$_GET[
'mobj_id']);
820 $selectOptions =
array();
821 $actions = $this->mbox->getActions((
int)$_GET[
"mobj_id"]);
822 foreach($actions as $key => $action)
824 if($key ==
'moveMails')
826 $folders = $this->mbox->getSubFolders();
827 foreach($folders as $folder)
830 ($folder[
"type"] !=
'trash' || !$isTrashFolder) &&
831 $folder[
'obj_id'] != $current_folder_data[
'obj_id']
835 if($folder[
'type'] !=
'user_folder')
837 $optionText = $action .
' ' . $this->lng->txt(
'mail_' . $folder[
'title']) . ($folder[
'type'] ==
'trash' ?
' (' . $this->lng->txt(
'delete') .
')' :
'');
841 $optionText = $action .
' ' . $folder[
'title'];
844 $selectOptions[$folder[
'obj_id']] = $optionText;
850 if($current_folder_data[
'type'] ==
'user_folder')
852 $txt_folder = $current_folder_data[
'title'];
856 $txt_folder = $this->lng->txt(
'mail_' . $current_folder_data[
'title']);
858 $ilToolbar->addSeparator();
859 $ilToolbar->addText(sprintf($this->lng->txt(
'current_folder'), $txt_folder));
861 if(is_array($selectOptions) && count($selectOptions))
863 include_once
'Services/Form/classes/class.ilSelectInputGUI.php';
865 $actions->setOptions($selectOptions);
866 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
867 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'showMail'));
868 $ilToolbar->addInputItem($actions);
869 $ilToolbar->addFormButton($this->lng->txt(
'submit'),
'changeFolder');
873 $prevMail = $this->umail->getPreviousMail((
int)$_GET[
'mail_id']);
874 $nextMail = $this->umail->getNextMail((
int)$_GET[
'mail_id']);
875 if(is_array($prevMail) || is_array($nextMail))
877 $ilToolbar->addSeparator();
879 if($prevMail[
'mail_id'])
881 $this->ctrl->setParameter($this,
'mail_id', $prevMail[
'mail_id']);
882 $ilToolbar->addButton($this->lng->txt(
'previous'), $this->ctrl->getLinkTarget($this,
'showMail'));
883 $this->ctrl->clearParameters($this);
886 if($nextMail[
'mail_id'])
888 $this->ctrl->setParameter($this,
'mail_id', $nextMail[
'mail_id']);
889 $ilToolbar->addButton($this->lng->txt(
'next'), $this->ctrl->getLinkTarget($this,
'showMail'));
890 $this->ctrl->clearParameters($this);
894 $this->tpl->setContent($form->getHTML());
901 public function printMail()
908 $tplprint =
new ilTemplate(
'tpl.mail_print.html',
true,
true,
'Services/Mail');
909 $tplprint->setVariable(
'JSPATH', $tpl->tplPath);
911 $mailData = $this->umail->getMail((
int)
$_GET[
'mail_id']);
918 $tplprint->setVariable(
'TXT_FROM', $this->lng->txt(
'from'));
919 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
921 $tplprint->setVariable(
'FROM', $sender->getPublicName());
923 else if(!$sender || !$sender->getId())
925 $tplprint->setVariable(
'FROM', $mailData[
'import_name'] .
' (' . $this->lng->txt(
'user_deleted') .
')');
929 $tplprint->setVariable(
'FROM', ilMail::_getIliasMailerName());
932 $tplprint->setVariable(
'TXT_TO', $this->lng->txt(
'mail_to'));
933 $tplprint->setVariable(
'TO', $mailData[
'rcp_to']);
935 if($mailData[
'rcp_cc'])
937 $tplprint->setCurrentBlock(
'cc');
938 $tplprint->setVariable(
'TXT_CC', $this->lng->txt(
'cc'));
939 $tplprint->setVariable(
'CC', $mailData[
'rcp_cc']);
940 $tplprint->parseCurrentBlock();
943 if($mailData[
'rcp_bcc'])
945 $tplprint->setCurrentBlock(
'bcc');
946 $tplprint->setVariable(
'TXT_BCC', $this->lng->txt(
'bc'));
947 $tplprint->setVariable(
'BCC', $mailData[
'rcp_bcc']);
948 $tplprint->parseCurrentBlock();
951 $tplprint->setVariable(
'TXT_SUBJECT', $this->lng->txt(
'subject'));
952 $tplprint->setVariable(
'SUBJECT', htmlspecialchars($mailData[
'm_subject']));
954 $tplprint->setVariable(
'TXT_DATE', $this->lng->txt(
'date'));
957 $tplprint->setVariable(
'TXT_MESSAGE', $this->lng->txt(
'message'));
958 $tplprint->setVariable(
'MAIL_MESSAGE', nl2br(htmlspecialchars($mailData[
'm_message'])));
975 :
$_GET[
"filename"]));
980 require_once
"./Services/Mail/classes/class.ilFileDataMail.php";
1008 $sentFolderId = $this->mbox->getSentFolder();
1009 $draftsFolderId = $this->mbox->getDraftsFolder();
1011 $isTrashFolder =
$_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
1012 $isSentFolder =
$_GET[
'mobj_id'] == $sentFolderId;
1013 $isDraftFolder =
$_GET[
'mobj_id'] == $draftsFolderId;
1016 $table->isSentFolder($isSentFolder)
1017 ->isDraftFolder($isDraftFolder)
1018 ->isTrashFolder($isTrashFolder)
1020 $table->resetOffset();
1021 $table->writeFilterToSession();
1023 $this->showFolder();
1031 $sentFolderId = $this->mbox->getSentFolder();
1032 $draftsFolderId = $this->mbox->getDraftsFolder();
1034 $isTrashFolder =
$_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
1035 $isSentFolder =
$_GET[
'mobj_id'] == $sentFolderId;
1036 $isDraftFolder =
$_GET[
'mobj_id'] == $draftsFolderId;
1039 $table->isSentFolder($isSentFolder)
1040 ->isDraftFolder($isDraftFolder)
1041 ->isTrashFolder($isTrashFolder)
1043 $table->resetOffset();
1044 $table->resetFilter();
1046 $this->showFolder();
static _lookupLogin($a_user_id)
lookup login
This class represents an option in a radio group.
This class handles all operations on files (attachments) in directory ilias_data/mail.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static get($a_var)
Get a value.
const VIEWMODE_SESSION_KEY
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
GUI class for public user profile presentation.
addSubfolderCommands($check_uf=false)
askForEmptyTrash()
confirmation message for empty trash action
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
This class handles base functions for mail handling.
special template class to simplify handling of ITX/PEAR
This class represents a text property in a property form.
static formatDate(ilDateTime $date)
Format a date public.
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
cancelEmptyTrash()
cancel Empty Trash Action and return to folder
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
deleteSubfolder($a_show_confirm=true)
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static _lookupPref($a_usr_id, $a_keyword)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
performEmptyTrash()
empty Trash and return to folder
static htmlencodePlainString($a_str, $a_make_links_clickable, $a_detect_goto_links=false)
Encodes a plain text string into HTML for display in a browser.
Confirmation screen class.