PHP 클래스 Kimai_Config

상속: extends Kimai_ArrayObject
파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

공개 메소드들

메소드 설명
__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() 공개 메소드

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() 공개 메소드

isShowDaySeperatorLines() 공개 메소드

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