ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMailFolderGUI Class Reference
+ Collaboration diagram for ilMailFolderGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 add ()
 
 cancelEmptyTrash ()
 cancel Empty Trash Action and return to folder More...
 
 performEmptyTrash ()
 empty Trash and return to folder More...
 
 askForEmptyTrash ()
 confirmation message for empty trash action More...
 
 showUser ()
 
 addSubfolderCommands ($check_uf=false)
 
 deleteSubfolder ($a_show_confirm=true)
 
 performDeleteSubFolder ()
 
 performAddSubFolder ()
 
 performRenameSubFolder ()
 
 changeFolder ()
 
 editFolder ()
 
 confirmDeleteMails ()
 
 cancelDeleteMails ()
 
 deliverFile ()
 
 applyFilter ()
 
 resetFilter ()
 

Data Fields

 $umail = null
 
 $mbox = null
 

Private Attributes

 $current_select_cmd
 
 $current_selected_cmd
 
 $tpl = null
 
 $ctrl = null
 
 $lng = null
 
 $errorDelete = false
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMailFolderGUI::__construct ( )

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

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

38  {
39  global $tpl, $ilCtrl, $lng, $ilUser;
40 
41  $this->tpl = $tpl;
42  $this->ctrl = $ilCtrl;
43  $this->lng = $lng;
44 
45  $this->umail = new ilMail($ilUser->getId());
46  $this->mbox = new ilMailBox($ilUser->getId());
47 
48  if(isset($_POST['mobj_id']) && (int)$_POST['mobj_id'])
49  {
50  $_GET['mobj_id'] = $_POST['mobj_id'];
51  }
52  // IF THERE IS NO OBJ_ID GIVEN GET THE ID OF MAIL ROOT NODE
53  if(!(int)$_GET['mobj_id'])
54  {
55  $_GET['mobj_id'] = $this->mbox->getInboxFolder();
56  }
57  $_GET['mobj_id'] = (int)$_GET['mobj_id'];
58  $ilCtrl->saveParameter($this, 'mobj_id');
59  $ilCtrl->setParameter($this, 'mobj_id', $_GET['mobj_id']);
60 
61  }
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
Class Mail this class handles base functions for mail handling.
global $ilUser
Definition: imgupload.php:15

Member Function Documentation

◆ add()

ilMailFolderGUI::add ( )

Definition at line 142 of file class.ilMailFolderGUI.php.

References $_GET, $ilUser, $lng, and ilUtil\sendInfo().

143  {
144  global $lng, $ilUser;
145 
146  if($_GET["mail_id"] != "")
147  {
148  if (is_array($mail_data = $this->umail->getMail($_GET["mail_id"])))
149  {
150  require_once "Services/Contact/classes/class.ilAddressbook.php";
151  $abook = new ilAddressbook($ilUser->getId());
152 
153  $tmp_user = new ilObjUser($mail_data["sender_id"]);
154  if ($abook->checkEntryByLogin($tmp_user->getLogin()) > 0)
155  {
156  ilUtil::sendInfo($lng->txt("mail_entry_exists"));
157  }
158  else
159  {
160  $abook->addEntry($tmp_user->getLogin(),
161  $tmp_user->getFirstname(),
162  $tmp_user->getLastname(),
163  $tmp_user->getEmail());
164  ilUtil::sendInfo($lng->txt("mail_entry_added"));
165  }
166  }
167  }
168  $this->showMail();
169  }
$_GET["client_id"]
Mail Box class Base class for creating and handling mail boxes.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:

◆ addSubfolderCommands()

ilMailFolderGUI::addSubfolderCommands (   $check_uf = false)

Definition at line 227 of file class.ilMailFolderGUI.php.

References $_GET, $_POST, $_REQUEST, $ilUser, $si, ilSession\get(), ilUtil\sendFailure(), ilTree\setTableNames(), and ilMailGUI\VIEWMODE_SESSION_KEY.

228  {
229  global $ilToolbar;
230 
232  {
233  $ilToolbar->addSeparator();
234  }
235 
236  $ilToolbar->addButton($this->lng->txt('mail_add_subfolder'), $this->ctrl->getLinkTarget($this, 'addSubFolder'));
237 
238  if($check_uf == true)
239  {
240  $ilToolbar->addButton($this->lng->txt('rename'), $this->ctrl->getLinkTarget($this, 'renameSubFolder'));
241  $ilToolbar->addButton($this->lng->txt('delete'), $this->ctrl->getLinkTarget($this, 'deleteSubFolder'));
242  }
243  return true;
244  }
static get($a_var)
Get a value.
const VIEWMODE_SESSION_KEY
+ Here is the call graph for this function:

◆ applyFilter()

ilMailFolderGUI::applyFilter ( )

Definition at line 1057 of file class.ilMailFolderGUI.php.

References $_GET.

1058  {
1059  $sentFolderId = $this->mbox->getSentFolder();
1060  $draftsFolderId = $this->mbox->getDraftsFolder();
1061 
1062  $isTrashFolder = $_GET['mobj_id'] == $this->mbox->getTrashFolder();
1063  $isSentFolder = $_GET['mobj_id'] == $sentFolderId;
1064  $isDraftFolder = $_GET['mobj_id'] == $draftsFolderId;
1065 
1066  $table = new ilMailFolderTableGUI($this, (int)$_GET['mobj_id'], 'showFolder');
1067  $table->isSentFolder($isSentFolder)
1068  ->isDraftFolder($isDraftFolder)
1069  ->isTrashFolder($isTrashFolder)
1070  ->initFilter();
1071  $table->resetOffset();
1072  $table->writeFilterToSession();
1073 
1074  $this->showFolder();
1075  }
$_GET["client_id"]

◆ askForEmptyTrash()

ilMailFolderGUI::askForEmptyTrash ( )

confirmation message for empty trash action

Definition at line 192 of file class.ilMailFolderGUI.php.

References $_GET.

193  {
194  if($this->umail->countMailsOfFolder((int)$_GET['mobj_id']))
195  {
196  $this->askForConfirmation = true;
197  }
198 
199  $this->showFolder();
200 
201  return true;
202  }
$_GET["client_id"]

◆ cancelDeleteMails()

◆ cancelEmptyTrash()

ilMailFolderGUI::cancelEmptyTrash ( )

cancel Empty Trash Action and return to folder

Definition at line 174 of file class.ilMailFolderGUI.php.

175  {
176  $this->showFolder();
177  }

◆ changeFolder()

ilMailFolderGUI::changeFolder ( )

Definition at line 559 of file class.ilMailFolderGUI.php.

References $_GET, and ilUtil\sendInfo().

560  {
561  switch ($this->current_selected_cmd)
562  {
563  default:
564  if(!(int)$_GET["mail_id"] || !(int)$this->current_selected_cmd)
565  {
566  ilUtil::sendInfo($this->lng->txt("mail_move_error"));
567  return $this->showMail();
568  }
569 
570  if ($this->umail->moveMailsToFolder(array($_GET["mail_id"]), $this->current_selected_cmd))
571  {
572  ilUtil::sendInfo($this->lng->txt("mail_moved"), true);
573  $this->ctrl->redirectByClass("ilMailGUI");
574  }
575  else
576  {
577  ilUtil::sendInfo($this->lng->txt("mail_move_error"));
578  }
579  break;
580  }
581 
582  $this->showMail();
583 
584  return true;
585  }
$_GET["client_id"]
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
+ Here is the call graph for this function:

◆ confirmDeleteMails()

ilMailFolderGUI::confirmDeleteMails ( )

Definition at line 668 of file class.ilMailFolderGUI.php.

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

669  {
670  if($this->mbox->getTrashFolder() == $_GET['mobj_id'])
671  {
672  $_POST['mail_id'] = $mail_ids = explode(',', $_GET['mail_id']);
673  if(!is_array($mail_ids))
674  {
675  ilUtil::sendInfo($this->lng->txt('mail_select_one'));
676  }
677  else if($this->umail->deleteMails($mail_ids))
678  {
679  $_GET['offset'] = 0;
680  ilUtil::sendInfo($this->lng->txt('mail_deleted'));
681  }
682  else
683  {
684  ilUtil::sendInfo($this->lng->txt('mail_delete_error'));
685  }
686  }
687 
688  $this->showFolder();
689  }
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
+ Here is the call graph for this function:

◆ deleteSubfolder()

ilMailFolderGUI::deleteSubfolder (   $a_show_confirm = true)

Definition at line 402 of file class.ilMailFolderGUI.php.

403  {
404  if($a_show_confirm)
405  {
406  include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
407  $oConfirmationGUI = new ilConfirmationGUI();
408 
409  // set confirm/cancel commands
410  $oConfirmationGUI->setFormAction($this->ctrl->getFormAction($this,"showFolder"));
411  $oConfirmationGUI->setHeaderText($this->lng->txt("mail_sure_delete_folder"));
412  $oConfirmationGUI->setCancel($this->lng->txt("cancel"), "showFolder");
413  $oConfirmationGUI->setConfirm($this->lng->txt("confirm"), "performDeleteSubfolder");
414  $this->tpl->setVariable('CONFIRMATION',$oConfirmationGUI->getHTML());
415 
416  return $this->showFolder(true);
417  }
418  else
419  return $this->showFolder(false);
420  }
Confirmation screen class.

◆ deliverFile()

ilMailFolderGUI::deliverFile ( )

Definition at line 1014 of file class.ilMailFolderGUI.php.

References $_GET, $_POST, $_SESSION, $file, $filename, ilUtil\deliverFile(), and ilUtil\sendInfo().

1015  {
1016  if ($_SESSION["mail_id"])
1017  {
1018  $_GET["mail_id"] = $_SESSION["mail_id"];
1019  }
1020  $_SESSION["mail_id"] = "";
1021 
1022  $filename = ($_SESSION["filename"]
1023  ? $_SESSION["filename"]
1024  : ($_POST["filename"]
1025  ? $_POST["filename"]
1026  : $_GET["filename"]));
1027  $_SESSION["filename"] = "";
1028 
1029  if ($filename != "")
1030  {
1031  require_once "./Services/Mail/classes/class.ilFileDataMail.php";
1032 
1033  // secure filename
1034  $filename = str_replace("..", "", $filename);
1035 
1036  $mfile = new ilFileDataMail($_SESSION["AccountId"]);
1037  if(!is_array($file = $mfile->getAttachmentPathByMD5Filename($filename, $_GET['mail_id'])))
1038  {
1039  ilUtil::sendInfo($this->lng->txt('mail_error_reading_attachment'));
1040  $this->showMail();
1041  }
1042  else
1043  {
1044  ilUtil::deliverFile($file['path'], $file['filename']);
1045  }
1046  }
1047  else
1048  {
1049  ilUtil::sendInfo($this->lng->txt('mail_select_attachment'));
1050  $this->showMail();
1051  }
1052  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
print $file
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
This class handles all operations on files (attachments) in directory ilias_data/mail.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
$filename
Definition: buildRTE.php:89
+ Here is the call graph for this function:

◆ editFolder()

ilMailFolderGUI::editFolder ( )

Definition at line 587 of file class.ilMailFolderGUI.php.

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

588  {
589  switch ($this->current_selected_cmd)
590  {
591  case 'markMailsRead':
592  if(is_array($_POST["mail_id"]))
593  {
594  $this->umail->markRead($_POST["mail_id"]);
595  }
596  else
597  {
598  ilUtil::sendInfo($this->lng->txt("mail_select_one"));
599  }
600  break;
601  case 'markMailsUnread':
602  if(is_array($_POST["mail_id"]))
603  {
604  $this->umail->markUnread($_POST["mail_id"]);
605  }
606  else
607  {
608  ilUtil::sendInfo($this->lng->txt("mail_select_one"));
609  }
610  break;
611 
612  case 'deleteMails':
613  // IF MAILBOX IS TRASH ASK TO CONFIRM
614  if($this->mbox->getTrashFolder() == $_GET["mobj_id"])
615  {
616  if(!is_array($_POST["mail_id"]))
617  {
618  ilUtil::sendInfo($this->lng->txt("mail_select_one"));
619  $this->errorDelete = true;
620  }
621  } // END IF MAILBOX IS TRASH FOLDER
622  else
623  {
624  // MOVE MAILS TO TRASH
625  if(!is_array($_POST["mail_id"]))
626  {
627  ilUtil::sendInfo($this->lng->txt("mail_select_one"));
628  }
629  else if($this->umail->moveMailsToFolder($_POST["mail_id"], $this->mbox->getTrashFolder()))
630  {
631  $_GET["offset"] = 0;
632  ilUtil::sendInfo($this->lng->txt("mail_moved_to_trash"));
633  }
634  else
635  {
636  ilUtil::sendInfo($this->lng->txt("mail_move_error"));
637  }
638  }
639  break;
640 
641  case 'add':
642  $this->ctrl->setParameterByClass("ilmailoptionsgui", "cmd", "add");
643  $this->ctrl->redirectByClass("ilmailoptionsgui");
644 
645  case 'moveMails':
646  default:
647  if(!is_array($_POST["mail_id"]))
648  {
649  ilUtil::sendInfo($this->lng->txt("mail_select_one"));
650  }
651  else if($this->umail->moveMailsToFolder($_POST["mail_id"],$this->current_selected_cmd))
652  {
653  ilUtil::sendInfo($this->lng->txt("mail_moved"));
654  }
655  else
656  {
657  ilUtil::sendInfo($this->lng->txt("mail_move_error"));
658  }
659  break;
660  }
661 
662  $this->showFolder();
663  }
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
+ Here is the call graph for this function:

◆ executeCommand()

ilMailFolderGUI::executeCommand ( )

Definition at line 63 of file class.ilMailFolderGUI.php.

References $_GET, $_POST, $cmd, and $ret.

64  {
65  if ($_POST["select_cmd"])
66  {
67  $_GET["cmd"] = 'editFolder';
68 
69  // lower menubar execute-button
70  $this->current_select_cmd = $_POST['select_cmd'];
71  $this->current_selected_cmd = $_POST['selected_cmd'];
72  }
73  else if ($_POST["select_cmd2"])
74  {
75  // upper menubar execute-button
76  $_GET["cmd"] = 'editFolder';
77  $this->current_select_cmd = $_POST['select_cmd2'];
78  $this->current_selected_cmd = $_POST['selected_cmd2'];
79  }
80 
81  /* Fix: User views mail and wants to delete it...
82  mjansen: The mail system needs a revision :-)
83  */
84  if ($_GET['selected_cmd'] == "deleteMails" && $_GET["mail_id"])
85  {
86  $_GET["cmd"] = "editFolder";
87  $this->current_selected_cmd = "deleteMails";
88  $_POST["mail_id"] = array($_GET["mail_id"]);
89  }
90 
91  /* Fix: User views mail and wants to move it...
92  mjansen: The mail system needs a revision :-)
93  */
94  $cmd = $this->ctrl->getCmd();
95  if($cmd == 'changeFolder' &&
96  is_numeric($_POST['selected_cmd']) &&
97  $_GET["mail_id"])
98  {
99  $this->current_selected_cmd = (int)$_POST['selected_cmd'];
100  }
101 
102  $forward_class = $this->ctrl->getNextClass($this);
103  switch($forward_class)
104  {
105  case 'ilmailaddressbookgui':
106  include_once 'Services/Contact/classes/class.ilMailAddressbookGUI.php';
107 
108  $this->ctrl->forwardCommand(new ilMailAddressbookGUI());
109  break;
110 
111  case 'ilmailoptionsgui':
112  include_once 'Services/Mail/classes/class.ilMailOptionsGUI.php';
113 
114  $this->ctrl->forwardCommand(new ilMailOptionsGUI());
115  break;
116 
117  case 'ilpublicuserprofilegui':
118  include_once("Services/User/classes/class.ilPublicUserProfileGUI.php");
119  $this->tpl->setTitle($this->lng->txt("mail"));
120  $this->ctrl->saveParameter($this, "mail_id");
121  $profile_gui = new ilPublicUserProfileGUI($_GET["user"]);
122  $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this, "showMail"));
123  $ret = $this->ctrl->forwardCommand($profile_gui);
124  if ($ret != "")
125  {
126  $this->tpl->setContent($ret);
127  $this->tpl->show();
128  }
129  break;
130 
131  default:
132  if (!($cmd = $this->ctrl->getCmd()))
133  {
134  $cmd = "showFolder";
135  }
136  $this->$cmd();
137  break;
138  }
139  return true;
140  }
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
GUI class for public user profile presentation.

◆ performAddSubFolder()

ilMailFolderGUI::performAddSubFolder ( )

Definition at line 440 of file class.ilMailFolderGUI.php.

References $_GET, $_POST, $_SESSION, $ilCtrl, $tpl, ilSession\get(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and ilMailGUI\VIEWMODE_SESSION_KEY.

441  {
442  if (isset($_POST["subfolder_title"]) && 'tree' == ilSession::get(ilMailGUI::VIEWMODE_SESSION_KEY)) $_SESSION["subfolder_title"] = ilUtil::stripSlashes($_POST['subfolder_title']);
443 
444  if (empty($_POST['subfolder_title']))
445  {
446  ilUtil::sendInfo($this->lng->txt("mail_insert_folder_name"));
447  return $this->addSubFolder();
448  }
449  else if ($mobj_id = $this->mbox->addFolder($_GET["mobj_id"], ilUtil::stripSlashes($_POST["subfolder_title"])))
450  {
451  unset($_SESSION["subfolder_title"]);
452  ilUtil::sendInfo($this->lng->txt("mail_folder_created"), true);
453 
454  $this->ctrl->setParameterByClass("ilMailGUI", 'mobj_id', $mobj_id);
455  $this->ctrl->redirectByClass("ilMailGUI");
456  }
457  else
458  {
459  ilUtil::sendFailure($this->lng->txt("mail_folder_exists"));
460  return $this->addSubFolder();
461  }
462  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
static get($a_var)
Get a value.
const VIEWMODE_SESSION_KEY
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
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:

◆ performDeleteSubFolder()

ilMailFolderGUI::performDeleteSubFolder ( )

Definition at line 422 of file class.ilMailFolderGUI.php.

References $_GET, ilUtil\sendFailure(), and ilUtil\sendInfo().

423  {
424  $new_parent = $this->mbox->getParentFolderId($_GET["mobj_id"]);
425 
426  if ($this->mbox->deleteFolder($_GET["mobj_id"]))
427  {
428  ilUtil::sendInfo($this->lng->txt("mail_folder_deleted"),true);
429 
430  $this->ctrl->setParameterByClass("ilMailGUI", "mobj_id", $new_parent);
431  $this->ctrl->redirectByClass("ilMailGUI");
432  }
433  else
434  {
435  ilUtil::sendFailure($this->lng->txt("mail_error_delete"));
436  return $this->showFolder();
437  }
438  }
$_GET["client_id"]
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:

◆ performEmptyTrash()

ilMailFolderGUI::performEmptyTrash ( )

empty Trash and return to folder

Definition at line 182 of file class.ilMailFolderGUI.php.

References $_GET, and ilUtil\sendInfo().

183  {
184  $this->umail->deleteMailsOfFolder($_GET['mobj_id']);
185  ilUtil::sendInfo($this->lng->txt('mail_deleted'));
186  $this->showFolder();
187  }
$_GET["client_id"]
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
+ Here is the call graph for this function:

◆ performRenameSubFolder()

ilMailFolderGUI::performRenameSubFolder ( )

Definition at line 529 of file class.ilMailFolderGUI.php.

References $_GET, $_POST, $_SESSION, ilSession\get(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and ilMailGUI\VIEWMODE_SESSION_KEY.

530  {
531  if (isset($_POST["subfolder_title"]) && 'tree' == ilSession::get(ilMailGUI::VIEWMODE_SESSION_KEY)) $_SESSION["subfolder_title"] = $_POST['subfolder_title'];
532 
533  $tmp_data = $this->mbox->getFolderData($_GET["mobj_id"]);
534  if ($tmp_data["title"] != $_POST["subfolder_title"])
535  {
536  if ($_POST["subfolder_title"] == "")
537  {
538  ilUtil::sendInfo($this->lng->txt("mail_insert_folder_name"));
539  return $this->renameSubFolder();
540  }
541  else
542  {
543  if ($this->mbox->renameFolder($_GET["mobj_id"], ilUtil::stripSlashes($_POST["subfolder_title"])))
544  {
545  ilUtil::sendInfo($this->lng->txt("mail_folder_name_changed"), true);
546  unset($_SESSION["subfolder_title"]);
547  $this->ctrl->redirectByClass("ilMailGUI");
548  }
549  else
550  {
551  ilUtil::sendFailure($this->lng->txt("mail_folder_exists"));
552  return $this->renameSubFolder();
553  }
554  }
555  }
556  return $this->showFolder();
557  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
static get($a_var)
Get a value.
const VIEWMODE_SESSION_KEY
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
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:

◆ resetFilter()

ilMailFolderGUI::resetFilter ( )

Definition at line 1080 of file class.ilMailFolderGUI.php.

References $_GET.

1081  {
1082  $sentFolderId = $this->mbox->getSentFolder();
1083  $draftsFolderId = $this->mbox->getDraftsFolder();
1084 
1085  $isTrashFolder = $_GET['mobj_id'] == $this->mbox->getTrashFolder();
1086  $isSentFolder = $_GET['mobj_id'] == $sentFolderId;
1087  $isDraftFolder = $_GET['mobj_id'] == $draftsFolderId;
1088 
1089  $table = new ilMailFolderTableGUI($this, (int)$_GET['mobj_id'], 'showFolder');
1090  $table->isSentFolder($isSentFolder)
1091  ->isDraftFolder($isDraftFolder)
1092  ->isTrashFolder($isTrashFolder)
1093  ->initFilter();
1094  $table->resetOffset();
1095  $table->resetFilter();
1096 
1097  $this->showFolder();
1098  }
$_GET["client_id"]

◆ showUser()

ilMailFolderGUI::showUser ( )

Definition at line 204 of file class.ilMailFolderGUI.php.

References $_GET, $ilCtrl, ilObjUser\_lookupLogin(), and ilUtil\getImagePath().

205  {
206  global $ilCtrl, $ilToolbar;
207 
208  $this->ctrl->setParameter($this, "mail_id", $_GET["mail_id"]);
209 
210  $this->tpl->setTitle($this->lng->txt("mail"));
211  //$ilToolbar->addButton($this->lng->txt("back"), $this->ctrl->getLinkTarget($this, "showMail"));
212 
213  $this->tpl->setVariable("TBL_TITLE", $this->lng->txt("profile_of")." ".
214  ilObjUser::_lookupLogin($_GET["user"]));
215  $this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath("icon_usr.png"));
216  $this->tpl->setVariable("TBL_TITLE_IMG_ALT", $this->lng->txt("public_profile"));
217 
218  include_once './Services/User/classes/class.ilPublicUserProfileGUI.php';
219  $profile_gui = new ilPublicUserProfileGUI($_GET["user"]);
220  $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this, "showMail"));
221  $this->tpl->setContent($ilCtrl->getHTML($profile_gui));
222  $this->tpl->show();
223 
224  return true;
225  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
GUI class for public user profile presentation.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
_lookupLogin($a_user_id)
lookup login
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilMailFolderGUI::$ctrl = null
private

Definition at line 29 of file class.ilMailFolderGUI.php.

◆ $current_select_cmd

ilMailFolderGUI::$current_select_cmd
private

Definition at line 25 of file class.ilMailFolderGUI.php.

◆ $current_selected_cmd

ilMailFolderGUI::$current_selected_cmd
private

Definition at line 26 of file class.ilMailFolderGUI.php.

◆ $errorDelete

ilMailFolderGUI::$errorDelete = false
private

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

◆ $lng

ilMailFolderGUI::$lng = null
private

Definition at line 30 of file class.ilMailFolderGUI.php.

Referenced by __construct(), and add().

◆ $mbox

ilMailFolderGUI::$mbox = null

Definition at line 33 of file class.ilMailFolderGUI.php.

◆ $tpl

ilMailFolderGUI::$tpl = null
private

Definition at line 28 of file class.ilMailFolderGUI.php.

Referenced by __construct(), cancelDeleteMails(), and performAddSubFolder().

◆ $umail

ilMailFolderGUI::$umail = null

Definition at line 32 of file class.ilMailFolderGUI.php.


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