PHP Класс Kimai_Registry

Автор: Kevin Papst
Наследование: extends Zend_Registry
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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