PHP Class Kimai_Config_Settings

Holds user and system specific configurations, where user settings can override system settings.
Inheritance: extends Kimai_ArrayObject
Mostrar archivo Open project: kimai/kimai

Public Methods

Method Description
__construct ( array $settings = [] ) Setup the configuration object with the given array.
getDefaultLocation ( ) : string
getLanguage ( ) : string | null Returns the language to be displayed
getQuickDeleteType ( ) : integer
getRowLimit ( ) : integer
getSkin ( ) : string | null Returns the skin to be used
getSublistAnnotationType ( ) : integer
getSystemLanguage ( ) : string | null system language is set in admin extended panel
getUserLanguage ( ) : string Returns the user specific language or an empty string if not configured.
isFlipProjectDisplay ( ) : boolean
isHideClearedEntries ( ) : boolean
isShowAfterRecorded ( ) : boolean
isShowComments ( ) : boolean
isShowIds ( ) : boolean
isShowOverlapLines ( ) : boolean
isShowProjectComment ( ) : boolean
isShowQuickDelete ( ) : boolean
isShowQuickNote ( ) : boolean
isShowTrackingNumber ( ) : boolean Whether the user sees the tracking number in its timesheet.
isUseAutoSelection ( ) : boolean
isUseSmoothFading ( ) : boolean
isUserListHidden ( ) : boolean
setSkin ( $skin ) Sets the skin to be used

Protected Methods

Method Description
getDefaults ( ) : array Return default settings for the application.

Method Details

__construct() public method

Setup the configuration object with the given array.
public __construct ( array $settings = [] )
$settings array

getDefaultLocation() public method

public getDefaultLocation ( ) : string
return string

getDefaults() protected method

Return default settings for the application.
protected getDefaults ( ) : array
return array

getLanguage() public method

Returns the language to be displayed
public getLanguage ( ) : string | null
return string | null

getQuickDeleteType() public method

public getQuickDeleteType ( ) : integer
return integer

getRowLimit() public method

public getRowLimit ( ) : integer
return integer

getSkin() public method

Returns the skin to be used
public getSkin ( ) : string | null
return string | null

getSublistAnnotationType() public method

getSystemLanguage() public method

system language is set in admin extended panel
public getSystemLanguage ( ) : string | null
return string | null

getUserLanguage() public method

Returns the user specific language or an empty string if not configured.
public getUserLanguage ( ) : string
return string

isFlipProjectDisplay() public method

public isFlipProjectDisplay ( ) : boolean
return boolean

isHideClearedEntries() public method

public isHideClearedEntries ( ) : boolean
return boolean

isShowAfterRecorded() public method

public isShowAfterRecorded ( ) : boolean
return boolean

isShowComments() public method

public isShowComments ( ) : boolean
return boolean

isShowIds() public method

public isShowIds ( ) : boolean
return boolean

isShowOverlapLines() public method

public isShowOverlapLines ( ) : boolean
return boolean

isShowProjectComment() public method

public isShowProjectComment ( ) : boolean
return boolean

isShowQuickDelete() public method

public isShowQuickDelete ( ) : boolean
return boolean

isShowQuickNote() public method

public isShowQuickNote ( ) : boolean
return boolean

isShowTrackingNumber() public method

Can be configured by the user himself.
public isShowTrackingNumber ( ) : boolean
return boolean

isUseAutoSelection() public method

public isUseAutoSelection ( ) : boolean
return boolean

isUseSmoothFading() public method

public isUseSmoothFading ( ) : boolean
return boolean

isUserListHidden() public method

public isUserListHidden ( ) : boolean
return boolean

setSkin() public method

Sets the skin to be used
public setSkin ( $skin )
$skin