PHP Class Kimai_Registry

Author: Kevin Papst
Inheritance: extends Zend_Registry
Show file Open project: kimai/kimai Class Usage Examples

Public Methods

Method Description
getAuthenticator ( ) : Kimai_Auth_Abstract
getCache ( ) : mixed Returns the global cache object.
getConfig ( ) : Kimai_Config Return the global configuration, merged with all user related configurations.
getDatabase ( ) : Kimai_Database_Mysql Returns the database layer to use.
getTranslation ( ) : Kimai_Translation_Data
getUser ( ) : Kimai_User
setAuthenticator ( Kimai_Auth_Abstract $authenticator )
setCache ( Zend_Cache_Core $cache ) Sets the global cache object.
setConfig ( Kimai_Config $config ) Sets the configuration to use.
setDatabase ( Kimai_Database_Mysql $database ) Sets the global database layer.
setTranslation ( Kimai_Translation_Data $translation )
setUser ( Kimai_User $user ) Sets the current active user.

Method Details

getAuthenticator() public static method

public static getAuthenticator ( ) : Kimai_Auth_Abstract
return Kimai_Auth_Abstract

getCache() public static method

This should be used, if you have no use for a dedicated cache.
public static getCache ( ) : mixed
return mixed

getConfig() public static method

Return the global configuration, merged with all user related configurations.
public static getConfig ( ) : Kimai_Config
return Kimai_Config

getDatabase() public static method

Returns the database layer to use.
public static getDatabase ( ) : Kimai_Database_Mysql
return Kimai_Database_Mysql

getTranslation() public static method

public static getTranslation ( ) : Kimai_Translation_Data
return Kimai_Translation_Data

getUser() public static method

public static getUser ( ) : Kimai_User
return Kimai_User

setAuthenticator() public static method

public static setAuthenticator ( Kimai_Auth_Abstract $authenticator )
$authenticator Kimai_Auth_Abstract

setCache() public static method

Sets the global cache object.
public static setCache ( Zend_Cache_Core $cache )
$cache Zend_Cache_Core

setConfig() public static method

Sets the configuration to use.
public static setConfig ( Kimai_Config $config )
$config Kimai_Config

setDatabase() public static method

Sets the global database layer.
public static setDatabase ( Kimai_Database_Mysql $database )
$database Kimai_Database_Mysql

setTranslation() public static method

public static setTranslation ( Kimai_Translation_Data $translation )
$translation Kimai_Translation_Data

setUser() public static method

Sets the current active user.
public static setUser ( Kimai_User $user )
$user Kimai_User