PHP Class Phrozn\Config

Author: Victor Farazdagi
Inheritance: implements ArrayAccess
Afficher le fichier Open project: farazdagi/phrozn

Méthodes publiques

Méthode Description
__construct ( string $path ) Setup config aggregator
offsetExists ( $offset ) : boolean Check whether specified config section exists
offsetGet ( string $offset ) : array Get loaded configuration identified by $offset
offsetSet ( string $offset, array $value ) : Config Set config file identified by $offset
offsetUnset ( string $offset ) : Config Unset config file specified by $offset
updatePaths ( ) : Config Make sure that absolute application path is prepended to config paths

Method Details

__construct() public méthode

Setup config aggregator
public __construct ( string $path )
$path string Path to config folder

offsetExists() public méthode

Check whether specified config section exists
public offsetExists ( $offset ) : boolean
Résultat boolean

offsetGet() public méthode

Get loaded configuration identified by $offset
public offsetGet ( string $offset ) : array
$offset string Configuration file basename (w/o extension)
Résultat array

offsetSet() public méthode

Set config file identified by $offset
public offsetSet ( string $offset, array $value ) : Config
$offset string Configuration file basename (w/o extension)
$value array
Résultat Config

offsetUnset() public méthode

Unset config file specified by $offset
public offsetUnset ( string $offset ) : Config
$offset string Configuration item to unset
Résultat Config

updatePaths() public méthode

Make sure that absolute application path is prepended to config paths
public updatePaths ( ) : Config
Résultat Config