PHP 클래스 Phrozn\Config

저자: Victor Farazdagi
상속: implements ArrayAccess
파일 보기 프로젝트 열기: farazdagi/phrozn

공개 메소드들

메소드 설명
__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