"allow to use link, redirect, redirect_link, invalidate_session_cache static"

This commit is contained in:
Ralf Becker 2008-04-20 19:31:51 +00:00
parent 689ffe18a9
commit a5b58e57e8

View File

@ -357,7 +357,7 @@ class egw extends egw_minimal
* Needs to be called if user-preferences, system-config or enabled apps of the current user have been changed and
* the change should have immediate effect
*/
function invalidate_session_cache()
static function invalidate_session_cache()
{
unset($_SESSION['egw_info_cache']);
unset($_SESSION['egw_object_cache']);
@ -369,7 +369,7 @@ class egw extends egw_minimal
* @param string $s
* @return string The string with html special characters replaced with entities
*/
function strip_html($s)
static function strip_html($s)
{
return htmlspecialchars(stripslashes($s));
}
@ -381,9 +381,9 @@ class egw extends egw_minimal
* @param string/array $extravars Extra params to be passed to the url
* @return string The full url after processing
*/
function link($url = '', $extravars = '')
static function link($url = '', $extravars = '')
{
return $this->session->link($url, $extravars);
return $GLOBALS['egw']->session->link($url, $extravars);
}
/**
@ -393,9 +393,9 @@ class egw extends egw_minimal
* @param string/array $extravars Extra params to be passed to the url
* @return string The full url after processing
*/
function redirect_link($url = '',$extravars='')
static function redirect_link($url = '',$extravars='')
{
$this->redirect($this->session->link($url, $extravars));
self::redirect($GLOBALS['egw']->session->link($url, $extravars));
}
/**
@ -405,7 +405,7 @@ class egw extends egw_minimal
*
* @param string The url ro redirect to
*/
function redirect($url = '')
static function redirect($url = '')
{
/* global $HTTP_ENV_VARS; */