PHP Class Ouzo\Config

Show file Open project: letsdrink/ouzo Class Usage Examples

Public Methods

Method Description
all ( ) : array
clearProperty ( ) : void
getPrefixSystem ( ) : string
getValue ( ) : mixed Sample usage: getValue('system_name') - will return $config['system_name'] getValue('db', 'host') - will return $config['db']['host']
isLoaded ( ) : boolean
overrideProperty ( ) : ConfigOverrideProperty
overridePropertyArray ( $keys, $value ) : void
registerConfig ( $customConfig ) : ConfigRepository
revertProperty ( ) : void
revertPropertyArray ( $keys ) : void

Private Methods

Method Description
getInstance ( ) : ConfigRepository
getInstanceNoReload ( ) : ConfigRepository

Method Details

all() public static method

public static all ( ) : array
return array

clearProperty() public static method

public static clearProperty ( ) : void
return void

getPrefixSystem() public static method

public static getPrefixSystem ( ) : string
return string

getValue() public static method

If value does not exist it will return empty array.
public static getValue ( ) : mixed
return mixed

isLoaded() public static method

public static isLoaded ( ) : boolean
return boolean

overrideProperty() public static method

public static overrideProperty ( ) : ConfigOverrideProperty
return Ouzo\Config\ConfigOverrideProperty

overridePropertyArray() public static method

public static overridePropertyArray ( $keys, $value ) : void
$keys
$value
return void

registerConfig() public static method

public static registerConfig ( $customConfig ) : ConfigRepository
$customConfig
return Ouzo\Config\ConfigRepository

revertProperty() public static method

public static revertProperty ( ) : void
return void

revertPropertyArray() public static method

public static revertPropertyArray ( $keys ) : void
$keys
return void