PHP Класс Phrozn\Config

Автор: Victor Farazdagi
Наследование: implements ArrayAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

offsetExists() публичный Метод

Check whether specified config section exists
public offsetExists ( $offset ) : boolean
Результат boolean

offsetGet() публичный Метод

Get loaded configuration identified by $offset
public offsetGet ( string $offset ) : array
$offset string Configuration file basename (w/o extension)
Результат array

offsetSet() публичный Метод

Set config file identified by $offset
public offsetSet ( string $offset, array $value ) : Config
$offset string Configuration file basename (w/o extension)
$value array
Результат Config

offsetUnset() публичный Метод

Unset config file specified by $offset
public offsetUnset ( string $offset ) : Config
$offset string Configuration item to unset
Результат Config

updatePaths() публичный Метод

Make sure that absolute application path is prepended to config paths
public updatePaths ( ) : Config
Результат Config