48 return self::getTargetUrl(
'&', $gui,
$cmd, $gui_params, $mail_params, $context_params);
62 return self::getTargetUrl(
'&', $gui,
$cmd, $gui_params, $mail_params, $context_params);
79 foreach($mail_params as $key => $value)
81 $mparams .= $argument_separator . $key .
'=' . urlencode($value);
84 foreach($context_params as $key => $value)
86 if($key == self::CONTEXT_KEY)
88 $mparams .= $argument_separator . $key .
'=' . urlencode($value);
92 $mparams .= $argument_separator . self::CONTEXT_PREFIX .
'_' . $key .
'=' . urlencode($value);
103 foreach($gui_params as $key => $value)
105 $ilCtrlTmp->setParameter($gui, $key, $value);
107 $referer = $ilCtrlTmp->getLinkTarget($gui,
$cmd,
'',
false,
false);
109 else if(is_string($gui))
114 $referer = $argument_separator . self::REFERER_KEY .
'=' . rawurlencode(base64_encode($referer));
116 return 'ilias.php?baseClass=ilMailGUI' . $referer . $mparams;
126 if(isset($request_params[self::REFERER_KEY]))
128 $session[self::REFERER_KEY] = base64_decode(rawurldecode($request_params[self::REFERER_KEY]));
129 $session[self::SIGNATURE_KEY] = base64_decode(rawurldecode($request_params[self::SIGNATURE_KEY]));
131 $ctx_params =
array();
132 foreach($request_params as $key => $value)
134 $prefix = substr($key, 0, strlen(self::CONTEXT_PREFIX));
135 if($prefix == self::CONTEXT_PREFIX)
137 if($key == self::CONTEXT_KEY)
139 $ctx_params[$key] = $value;
143 $ctx_params[substr($key, strlen(self::CONTEXT_PREFIX .
'_'))] = $value;
147 $session[self::CONTEXT_PREFIX] = $ctx_params;
151 unset($session[self::REFERER_KEY]);
152 unset($session[self::SIGNATURE_KEY]);
153 unset($session[self::CONTEXT_PREFIX]);
167 $sig = $session[self::SIGNATURE_KEY];
169 unset($session[self::SIGNATURE_KEY]);
183 $url = $session[self::REFERER_KEY];
186 $parts = parse_url(
$url);
187 if(isset($parts[
'query']) && strlen($parts[
'query']))
189 $url .=
'&returned_from_mail=1';
193 $url .=
'?returned_from_mail=1';
197 unset($session[self::REFERER_KEY]);
210 return isset($session[self::REFERER_KEY]) && strlen($session[self::REFERER_KEY]) ? true :
false;
220 isset($session[self::CONTEXT_PREFIX][self::CONTEXT_KEY]) &&
221 strlen($session[self::CONTEXT_PREFIX][self::CONTEXT_KEY]) ?
222 $session[self::CONTEXT_PREFIX][self::CONTEXT_KEY] : NULL
232 $session[self::CONTEXT_KEY] = $id;
242 if(isset($session[self::CONTEXT_PREFIX]))
244 return (
array)$session[self::CONTEXT_PREFIX];
256 $session[self::CONTEXT_PREFIX] = $parameters;
266 $session[
'rcp_to'] = $recipients;
276 return (
array)$session[
'rcp_to'];
static get($a_var)
Get a value.
static set($a_var, $a_val)
Set a value.
Create styles array
The data for the language used.