PHP Class Kimai_Config

Inheritance: extends Kimai_ArrayObject
Afficher le fichier Open project: kimai/kimai Class Usage Examples

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
getCoreDefaults ( ) : array Return default settings for the application.

Method Details

__construct() public méthode

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

getAdminEmail() public méthode

Returns the administrators email address.
public getAdminEmail ( ) : string
Résultat string

getAuthenticator() public méthode

Returns the applications default authenticator.
public getAuthenticator ( ) : string
Résultat string

getBillable() public méthode

public getBillable ( ) : array
Résultat array

getCoreDefaults() protected méthode

Return default settings for the application.
protected getCoreDefaults ( ) : array
Résultat array

getCurrencyName() public méthode

public getCurrencyName ( ) : string
Résultat string

getCurrencySign() public méthode

public getCurrencySign ( ) : string
Résultat string

getDateFormat() public méthode

Set one of the date formats.
public getDateFormat ( integer $id ) : string
$id integer
Résultat string

getDefault() public static méthode

Returns the default value for a given CONSTANT (see DEFAULT_*)
public static getDefault ( $config ) : array | null | string
$config
Résultat array | null | string

getDefaultStatus() public méthode

public getDefaultStatus ( ) : integer
Résultat integer

getDefaultVat() public méthode

public getDefaultVat ( ) : integer
Résultat integer

getEditLimit() public méthode

public getEditLimit ( ) : integer
Résultat integer

getLanguage() public méthode

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
Résultat string | null

getLoginBanTime() public méthode

public getLoginBanTime ( ) : integer
Résultat integer

getLoginTriesBeforeBan() public méthode

public getLoginTriesBeforeBan ( ) : integer
Résultat integer

getRevision() public méthode

This is NOT the installed software revision, but the revision of the database structure.
public getRevision ( ) : integer
Résultat integer

getRoundPrecisionRecorderTimes() public méthode

getSettings() public méthode

Return user specific settings.
public getSettings ( ) : Kimai_Config_Settings
Résultat Kimai_Config_Settings

getSkin() public méthode

Returns the applications default skin.
public getSkin ( ) : mixed | null
Résultat mixed | null

getStatuses() public méthode

Returns an array of all available statuses.
public getStatuses ( ) : array
Résultat array

getTableTimeFormat() public méthode

public getTableTimeFormat ( ) : string
Résultat string

getTimezone() public méthode

Returns the timezone of the Kimai installation, which could be user specific if configured.
public getTimezone ( ) : string
Résultat string

getVersion() public méthode

This is NOT the installed software version, but the version of the database structure.
public getVersion ( ) : string
Résultat string

isDisplayCurrencyFirst() public méthode

public isDisplayCurrencyFirst ( ) : boolean
Résultat boolean

isEditLimit() public méthode

public isEditLimit ( ) : boolean
Résultat boolean

isRoundDownRecorderTimes() public méthode

public isRoundDownRecorderTimes ( ) : boolean
Résultat boolean

isShowDaySeperatorLines() public méthode

public isShowDaySeperatorLines ( ) : boolean
Résultat boolean

isShowGabBreaks() public méthode

public isShowGabBreaks ( ) : boolean
Résultat boolean

isShowRecordAgain() public méthode

public isShowRecordAgain ( ) : boolean
Résultat boolean

isTrackingNumberEnabled() public méthode

Returns whether the tracking number field is editable.
public isTrackingNumberEnabled ( ) : mixed | null
Résultat mixed | null

isUseExactSums() public méthode

public isUseExactSums ( ) : boolean
Résultat boolean

setAuthenticator() public méthode

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

setBillable() public méthode

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

setLanguage() public méthode

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

setSkin() public méthode

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

setStatuses() public méthode

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

setTimezone() public méthode

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

setTranslation() public méthode

There is no "getTranslation()" as you should access them through Kimai_Registry
Deprecation: do not call directly, only meant for backward compatibility
public setTranslation ( Kimai_Translation_Data $data )
$data Kimai_Translation_Data

setUser() public méthode

There is no "getUser()" as you should access them through Kimai_Registry
Deprecation: do not call directly, only meant for backward compatibility
public setUser ( Kimai_User $user )
$user Kimai_User