{
if (
$_GET[
"type"] ==
"search_res")
{
$this->ctrl->setParameterByClass("ilmailformgui", "cmd", "searchResults");
$this->ctrl->redirectByClass("ilmailformgui");
}
if (
$_GET[
"type"] ==
"attach")
{
$this->ctrl->setParameterByClass("ilmailformgui", "cmd", "mailAttachment");
$this->ctrl->redirectByClass("ilmailformgui");
}
if (
$_GET[
"type"] ==
"new")
{
$this->ctrl->setParameterByClass("ilmailformgui", "cmd", "mailUser");
$this->ctrl->redirectByClass("ilmailformgui");
}
if (
$_GET[
"type"] ==
"reply")
{
$this->ctrl->setParameterByClass("ilmailformgui", "cmd", "replyMail");
$this->ctrl->redirectByClass("ilmailformgui");
}
if (
$_GET[
"type"] ==
"read")
{
$this->ctrl->setParameterByClass("ilmailfoldergui", "cmd", "showMail");
$this->ctrl->redirectByClass("ilmailfoldergui");
}
if (
$_GET[
"type"] ==
"deliverFile")
{
$this->ctrl->setParameterByClass("ilmailfoldergui", "cmd", "deliverFile");
$this->ctrl->redirectByClass("ilmailfoldergui");
}
if (
$_GET[
"type"] ==
"message_sent")
{
$this->ctrl->redirectByClass("ilmailfoldergui");
}
if (
$_GET[
"type"] ==
"role")
{
if (is_array(
$_POST[
'roles']))
{
}
{
}
$this->ctrl->setParameterByClass("ilmailformgui", "cmd", "mailRole");
$this->ctrl->redirectByClass("ilmailformgui");
}
if (
$_GET[
"view"] ==
"my_courses")
{
$this->ctrl->setParameterByClass("ilmailformgui", "cmd", "searchCoursesTo");
$this->ctrl->redirectByClass("ilmailformgui");
}
if (isset(
$_GET[
"viewmode"]))
{
$this->ctrl->setCmd("setViewMode");
}
$this->forwardClass = $this->ctrl->getNextClass($this);
$this->ctrl->getCmd() != "showExplorer")
{
}
include_once "Services/jQuery/classes/class.iljQueryUtil.php";
switch($this->forwardClass)
{
case 'ilmailformgui':
include_once 'Services/Mail/classes/class.ilMailFormGUI.php';
break;
case 'ilmailaddressbookgui':
include_once 'Services/Contact/classes/class.ilMailAddressbookGUI.php';
break;
case 'ilmailoptionsgui':
include_once 'Services/Mail/classes/class.ilMailOptionsGUI.php';
break;
case 'ilmailfoldergui':
include_once 'Services/Mail/classes/class.ilMailFolderGUI.php';
break;
default:
if (!(
$cmd = $this->ctrl->getCmd()))
{
}
break;
}
return true;
}