57 {
58 if (
$_GET[
"type"] ==
"search_res") {
60
61 $this->ctrl->setParameterByClass("ilmailformgui", "cmd", "searchResults");
62 $this->ctrl->redirectByClass("ilmailformgui");
63 }
64
65 if (
$_GET[
"type"] ==
"attach") {
67
68 $this->ctrl->setParameterByClass("ilmailformgui", "cmd", "mailAttachment");
69 $this->ctrl->redirectByClass("ilmailformgui");
70 }
71
72 if (
$_GET[
"type"] ==
"new") {
75 $_SESSION[
'rcp_to'] = implode(
',', $recipients);
77 }
80
82
83 $this->ctrl->setParameterByClass("ilmailformgui", "cmd", "mailUser");
84 $this->ctrl->redirectByClass("ilmailformgui");
85 }
86
87 if (
$_GET[
"type"] ==
"reply") {
89 $this->ctrl->setParameterByClass("ilmailformgui", "cmd", "replyMail");
90 $this->ctrl->redirectByClass("ilmailformgui");
91 }
92
93 if (
$_GET[
"type"] ==
"read") {
95 $this->ctrl->setParameterByClass("ilmailfoldergui", "cmd", "showMail");
96 $this->ctrl->redirectByClass("ilmailfoldergui");
97 }
98
99 if (
$_GET[
"type"] ==
"deliverFile") {
102 $this->ctrl->setParameterByClass("ilmailfoldergui", "cmd", "deliverFile");
103 $this->ctrl->redirectByClass("ilmailfoldergui");
104 }
105
106 if (
$_GET[
"type"] ==
"message_sent") {
108 $this->ctrl->redirectByClass("ilmailfoldergui");
109 }
110
111 if (
$_GET[
"type"] ==
"role") {
112 if (is_array(
$_POST[
'roles'])) {
114 } elseif (
$_GET[
"role"]) {
116 }
117
119
120 $this->ctrl->setParameterByClass("ilmailformgui", "cmd", "mailRole");
121 $this->ctrl->redirectByClass("ilmailformgui");
122 }
123
124 if (
$_GET[
"view"] ==
"my_courses") {
126 $this->ctrl->setParameterByClass("ilmailformgui", "cmd", "searchCoursesTo");
127 $this->ctrl->redirectByClass("ilmailformgui");
128 }
129
130 if (isset(
$_GET[
"viewmode"])) {
132 $this->ctrl->setCmd("setViewMode");
133 }
134
135 $this->forwardClass = $this->ctrl->getNextClass($this);
136
138
140 $this->ctrl->getCmd() != "showExplorer") {
142 }
143
144 switch ($this->forwardClass) {
145 case 'ilmailformgui':
146 include_once 'Services/Mail/classes/class.ilMailFormGUI.php';
147
149 break;
150
151 case 'ilcontactgui':
152 require_once 'Services/Contact/classes/class.ilContactGUI.php';
153 $this->tpl->setTitle($this->lng->txt('mail_addressbook'));
155 break;
156
157 case 'ilmailoptionsgui':
158 $this->tpl->setTitle($this->lng->txt('mail'));
159 include_once 'Services/Mail/classes/class.ilMailOptionsGUI.php';
160
162 break;
163
164 case 'ilmailfoldergui':
165 include_once 'Services/Mail/classes/class.ilMailFolderGUI.php';
167 break;
168
169 default:
170 if (!($cmd = $this->ctrl->getCmd())) {
171 $cmd = "setViewMode";
172 }
173
174 $this->$cmd();
175 break;
176
177 }
178 return true;
179 }
static set($a_var, $a_val)
Set a value.
static get($a_var)
Get a value.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.