Public Member Functions | |
| __construct () | |
| executeCommand () | |
| add () | |
| cancelEmptyTrash () | |
| performEmptyTrash () | |
| askForEmptyTrash () | |
| showUser () | |
| showFolder () | |
| deleteFolder () | |
| confirmDeleteFolder () | |
| performDeleteFolder () | |
| cancelDeleteFolder () | |
| cancelEnterFolderData () | |
| saveFolderSettings () | |
| saveSubFolderSettings () | |
| addSubFolder () | |
| enterFolderData ($cmd="saveFolderSettings", $confirmDelete=false) | |
| changeFolder () | |
| editFolder () | |
| confirmDeleteMails () | |
| cancelDeleteMails () | |
| showMail () | |
| printMail () | |
| deliverFile () | |
| deliverVCard () | |
Private Attributes | |
| $tpl = null | |
| $ctrl = null | |
| $lng = null | |
| $umail = null | |
| $mbox = null | |
| $errorDelete = false | |
ilMailFolderGUI: ilMailAddressbookGUI, ilMailAttachmentGUI, ilMailSearchGUI, ilMailOptionsGUI, ilObjUserGUI
Definition at line 35 of file class.ilMailFolderGUI.php.
| ilMailFolderGUI::__construct | ( | ) |
Definition at line 46 of file class.ilMailFolderGUI.php.
References $_GET, $ilCtrl, $lng, and $tpl.
{
global $tpl, $ilCtrl, $lng, $ilUser;
$this->tpl = $tpl;
$this->ctrl = $ilCtrl;
$this->lng = $lng;
$this->ctrl->saveParameter($this, "mobj_id");
$this->umail = new ilMail($ilUser->getId());
$this->mbox = new ilMailBox($ilUser->getId());
if ($_POST["mobj_id"] != "")
{
$_GET["mobj_id"] = $_POST["mobj_id"];
}
// IF THERE IS NO OBJ_ID GIVEN GET THE ID OF MAIL ROOT NODE
if(!$_GET["mobj_id"])
{
$_GET["mobj_id"] = $this->mbox->getInboxFolder();
}
}
| ilMailFolderGUI::add | ( | ) |
Definition at line 108 of file class.ilMailFolderGUI.php.
References $_GET, $lng, ilUtil::sendInfo(), and showMail().
{
global $lng, $ilUser;
if($_GET["mail_id"] != "")
{
if (is_array($mail_data = $this->umail->getMail($_GET["mail_id"])))
{
require_once "Services/Mail/classes/class.ilAddressbook.php";
$abook = new ilAddressbook($ilUser->getId());
$tmp_user = new ilObjUser($mail_data["sender_id"]);
if ($abook->checkEntryByLogin($tmp_user->getLogin()) > 0)
{
ilUtil::sendInfo($lng->txt("mail_entry_exists"));
}
else
{
$abook->addEntry($tmp_user->getLogin(),
$tmp_user->getFirstname(),
$tmp_user->getLastname(),
$tmp_user->getEmail());
ilUtil::sendInfo($lng->txt("mail_entry_added"));
}
}
}
$this->showMail();
}
Here is the call graph for this function:| ilMailFolderGUI::addSubFolder | ( | ) |
Definition at line 671 of file class.ilMailFolderGUI.php.
References enterFolderData().
Referenced by saveSubFolderSettings().
{
$this->enterFolderData("saveSubFolderSettings");
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailFolderGUI::askForEmptyTrash | ( | ) |
Definition at line 154 of file class.ilMailFolderGUI.php.
References $_GET, ilUtil::sendInfo(), and showFolder().
{
if ($this->umail->countMailsOfFolder($_GET["mobj_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_empty_trash_confirmation"));
$this->askForConfirmation = true;
}
$this->showFolder();
return true;
}
Here is the call graph for this function:| ilMailFolderGUI::cancelDeleteFolder | ( | ) |
Definition at line 539 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, enterFolderData(), and ilUtil::redirect().
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=enter_folderdata");
}
else
{
$this->enterFolderData();
return true;
}
}
Here is the call graph for this function:| ilMailFolderGUI::cancelDeleteMails | ( | ) |
Definition at line 863 of file class.ilMailFolderGUI.php.
References $_GET.
{
$this->ctrl->setParameter($this, "offset", $_GET["offset"]);
$this->ctrl->redirect($this);
}
| ilMailFolderGUI::cancelEmptyTrash | ( | ) |
Definition at line 139 of file class.ilMailFolderGUI.php.
References showFolder().
{
$this->showFolder();
}
Here is the call graph for this function:| ilMailFolderGUI::cancelEnterFolderData | ( | ) |
Definition at line 552 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, ilUtil::redirect(), and showFolder().
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&target=ilmailfoldergui");
}
else
{
$this->showFolder();
return true;
}
}
Here is the call graph for this function:| ilMailFolderGUI::changeFolder | ( | ) |
Definition at line 736 of file class.ilMailFolderGUI.php.
References $_GET, ilUtil::sendInfo(), and showMail().
{
switch ($_POST["action"])
{
default:
if ($this->umail->moveMailsToFolder(array($_GET["mail_id"]), $_POST["action"]))
{
ilUtil::sendInfo($this->lng->txt("mail_moved"), true);
$this->ctrl->redirectByClass("ilMailGUI");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_move_error"));
}
break;
}
$this->showMail();
return true;
}
Here is the call graph for this function:| ilMailFolderGUI::confirmDeleteFolder | ( | ) |
Definition at line 505 of file class.ilMailFolderGUI.php.
References enterFolderData(), and ilUtil::sendInfo().
{
ilUtil::sendInfo($this->lng->txt("mail_sure_delete_folder"));
$this->enterFolderData("saveFolderSettings", true);
return true;
}
Here is the call graph for this function:| ilMailFolderGUI::confirmDeleteMails | ( | ) |
Definition at line 840 of file class.ilMailFolderGUI.php.
References $_GET, ilUtil::sendInfo(), and showFolder().
{
// ONLY IF FOLDER IS TRASH, IT WAS ASKED FOR CONFIRMATION
if($this->mbox->getTrashFolder() == $_GET["mobj_id"])
{
if(!is_array($_POST["mail_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_select_one"));
}
else if($this->umail->deleteMails($_POST["mail_id"]))
{
$_GET["offset"] = 0;
ilUtil::sendInfo($this->lng->txt("mail_deleted"));
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_delete_error"));
}
}
$this->showFolder();
}
Here is the call graph for this function:| ilMailFolderGUI::deleteFolder | ( | ) |
Definition at line 490 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, enterFolderData(), ilUtil::redirect(), and ilUtil::sendInfo().
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=confirmdelete_folderdata");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_sure_delete_folder"));
$this->enterFolderData("saveFolderSettings", true);
return true;
}
}
Here is the call graph for this function:| ilMailFolderGUI::deliverFile | ( | ) |
Definition at line 1172 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, $filename, ilUtil::sendInfo(), and showMail().
{
if ($_SESSION["mail_id"])
{
$_GET["mail_id"] = $_SESSION["mail_id"];
}
$_SESSION["mail_id"] = "";
$filename = ($_SESSION["filename"]
? $_SESSION["filename"]
: ($_POST["filename"]
? $_POST["filename"]
: $_GET["filename"]));
$_SESSION["filename"] = "";
if ($filename != "")
{
require_once "classes/class.ilFileDataMail.php";
// secure filename
$filename = str_replace("..", "", $filename);
$mfile = new ilFileDataMail($_SESSION["AccountId"]);
if(!$path = $mfile->getAttachmentPath($filename, $_GET["mail_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_error_reading_attachment"));
$this->showMail();
}
else
{
ilUtil::deliverFile($path, $filename);
}
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_select_attachment"));
$this->showMail();
}
}
Here is the call graph for this function:| ilMailFolderGUI::deliverVCard | ( | ) |
Definition at line 1212 of file class.ilMailFolderGUI.php.
References $_GET.
{
include_once 'Services/User/classes/class.ilObjUserGUI.php';
$userObj = new ilObjUserGUI('', $_GET['user']);
return $userObj->deliverVCardObject();
}
| ilMailFolderGUI::editFolder | ( | ) |
Definition at line 758 of file class.ilMailFolderGUI.php.
References $_GET, ilUtil::sendInfo(), and showFolder().
{
switch ($_POST["action"])
{
case 'markMailsRead':
if(is_array($_POST["mail_id"]))
{
$this->umail->markRead($_POST["mail_id"]);
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_select_one"));
}
break;
case 'markMailsUnread':
if(is_array($_POST["mail_id"]))
{
$this->umail->markUnread($_POST["mail_id"]);
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_select_one"));
}
break;
case 'deleteMails':
// IF MAILBOX IS TRASH ASK TO CONFIRM
if($this->mbox->getTrashFolder() == $_GET["mobj_id"])
{
if(!is_array($_POST["mail_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_select_one"));
$this->errorDelete = true;
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_sure_delete"));
}
} // END IF MAILBOX IS TRASH FOLDER
else
{
// MOVE MAILS TO TRASH
if(!is_array($_POST["mail_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_select_one"));
}
else if($this->umail->moveMailsToFolder($_POST["mail_id"], $this->mbox->getTrashFolder()))
{
$_GET["offset"] = 0;
ilUtil::sendInfo($this->lng->txt("mail_moved_to_trash"));
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_move_error"));
}
}
break;
case 'add':
$this->ctrl->setParameterByClass("ilmailoptionsgui", "cmd", "add");
$this->ctrl->redirectByClass("ilmailoptionsgui");
case 'moveMails':
default:
if(!is_array($_POST["mail_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_select_one"));
}
else if($this->umail->moveMailsToFolder($_POST["mail_id"],$_POST["action"]))
{
ilUtil::sendInfo($this->lng->txt("mail_moved"));
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_move_error"));
}
break;
}
$this->showFolder();
}
Here is the call graph for this function:| ilMailFolderGUI::enterFolderData | ( | $ | cmd = "saveFolderSettings", |
|
| $ | confirmDelete = false | |||
| ) |
Definition at line 678 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, $cmd, ilFrameTargetInfo::_getFrame(), ilUtil::prepareFormOutput(), and ilUtil::stripSlashes().
Referenced by addSubFolder(), cancelDeleteFolder(), confirmDeleteFolder(), deleteFolder(), performDeleteFolder(), saveFolderSettings(), and saveSubFolderSettings().
{
global $ilUser;
$mtree = new ilTree($ilUser->getId());
$mtree->setTableNames('mail_tree','mail_obj_data');
$folder_node = $mtree->getNodeData($_GET[mobj_id]);
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.mail_edit_user_folder.html",'Services/Mail');
if ($confirmDelete)
{
$this->tpl->setCurrentBlock("confirm_delete");
$this->ctrl->setParameter($this, "cmd", "post");
$this->tpl->setVariable("ACTION_DELETE", $this->ctrl->getLinkTarget($this));
$this->tpl->setVariable("FRAME_DELETE", ilFrameTargetInfo::_getFrame("MainContent"));
$this->ctrl->clearParameters($this);
$this->tpl->setVariable("TXT_DELETE_CONFIRM",$this->lng->txt("confirm"));
$this->tpl->setVariable("TXT_DELETE_CANCEL",$this->lng->txt("cancel"));
$this->tpl->parseCurrentBlock();
}
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$this->tpl->setVariable("FORM_ACTION", $this->ctrl->getFormAction($this, "saveFolderSettings"));
$this->tpl->setVariable("FRAME_ADD", ilFrameTargetInfo::_getFrame("MainContent"));
if ($cmd == "saveFolderSettings")
{
$this->tpl->setVariable("TXT_HEADLINE", $this->lng->txt('mail_folder_edit'));
$this->tpl->setVariable("TXT_TITLE", $this->lng->txt('name'));
$this->tpl->setVariable("TXT_DELETE", $this->lng->txt('delete'));
if (isset($_SESSION["folder_name_add"])) $title_value = ilUtil::prepareFormOutput($_SESSION["folder_name_add"], true);
else if (isset($_POST["folder_name_add"])) $title_value = ilUtil::prepareFormOutput($_POST["folder_name_add"], true);
else $title_value = ilUtil::stripSlashes($folder_node["title"]);
}
else
{
$this->tpl->setVariable("TXT_HEADLINE", $this->lng->txt('mail_add_subfolder'));
$this->tpl->setVariable("TXT_TITLE", $this->lng->txt('name'));
if (isset($_SESSION["folder_name_add"])) $title_value = ilUtil::prepareFormOutput($_SESSION["folder_name_add"], true);
else if (isset($_POST["folder_name_add"])) $title_value = ilUtil::prepareFormOutput($_POST["folder_name_add"], true);
}
unset($_SESSION["folder_name_add"]);
$this->tpl->setVariable("CMD_SUBMIT", $cmd);
$this->tpl->setVariable("TXT_SUBMIT", ($cmd == "saveSubFolderSettings" ? $this->lng->txt('save') : $this->lng->txt('rename')));
$this->tpl->setVariable("TITLE_VALUE", $title_value);
$this->tpl->setVariable("TXT_CANCEL", $this->lng->txt('cancel'));
$this->tpl->show();
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailFolderGUI::executeCommand | ( | ) |
Definition at line 70 of file class.ilMailFolderGUI.php.
{
/* User views mail and wants to delete it */
if ($_GET["action"] == "deleteMails" &&
$_GET["mail_id"])
{
$_GET["cmd"] = "post";
$_POST["cmd"]["editFolder"] = true;
$_POST["action"] = "deleteMails";
$_POST["mail_id"] = array($_GET["mail_id"]);
}
$forward_class = $this->ctrl->getNextClass($this);
switch($forward_class)
{
case 'ilmailaddressbookgui':
include_once 'Services/Mail/classes/class.ilMailAddressbookGUI.php';
$this->ctrl->forwardCommand(new ilMailAddressbookGUI());
break;
case 'ilmailoptionsgui':
include_once 'Services/Mail/classes/class.ilMailOptionsGUI.php';
$this->ctrl->forwardCommand(new ilMailOptionsGUI());
break;
default:
if (!($cmd = $this->ctrl->getCmd()))
{
$cmd = "showFolder";
}
$this->$cmd();
break;
}
return true;
}
| ilMailFolderGUI::performDeleteFolder | ( | ) |
Definition at line 513 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, enterFolderData(), ilUtil::redirect(), and ilUtil::sendInfo().
{
$new_parent = $this->mbox->getParentFolderId($_GET["mobj_id"]);
if ($this->mbox->deleteFolder($_GET["mobj_id"]))
{
ilUtil::sendInfo($this->lng->txt("mail_folder_deleted"),true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI");
}
else
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::sendInfo($this->lng->txt("mail_error_delete"), true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=confirmdelete_folderdata");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_error_delete"));
$this->enterFolderData();
return true;
}
}
}
Here is the call graph for this function:| ilMailFolderGUI::performEmptyTrash | ( | ) |
Definition at line 144 of file class.ilMailFolderGUI.php.
References $_GET, ilUtil::sendInfo(), and showFolder().
{
$this->umail->deleteMailsOfFolder($_GET["mobj_id"]);
ilUtil::sendInfo($this->lng->txt("mail_deleted"));
$this->showFolder();
return true;
}
Here is the call graph for this function:| ilMailFolderGUI::printMail | ( | ) |
Definition at line 1119 of file class.ilMailFolderGUI.php.
References $_GET, $tpl, ilMail::_getAnonymousName(), and ilFormat::formatDate().
{
$tplprint = new ilTemplate("Services/Mail/templates/default/tpl.mail_print.html",true,true,true);
$tplprint->setVariable("JSPATH",$tpl->tplPath);
//get the mail from user
$mailData = $this->umail->getMail($_GET["mail_id"]);
// SET MAIL DATA
// FROM
$tplprint->setVariable("TXT_FROM", $this->lng->txt("from"));
if($mailData["sender_id"] != ANONYMOUS_USER_ID)
{
$tmp_user = new ilObjUser($mailData["sender_id"]);
if(!($login = $tmp_user->getFullname()))
{
$login = $mailData["import_name"]." (".$this->lng->txt("user_deleted").")";
}
$tplprint->setVariable("FROM", $login);
}
else
{
$tplprint->setVariable('FROM', ilMail::_getAnonymousName());
}
// TO
$tplprint->setVariable("TXT_TO", $this->lng->txt("mail_to"));
$tplprint->setVariable("TO", $mailData["rcp_to"]);
// CC
if($mailData["rcp_cc"])
{
$tplprint->setCurrentBlock("cc");
$tplprint->setVariable("TXT_CC",$this->lng->txt("cc"));
$tplprint->setVariable("CC",$mailData["rcp_cc"]);
$tplprint->parseCurrentBlock();
}
// SUBJECT
$tplprint->setVariable("TXT_SUBJECT",$this->lng->txt("subject"));
$tplprint->setVariable("SUBJECT",htmlspecialchars($mailData["m_subject"]));
// DATE
$tplprint->setVariable("TXT_DATE", $this->lng->txt("date"));
$tplprint->setVariable("DATE", ilFormat::formatDate($mailData["send_time"]));
// MESSAGE
$tplprint->setVariable("TXT_MESSAGE", $this->lng->txt("message"));
$tplprint->setVariable("MAIL_MESSAGE", nl2br(htmlspecialchars($mailData["m_message"])));
$tplprint->show();
}
Here is the call graph for this function:| ilMailFolderGUI::saveFolderSettings | ( | ) |
Definition at line 565 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, enterFolderData(), ilUtil::redirect(), ilUtil::sendInfo(), and ilUtil::stripSlashes().
{
if (isset($_POST["folder_name_add"]) && $_SESSION["viewmode"] == "tree") $_SESSION["folder_name_add"] = $_POST['folder_name_add'];
$tmp_data = $this->mbox->getFolderData($_GET["mobj_id"]);
if ($tmp_data["title"] != $_POST["folder_name_add"])
{
if ($_POST["folder_name_add"] == "")
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::sendInfo($this->lng->txt("mail_insert_folder_name"), true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=enter_folderdata");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_insert_folder_name"));
$this->enterFolderData();
return true;
}
}
else
{
if ($this->mbox->renameFolder($_GET["mobj_id"], ilUtil::stripSlashes($_POST["folder_name_add"])))
{
ilUtil::sendInfo($this->lng->txt("mail_folder_name_changed"), true);
unset($_SESSION["folder_name_add"]);
}
else
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::sendInfo($this->lng->txt("mail_folder_exists"), true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=enter_folderdata");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_folder_exists"));
$this->enterFolderData();
return true;
}
}
}
}
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=enter_folderdata");
}
else
{
$this->enterFolderData();
return true;
}
}
Here is the call graph for this function:| ilMailFolderGUI::saveSubFolderSettings | ( | ) |
Definition at line 621 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, addSubFolder(), enterFolderData(), ilUtil::redirect(), ilUtil::sendInfo(), and ilUtil::stripSlashes().
{
if (isset($_POST["folder_name_add"]) && $_SESSION["viewmode"] == "tree") $_SESSION["folder_name_add"] = ilUtil::stripSlashes($_POST['folder_name_add']);
if (empty($_POST['folder_name_add']))
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::sendInfo($this->lng->txt("mail_insert_folder_name"), true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=add_subfolder");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_insert_folder_name"));
$this->addSubFolder();
return true;
}
}
else if ($_GET["mobj_id"] = $this->mbox->addFolder($_GET["mobj_id"], ilUtil::stripSlashes($_POST["folder_name_add"])))
{
unset($_SESSION["folder_name_add"]);
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::sendInfo($this->lng->txt("mail_folder_created"), true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]);
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_folder_created"));
$this->enterFolderData();
return true;
}
}
else
{
if ($_SESSION["viewmode"] == "tree")
{
ilUtil::sendInfo($this->lng->txt("mail_folder_exists"), true);
ilUtil::redirect("ilias.php?baseClass=ilMailGUI&mobj_id=".$_GET["mobj_id"]."&type=add_subfolder");
}
else
{
ilUtil::sendInfo($this->lng->txt("mail_folder_exists"));
$this->addSubFolder();
return true;
}
}
}
Here is the call graph for this function:| ilMailFolderGUI::showFolder | ( | ) |
Definition at line 194 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, ilMail::_getAnonymousName(), ilObjUser::_lookupPref(), ilFormat::formatDate(), ilUtil::getImagePath(), ilUtil::Linkbar(), and ilObjectFactory::ObjectIdExists().
Referenced by askForEmptyTrash(), cancelEmptyTrash(), cancelEnterFolderData(), confirmDeleteMails(), editFolder(), and performEmptyTrash().
{
global $ilUser;
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.mail.html", "Services/Mail");
$this->tpl->setVariable("HEADER", $this->lng->txt("mail"));
$this->ctrl->setParameter($this, "offset", $_GET["offset"]);
$this->ctrl->setParameter($this, "cmd", "post");
$this->tpl->setVariable("ACTION", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
$isTrashFolder = false;
if ($this->mbox->getTrashFolder() == $_GET["mobj_id"])
{
$isTrashFolder = true;
}
// BEGIN CONFIRM_DELETE
if($_POST["action"] == "deleteMails" &&
!$this->errorDelete &&
$_POST["action"] != "confirm" &&
$isTrashFolder)
{
$this->tpl->setCurrentBlock("CONFIRM_DELETE");
$this->tpl->setVariable("BUTTON_CONFIRM",$this->lng->txt("confirm"));
$this->tpl->setVariable("BUTTON_CANCEL",$this->lng->txt("cancel"));
$this->tpl->parseCurrentBlock();
}
// BEGIN MAIL ACTIONS
$actions = $this->mbox->getActions($_GET["mobj_id"]);
$this->tpl->setCurrentBlock("mailactions");
foreach($actions as $key => $action)
{
if($key == 'moveMails')
{
$folders = $this->mbox->getSubFolders();
foreach($folders as $folder)
{
if ($folder["type"] != 'trash' ||
!$isTrashFolder)
{
$this->tpl->setVariable("MAILACTION_VALUE", $folder["obj_id"]);
if($folder["type"] != 'user_folder')
{
$this->tpl->setVariable("MAILACTION_NAME",$action." ".$this->lng->txt("mail_".$folder["title"]).($folder["type"] == 'trash' ? " (".$this->lng->txt("delete").")" : ""));
}
else
{
$this->tpl->setVariable("MAILACTION_NAME",$action." ".$folder["title"]);
}
$this->tpl->parseCurrentBlock();
}
}
}
else
{
if ($key != 'deleteMails' ||
$isTrashFolder)
{
$this->tpl->setVariable("MAILACTION_NAME", $action);
$this->tpl->setVariable("MAILACTION_VALUE", $key);
$this->tpl->setVariable("MAILACTION_SELECTED",$_POST["action"] == 'delete' ? 'selected' : '');
$this->tpl->parseCurrentBlock();
}
}
}
// END MAIL ACTIONS
// SHOW_FOLDER ONLY IF viewmode is flatview
if(!isset($_SESSION["viewmode"]) ||
$_SESSION["viewmode"] == 'flat')
{
$this->tpl->setCurrentBlock("show_folder");
$this->tpl->setCurrentBLock("flat_select");
foreach($folders as $folder)
{
if($folder["obj_id"] == $_GET["mobj_id"])
{
$this->tpl->setVariable("FLAT_SELECTED","selected");
}
$this->tpl->setVariable("FLAT_VALUE",$folder["obj_id"]);
if($folder["type"] == 'user_folder')
{
$this->tpl->setVariable("FLAT_NAME", $folder["title"]);
}
else
{
$this->tpl->setVariable("FLAT_NAME", $this->lng->txt("mail_".$folder["title"]));
}
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable("TXT_FOLDERS", $this->lng->txt("mail_change_to_folder"));
$this->tpl->setVariable("FOLDER_VALUE",$this->lng->txt("submit"));
$this->tpl->parseCurrentBlock();
#$this->ctrl->setParameter($this, "offset", $_GET["offset"]);
$this->tpl->setVariable("ACTION_FLAT", $this->ctrl->getLinkTarget($this));
#$this->ctrl->clearParameters($this);
}
// END SHOW_FOLDER
// BEGIN MAILS
$mailData = $this->umail->getMailsOfFolder($_GET["mobj_id"]);
$mail_count = count($mailData);
if ($isTrashFolder == true && $mail_count > 0)
{
if ($this->askForConfirmation == true)
{
$this->tpl->setCurrentBlock("CONFIRM_EMPTY_TRASH");
$this->ctrl->setParameter($this, "cmd", "post");
$this->tpl->setVariable("ACTION_EMPTY_TRASH_CONFIRMATION", $this->ctrl->getLinkTarget($this));
$this->tpl->setVariable("BUTTON_CONFIRM_EMPTY_TRASH", $this->lng->txt("confirm"));
$this->tpl->setVariable("BUTTON_CANCEL_EMPTY_TRASH", $this->lng->txt("cancel"));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("EMPTY_TRASH");
$this->tpl->setVariable("LINK_EMPTY_TRASH", $this->ctrl->getLinkTarget($this, "askForEmptyTrash"));
$this->tpl->setVariable("TXT_EMPTY_TRASH", $this->lng->txt("mail_empty_trash"));
$this->tpl->parseCurrentBlock();
}
// TODO: READ FROM MAIL_OPTIONS
$mail_max_hits = $ilUser->getPref('hits_per_page');
$counter = 0;
foreach ($mailData as $mail)
{
if($mail["sender_id"] &&
!ilObjectFactory::ObjectIdExists($mail["sender_id"]))
{
--$mail_count;
continue;
}
// LINKBAR
if($mail_count > $mail_max_hits)
{
$params = array(
"mobj_id" => $_GET["mobj_id"]);
}
$start = $_GET["offset"];
$linkbar = ilUtil::Linkbar($this->ctrl->getLinkTarget($this),$mail_count,$mail_max_hits,$start,$params);
if ($linkbar)
{
$this->tpl->setVariable("LINKBAR", $linkbar);
}
if($counter >= ($start+$mail_max_hits))
{
break;
}
if($counter < $start)
{
++$counter;
continue;
}
// END LINKBAR
++$counter;
$this->tpl->setCurrentBlock("mails");
$this->tpl->setVariable("ROWCOL","tblrow".(($counter % 2)+1));
$this->tpl->setVariable("MAIL_ID", $mail["mail_id"]);
if(is_array($_POST["mail_id"]))
{
$this->tpl->setVariable("CHECKBOX_CHECKED",in_array($mail["mail_id"],$_POST["mail_id"]) ? 'checked' : "");
}
// GET FULLNAME OF SENDER
if($_GET['mobj_id'] == $this->mbox->getSentFolder() ||
$_GET['mobj_id'] == $this->mbox->getDraftsFolder())
{
$this->tpl->setVariable('MAIL_LOGIN', $this->umail->formatNamesForOutput($mail['rcp_to']));
}
else
{
if($mail["sender_id"] != ANONYMOUS_USER_ID)
{
$tmp_user = new ilObjUser($mail["sender_id"]);
if(ilObjUser::_lookupPref($mail['sender_id'], 'public_profile') == 'y')
{
$this->tpl->setVariable('MAIL_FROM', $tmp_user->getFullname());
}
if(!($login = $tmp_user->getLogin()))
{
$login = $mail["import_name"]." (".$this->lng->txt("user_deleted").")";
}
$pic_path = $tmp_user->getPersonalPicturePath("xxsmall");
$this->tpl->setCurrentBlock("pers_image");
$this->tpl->setVariable("IMG_SENDER", $pic_path);
$this->tpl->setVariable("ALT_SENDER", $login);
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("mails");
$this->tpl->setVariable("MAIL_LOGIN",$login);
}
else
{
$tmp_user = new ilObjUser(ANONYMOUS_USER_ID);
$pic_path = $tmp_user->getPersonalPicturePath('xxsmall');
$this->tpl->setCurrentBlock('pers_image');
$this->tpl->setVariable('IMG_SENDER', $pic_path);
$this->tpl->setVariable('ALT_SENDER', ilMail::_getAnonymousName());
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock('mails');
$this->tpl->setVariable('MAIL_LOGIN', ilMail::_getAnonymousName());
}
}
$this->tpl->setVariable("MAILCLASS", $mail["m_status"] == 'read' ? 'mailread' : 'mailunread');
// IF ACTUAL FOLDER IS DRAFT BOX, DIRECT TO COMPOSE MESSAGE
if($_GET["mobj_id"] == $this->mbox->getDraftsFolder())
{
$this->ctrl->setParameterByClass("ilmailformgui", "mail_id", $mail["mail_id"]);
$this->ctrl->setParameterByClass("ilmailformgui", "type", "draft");
$this->tpl->setVariable("MAIL_LINK_READ", $this->ctrl->getLinkTargetByClass("ilmailformgui"));
$this->ctrl->clearParametersByClass("ilmailformgui");
}
else
{
$this->ctrl->setParameter($this, "mail_id", $mail["mail_id"]);
$this->ctrl->setParameter($this, "cmd", "showMail");
$this->tpl->setVariable("MAIL_LINK_READ", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
}
$this->tpl->setVariable("MAIL_SUBJECT", htmlspecialchars($mail["m_subject"]));
$this->tpl->setVariable("MAIL_DATE", ilFormat::formatDate($mail["send_time"]));
$this->tpl->parseCurrentBlock();
}
// END MAILS
$mtree = new ilTree($ilUser->getId());
$mtree->setTableNames('mail_tree','mail_obj_data');
$folder_node = $mtree->getNodeData($_GET[mobj_id]);
// folder_image
if($folder_node["type"] == 'user_folder')
{
$this->tpl->setVariable("TXT_FOLDER", $folder_node["title"]);
$this->tpl->setVariable("IMG_FOLDER", ilUtil::getImagePath("icon_user_folder.gif"));
}
else
{
$this->tpl->setVariable("TXT_FOLDER", $this->lng->txt("mail_".$folder_node["title"]));
$this->tpl->setVariable("IMG_FOLDER", ilUtil::getImagePath("icon".substr($folder_node["title"], 1).".gif"));
}
if ($folder_node["type"] == 'user_folder' || $folder_node["type"] == 'local')
{
if ($folder_node["type"] == 'user_folder')
{
$this->ctrl->setParameter($this, "cmd", "enterFolderData");
$this->tpl->setVariable("LINK_EDIT_FOLDER", $this->ctrl->getLinkTarget($this));
$this->tpl->setVariable("TXT_EDIT_FOLDER", $this->lng->txt("edit"));
}
$this->tpl->setVariable("TXT_ADD_FOLDER", $this->lng->txt("mail_add_subfolder"));
}
$this->tpl->setVariable("TXT_MAIL", $this->lng->txt("mail"));
$this->tpl->setVariable("TXT_MAIL_S", $this->lng->txt("mail_s"));
$this->tpl->setVariable("TXT_UNREAD", $this->lng->txt("unread"));
$this->tpl->setVariable("TXT_SUBMIT",$this->lng->txt("submit"));
$this->tpl->setVariable("TXT_SELECT_ALL", $this->lng->txt("select_all"));
$this->tpl->setVariable("IMGPATH",$this->tpl->tplPath);
// MAIL SUMMARY
$mail_counter = $this->umail->getMailCounterData();
$this->tpl->setVariable("MAIL_COUNT", $mail_counter["total"]);
$this->tpl->setVariable("MAIL_COUNT_UNREAD", $mail_counter["unread"]);
$this->tpl->setVariable("TXT_UNREAD_MAIL_S",$this->lng->txt("mail_s_unread"));
$this->tpl->setVariable("TXT_MAIL_S",$this->lng->txt("mail_s"));
//columns headlines
if($_GET['mobj_id'] == $this->mbox->getSentFolder() ||
$_GET['mobj_id'] == $this->mbox->getDraftsFolder())
{
$this->tpl->setVariable("TXT_SENDER", $this->lng->txt("recipient"));
}
else
{
$this->tpl->setVariable("TXT_SENDER", $this->lng->txt("sender"));
}
$this->tpl->setVariable("TXT_SUBJECT", $this->lng->txt("subject"));
// $this->tpl->setVariable("MAIL_SORT_SUBJ","link");
$this->tpl->setVariable("TXT_DATE",$this->lng->txt("date"));
$this->tpl->setVariable("DIRECTION", "up");
$this->tpl->show();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailFolderGUI::showMail | ( | ) |
Definition at line 869 of file class.ilMailFolderGUI.php.
References $_GET, $_SESSION, $file, $tplbtn, ilMail::_getAnonymousName(), ilFrameTargetInfo::_getFrame(), ilObjUser::_lookupPref(), ilFormat::formatDate(), ilUtil::makeClickable(), and ilUtil::secureString().
Referenced by add(), changeFolder(), and deliverFile().
{
global $ilUser;
if ($_SESSION["mail_id"])
{
$_GET["mail_id"] = $_SESSION["mail_id"];
$_SESSION["mail_id"] = "";
}
$this->umail->markRead(array($_GET["mail_id"]));
$mailData = $this->umail->getMail($_GET["mail_id"]);
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.mail_read.html", "Services/Mail");
$this->tpl->setVariable("HEADER",$this->lng->txt("mail_mails_of"));
//buttons
$tplbtn = new ilTemplate("tpl.buttons.html", true, true);
if($mailData["sender_id"] &&
$mailData["sender_id"] != ANONYMOUS_USER_ID)
{
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameterByClass("ilmailformgui", "mail_id", $_GET["mail_id"]);
$this->ctrl->setParameterByClass("ilmailformgui", "type", "reply");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTargetByClass("ilmailformgui"));
$this->ctrl->clearParametersByClass("iliasmailformgui");
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("reply"));
$tplbtn->parseCurrentBlock();
}
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameterByClass("ilmailformgui", "mail_id", $_GET["mail_id"]);
$this->ctrl->setParameterByClass("ilmailformgui", "type", "forward");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTargetByClass("ilmailformgui"));
$this->ctrl->clearParametersByClass("iliasmailformgui");
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("forward"));
$tplbtn->parseCurrentBlock();
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameter($this, "mail_id", $_GET["mail_id"]);
$this->ctrl->setParameter($this, "cmd", "printMail");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("print"));
$tplbtn->setVariable("BTN_TARGET","target=\"_blank\"");
$tplbtn->parseCurrentBlock();
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameter($this, "mail_id", $_GET["mail_id"]);
$this->ctrl->setParameter($this, "action", "deleteMails");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("delete"));
$tplbtn->parseCurrentBlock();
$tplbtn->setCurrentBlock("btn_row");
$tplbtn->parseCurrentBlock();
$this->tpl->setVariable("BUTTONS2",$tplbtn->get());
$this->ctrl->setParameter($this, "cmd", "post");
$this->ctrl->setParameter($this, "mail_id", $_GET["mail_id"]);
$this->tpl->setVariable("ACTION", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
if ($mailData["sender_id"] &&
$mailData["sender_id"] != $ilUser->getId() &&
$mailData["sender_id"] != ANONYMOUS_USER_ID)
{
require_once "Services/Mail/classes/class.ilAddressbook.php";
$abook = new ilAddressbook($ilUser->getId());
$tmp_user = new ilObjUser($mailData["sender_id"]);
if ($abook->checkEntryByLogin($tmp_user->getLogin()) == 0)
{
$tplbtn = new ilTemplate("tpl.buttons.html", true, true);
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameter($this, "mail_id", $_GET["mail_id"]);
$this->ctrl->setParameter($this, "cmd", "add");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("mail_add_to_addressbook"));
$tplbtn->parseCurrentBlock();
$this->tpl->setVariable("ADD_USER_BTN",$tplbtn->get());
}
}
// SET MAIL DATA
$counter = 1;
// FROM
$this->tpl->setVariable('TXT_FROM', $this->lng->txt('from'));
if($mailData["sender_id"] != ANONYMOUS_USER_ID)
{
$tmp_user = new ilObjUser($mailData['sender_id']);
$this->ctrl->setParameter($this, 'mail_id', $_GET['mail_id']);
$this->ctrl->setParameter($this, 'user', $tmp_user->getId());
if(ilObjUser::_lookupPref($mailData['sender_id'], 'public_profile') == 'y')
{
$this->tpl->setVariable('PROFILE_LINK_FROM', $this->ctrl->getLinkTarget($this, 'showUser'));
$this->tpl->setVariable('FROM', $tmp_user->getFullname());
}
$this->tpl->setCurrentBlock("pers_image");
$this->tpl->setVariable("IMG_SENDER", $tmp_user->getPersonalPicturePath("xsmall"));
$this->tpl->setVariable("ALT_SENDER", $tmp_user->getFullname());
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("adm_content");
if(!($login = $tmp_user->getLogin()))
{
$login = $mailData["import_name"]." (".$this->lng->txt("user_deleted").")";
}
$this->tpl->setVariable("MAIL_LOGIN",$login);
$this->tpl->setVariable("CSSROW_FROM", (++$counter) % 2 ? 'tblrow1' : 'tblrow2');
}
else
{
$tmp_user = new ilObjUser(ANONYMOUS_USER_ID);
$this->tpl->setVariable('MAIL_LOGIN', ilMail::_getAnonymousName());
$this->tpl->setCurrentBlock('pers_image');
$this->tpl->setVariable('IMG_SENDER', $tmp_user->getPersonalPicturePath('xsmall'));
$this->tpl->setVariable('ALT_SENDER', ilMail::_getAnonymousName());
$this->tpl->parseCurrentBlock();
}
// TO
$this->tpl->setVariable('TXT_TO', $this->lng->txt('mail_to'));
$this->tpl->setVariable('TO', $this->umail->formatNamesForOutput($mailData['rcp_to']));
$this->tpl->setVariable('CSSROW_TO', (++$counter) % 2 ? 'tblrow1' : 'tblrow2');
// CC
if($mailData['rcp_cc'])
{
$this->tpl->setCurrentBlock('cc');
$this->tpl->setVariable('TXT_CC',$this->lng->txt('cc'));
$this->tpl->setVariable('CC', $this->umail->formatNamesForOutput($mailData['rcp_cc']));
$this->tpl->setVariable('CSSROW_CC', (++$counter) % 2 ? 'tblrow1' : 'tblrow2');
$this->tpl->parseCurrentBlock();
}
// SUBJECT
$this->tpl->setVariable('TXT_SUBJECT', $this->lng->txt('subject'));
$this->tpl->setVariable('SUBJECT', htmlspecialchars($mailData['m_subject']));
$this->tpl->setVariable('CSSROW_SUBJ', (++$counter) % 2 ? 'tblrow1' : 'tblrow2');
// DATE
$this->tpl->setVariable('TXT_DATE', $this->lng->txt('date'));
$this->tpl->setVariable('DATE', ilFormat::formatDate($mailData['send_time']));
$this->tpl->setVariable('CSSROW_DATE', (++$counter) % 2 ? 'tblrow1' : 'tblrow2');
// ATTACHMENTS
if($mailData["attachments"])
{
$this->tpl->setCurrentBlock("attachment");
$this->tpl->setCurrentBlock("a_row");
$counter = 1;
foreach($mailData["attachments"] as $file)
{
$this->tpl->setVariable("A_CSSROW",++$counter%2 ? 'tblrow1' : 'tblrow2');
$this->tpl->setVariable("FILE",$file);
$this->tpl->setVariable("FILE_NAME",$file);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable("TXT_ATTACHMENT",$this->lng->txt("attachments"));
$this->tpl->setVariable("TXT_DOWNLOAD",$this->lng->txt("download"));
$this->tpl->parseCurrentBlock();
}
// MESSAGE
$this->tpl->setVariable("TXT_MESSAGE", $this->lng->txt("message"));
$this->tpl->setVariable("MAIL_MESSAGE", nl2br(ilUtil::makeClickable(ilUtil::secureString($mailData["m_message"]))));
#$this->tpl->setVariable("MAIL_MESSAGE", nl2br(ilUtil::makeClickable(htmlspecialchars($mailData["m_message"]))));
$isTrashFolder = false;
if ($this->mbox->getTrashFolder() == $_GET["mobj_id"])
{
$isTrashFolder = true;
}
$actions = $this->mbox->getActions($_GET["mobj_id"]);
foreach($actions as $key => $action)
{
if($key == 'moveMails')
{
$folders = $this->mbox->getSubFolders();
foreach($folders as $folder)
{
if ($folder["type"] != 'trash' ||
!$isTrashFolder)
{
$this->tpl->setCurrentBlock("movemail");
$this->tpl->setVariable("MOVEMAIL_VALUE", $folder["obj_id"]);
if($folder["type"] != 'user_folder')
{
$this->tpl->setVariable("MOVEMAIL_NAME",$action." ".$this->lng->txt("mail_".$folder["title"]).($folder["type"] == 'trash' ? " (".$this->lng->txt("delete").")" : ""));
}
else
{
$this->tpl->setVariable("MOVEMAIL_NAME",$action." ".$folder["title"]);
}
$this->tpl->parseCurrentBlock();
}
}
}
}
if ($_SESSION["viewmode"] == "tree") $this->tpl->setVariable("FORM_TARGET", ilFrameTargetInfo::_getFrame("MainContent"));
$this->tpl->setVariable("TXT_MOVEMAIL_SEND", $this->lng->txt('submit'));
// PREV- & NEXT-BUTTON
$prevMail = $this->umail->getPreviousMail($_GET["mail_id"]);
$nextMail = $this->umail->getNextMail($_GET["mail_id"]);
if (is_array($prevMail) || is_array($nextMail))
{
$show = false;
$tplbtn = new ilTemplate("tpl.buttons.html", true, true);
if ($prevMail["mail_id"])
{
$show = true;
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameter($this, "mail_id", $prevMail["mail_id"]);
$this->ctrl->setParameter($this, "cmd", "showMail");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("previous"));
$tplbtn->parseCurrentBlock();
}
if ($nextMail["mail_id"])
{
$show = true;
$tplbtn->setCurrentBlock("btn_cell");
$this->ctrl->setParameter($this, "mail_id", $nextMail["mail_id"]);
$this->ctrl->setParameter($this, "cmd", "showMail");
$tplbtn->setVariable("BTN_LINK", $this->ctrl->getLinkTarget($this));
$this->ctrl->clearParameters($this);
$tplbtn->setVariable("BTN_TXT", $this->lng->txt("next"));
$tplbtn->parseCurrentBlock();
}
if ($show == true)$this->tpl->setVariable("NAV_BUTTONS", $tplbtn->get());
}
$this->tpl->show();
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailFolderGUI::showUser | ( | ) |
Definition at line 167 of file class.ilMailFolderGUI.php.
References $_GET, and ilUtil::getImagePath().
{
$this->tpl->setVariable("HEADER", $this->lng->txt("mail"));
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.mail_user.html", "Services/Mail");
$this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
$this->tpl->setCurrentBlock("btn_cell");
$this->ctrl->setParameter($this, "mail_id", $_GET["mail_id"]);
$this->tpl->setVariable("BTN_LINK",$this->ctrl->getLinkTarget($this, "showMail"));
$this->tpl->setVariable("BTN_TXT", $this->lng->txt("back"));
$this->tpl->parseCurrentBlock();
include_once 'Services/User/classes/class.ilObjUserGUI.php';
$user_gui = new ilObjUserGUI("",$_GET["user"], false, false);
$this->tpl->setVariable("TBL_TITLE", $this->lng->txt("profile_of")." ".$user_gui->object->getLogin());
$this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath("icon_usr.gif"));
$this->tpl->setVariable("TBL_TITLE_IMG_ALT", $this->lng->txt("public_profile"));
$this->tpl->setVariable('USER_PROFILE', $user_gui->getPublicProfile("", false, true));
$this->tpl->show();
return true;
}
Here is the call graph for this function:ilMailFolderGUI::$ctrl = null [private] |
Definition at line 38 of file class.ilMailFolderGUI.php.
ilMailFolderGUI::$errorDelete = false [private] |
Definition at line 44 of file class.ilMailFolderGUI.php.
ilMailFolderGUI::$lng = null [private] |
Definition at line 39 of file class.ilMailFolderGUI.php.
Referenced by __construct(), and add().
ilMailFolderGUI::$mbox = null [private] |
Definition at line 42 of file class.ilMailFolderGUI.php.
ilMailFolderGUI::$tpl = null [private] |
Definition at line 37 of file class.ilMailFolderGUI.php.
Referenced by __construct(), and printMail().
ilMailFolderGUI::$umail = null [private] |
Definition at line 41 of file class.ilMailFolderGUI.php.
1.7.1