PHP Класс Kimai_Config

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

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

Метод Описание
__construct ( array $kga ) Prefill the configuration object with the given array.
getAdminEmail ( ) : string Returns the administrators email address.
getAuthenticator ( ) : string Returns the applications default authenticator.
getBillable ( ) : array
getCurrencyName ( ) : string
getCurrencySign ( ) : string
getDateFormat ( integer $id ) : string Set one of the date formats.
getDefault ( $config ) : array | null | string Returns the default value for a given CONSTANT (see DEFAULT_*)
getDefaultStatus ( ) : integer
getDefaultVat ( ) : integer
getEditLimit ( ) : integer
getLanguage ( boolean $system = false ) : string | null Returns the current language.
getLoginBanTime ( ) : integer
getLoginTriesBeforeBan ( ) : integer
getRevision ( ) : integer Returns the actual Kimai revision from the database.
getRoundPrecisionRecorderTimes ( ) : integer
getSettings ( ) : Kimai_Config_Settings Return user specific settings.
getSkin ( ) : mixed | null Returns the applications default skin.
getStatuses ( ) : array Returns an array of all available statuses.
getTableTimeFormat ( ) : string
getTimezone ( ) : string Returns the timezone of the Kimai installation, which could be user specific if configured.
getVersion ( ) : string Returns the actual Kimai version from the database.
isDisplayCurrencyFirst ( ) : boolean
isEditLimit ( ) : boolean
isRoundDownRecorderTimes ( ) : boolean
isShowDaySeperatorLines ( ) : boolean
isShowGabBreaks ( ) : boolean
isShowRecordAgain ( ) : boolean
isTrackingNumberEnabled ( ) : mixed | null Returns whether the tracking number field is editable.
isUseExactSums ( ) : boolean
setAuthenticator ( $authenticator ) Sets the authenticator.
setBillable ( array $billable ) Sets the billable values as array.
setLanguage ( $language ) Sets the system language.
setSkin ( $skin ) Sets the skin.
setStatuses ( array $statuses ) Sets all available statuses.
setTimezone ( $timezone ) Sets the timezone.
setTranslation ( Kimai_Translation_Data $data ) There is no "getTranslation()" as you should access them through Kimai_Registry
setUser ( Kimai_User $user ) There is no "getUser()" as you should access them through Kimai_Registry

Защищенные методы

Метод Описание
getCoreDefaults ( ) : array Return default settings for the application.

Описание методов

__construct() публичный Метод

Prefill the configuration object with the given array.
public __construct ( array $kga )
$kga array

getAdminEmail() публичный Метод

Returns the administrators email address.
public getAdminEmail ( ) : string
Результат string

getAuthenticator() публичный Метод

Returns the applications default authenticator.
public getAuthenticator ( ) : string
Результат string

getBillable() публичный Метод

public getBillable ( ) : array
Результат array

getCoreDefaults() защищенный Метод

Return default settings for the application.
protected getCoreDefaults ( ) : array
Результат array

getCurrencyName() публичный Метод

public getCurrencyName ( ) : string
Результат string

getCurrencySign() публичный Метод

public getCurrencySign ( ) : string
Результат string

getDateFormat() публичный Метод

Set one of the date formats.
public getDateFormat ( integer $id ) : string
$id integer
Результат string

getDefault() публичный статический Метод

Returns the default value for a given CONSTANT (see DEFAULT_*)
public static getDefault ( $config ) : array | null | string
$config
Результат array | null | string

getDefaultStatus() публичный Метод

public getDefaultStatus ( ) : integer
Результат integer

getDefaultVat() публичный Метод

public getDefaultVat ( ) : integer
Результат integer

getEditLimit() публичный Метод

public getEditLimit ( ) : integer
Результат integer

getLanguage() публичный Метод

Can either be user specific, admin specific or system specific.
public getLanguage ( boolean $system = false ) : string | null
$system boolean whether the system language is re
Результат string | null

getLoginBanTime() публичный Метод

public getLoginBanTime ( ) : integer
Результат integer

getLoginTriesBeforeBan() публичный Метод

public getLoginTriesBeforeBan ( ) : integer
Результат integer

getRevision() публичный Метод

This is NOT the installed software revision, but the revision of the database structure.
public getRevision ( ) : integer
Результат integer

getRoundPrecisionRecorderTimes() публичный Метод

public getRoundPrecisionRecorderTimes ( ) : integer
Результат integer

getSettings() публичный Метод

Return user specific settings.
public getSettings ( ) : Kimai_Config_Settings
Результат Kimai_Config_Settings

getSkin() публичный Метод

Returns the applications default skin.
public getSkin ( ) : mixed | null
Результат mixed | null

getStatuses() публичный Метод

Returns an array of all available statuses.
public getStatuses ( ) : array
Результат array

getTableTimeFormat() публичный Метод

public getTableTimeFormat ( ) : string
Результат string

getTimezone() публичный Метод

Returns the timezone of the Kimai installation, which could be user specific if configured.
public getTimezone ( ) : string
Результат string

getVersion() публичный Метод

This is NOT the installed software version, but the version of the database structure.
public getVersion ( ) : string
Результат string

isDisplayCurrencyFirst() публичный Метод

public isDisplayCurrencyFirst ( ) : boolean
Результат boolean

isEditLimit() публичный Метод

public isEditLimit ( ) : boolean
Результат boolean

isRoundDownRecorderTimes() публичный Метод

public isRoundDownRecorderTimes ( ) : boolean
Результат boolean

isShowDaySeperatorLines() публичный Метод

public isShowDaySeperatorLines ( ) : boolean
Результат boolean

isShowGabBreaks() публичный Метод

public isShowGabBreaks ( ) : boolean
Результат boolean

isShowRecordAgain() публичный Метод

public isShowRecordAgain ( ) : boolean
Результат boolean

isTrackingNumberEnabled() публичный Метод

Returns whether the tracking number field is editable.
public isTrackingNumberEnabled ( ) : mixed | null
Результат mixed | null

isUseExactSums() публичный Метод

public isUseExactSums ( ) : boolean
Результат boolean

setAuthenticator() публичный Метод

Sets the authenticator.
public setAuthenticator ( $authenticator )
$authenticator

setBillable() публичный Метод

Sets the billable values as array.
public setBillable ( array $billable )
$billable array

setLanguage() публичный Метод

Sets the system language.
public setLanguage ( $language )
$language

setSkin() публичный Метод

Sets the skin.
public setSkin ( $skin )
$skin

setStatuses() публичный Метод

Sets all available statuses.
public setStatuses ( array $statuses )
$statuses array

setTimezone() публичный Метод

Sets the timezone.
public setTimezone ( $timezone )
$timezone

setTranslation() публичный Метод

There is no "getTranslation()" as you should access them through Kimai_Registry
Устаревший: do not call directly, only meant for backward compatibility
public setTranslation ( Kimai_Translation_Data $data )
$data Kimai_Translation_Data

setUser() публичный Метод

There is no "getUser()" as you should access them through Kimai_Registry
Устаревший: do not call directly, only meant for backward compatibility
public setUser ( Kimai_User $user )
$user Kimai_User