PHP Class Ouzo\Config

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

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

Méthode Description
getInstance ( ) : ConfigRepository
getInstanceNoReload ( ) : ConfigRepository

Method Details

all() public static méthode

public static all ( ) : array
Résultat array

clearProperty() public static méthode

public static clearProperty ( ) : void
Résultat void

getPrefixSystem() public static méthode

public static getPrefixSystem ( ) : string
Résultat string

getValue() public static méthode

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

isLoaded() public static méthode

public static isLoaded ( ) : boolean
Résultat boolean

overrideProperty() public static méthode

public static overrideProperty ( ) : ConfigOverrideProperty
Résultat Ouzo\Config\ConfigOverrideProperty

overridePropertyArray() public static méthode

public static overridePropertyArray ( $keys, $value ) : void
$keys
$value
Résultat void

registerConfig() public static méthode

public static registerConfig ( $customConfig ) : ConfigRepository
$customConfig
Résultat Ouzo\Config\ConfigRepository

revertProperty() public static méthode

public static revertProperty ( ) : void
Résultat void

revertPropertyArray() public static méthode

public static revertPropertyArray ( $keys ) : void
$keys
Résultat void