PHP 클래스 Kimai_Registry

저자: Kevin Papst
상속: extends Zend_Registry
파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getAuthenticator() 공개 정적인 메소드

public static getAuthenticator ( ) : Kimai_Auth_Abstract
리턴 Kimai_Auth_Abstract

getCache() 공개 정적인 메소드

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

getConfig() 공개 정적인 메소드

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

getDatabase() 공개 정적인 메소드

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

getTranslation() 공개 정적인 메소드

public static getTranslation ( ) : Kimai_Translation_Data
리턴 Kimai_Translation_Data

getUser() 공개 정적인 메소드

public static getUser ( ) : Kimai_User
리턴 Kimai_User

setAuthenticator() 공개 정적인 메소드

public static setAuthenticator ( Kimai_Auth_Abstract $authenticator )
$authenticator Kimai_Auth_Abstract

setCache() 공개 정적인 메소드

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

setConfig() 공개 정적인 메소드

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

setDatabase() 공개 정적인 메소드

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

setTranslation() 공개 정적인 메소드

public static setTranslation ( Kimai_Translation_Data $translation )
$translation Kimai_Translation_Data

setUser() 공개 정적인 메소드

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