30 public static function getLinkTarget($gui,
$cmd, Array $gui_params = array(), Array $mail_params = array())
32 return self::getTargetUrl(
'&', $gui,
$cmd, $gui_params, $mail_params);
45 return self::getTargetUrl(
'&', $gui,
$cmd, $gui_params, $mail_params);
57 protected static function getTargetUrl($argument_separator, $gui,
$cmd, Array $gui_params = array(), Array $mail_params = array())
62 foreach($mail_params as $key => $value)
64 $mparams .= $argument_separator . $key .
'=' . $value;
74 foreach($gui_params as $key => $value)
76 $ilCtrlTmp->setParameter($gui, $key, $value);
78 $referer = $ilCtrlTmp->getLinkTarget($gui,
$cmd,
'',
false,
false);
80 else if(is_string($gui))
85 $referer = $argument_separator . self::REFERER_KEY .
'=' . rawurlencode(base64_encode($referer));
87 return 'ilias.php?baseClass=ilMailGUI' . $referer . $mparams;
96 if(isset($request_params[self::REFERER_KEY]))
132 $parts = parse_url($url);
133 if(isset($parts[
'query']) && strlen($parts[
'query']))
135 $url .=
'&returned_from_mail=1';
139 $url .=
'?returned_from_mail=1';
154 return isset(
$_SESSION[self::REFERER_KEY]) && strlen(
$_SESSION[self::REFERER_KEY]) ?
true :
false;