PHP 클래스 lithium\core\Configuration

또한 보기: lithium\core\Environment
상속: extends Object
파일 보기 프로젝트 열기: unionofrad/lithium

공개 프로퍼티들

프로퍼티 타입 설명
$_configurations Can provide configurations based on the environment, i.e. 'development', 'production' or 'test'
$initConfig A closure called by _config() which allows to automatically assign or auto-generate additional configuration data, once a configuration is first accessed. This allows configuration data to be lazy-loaded from adapters or other data sources.

공개 메소드들

메소드 설명
get ( string $name = null ) : array Gets an array of settings for the given named configuration in the current environment.
reset ( ) Clears all configurations.
set ( string $name = null, array $config = null ) Sets configurations for a particular adaptable implementation, or returns the current configuration settings.

메소드 상세

get() 공개 메소드

Gets an array of settings for the given named configuration in the current environment.
또한 보기: lithium\core\Environment
public get ( string $name = null ) : array
$name string Name of the configuration.
리턴 array Settings of the named configuration.

reset() 공개 메소드

Clears all configurations.
public reset ( )

set() 공개 메소드

Sets configurations for a particular adaptable implementation, or returns the current configuration settings.
public set ( string $name = null, array $config = null )
$name string Name of the scope.
$config array Configuration to set.

프로퍼티 상세

$_configurations 공개적으로 프로퍼티

Can provide configurations based on the environment, i.e. 'development', 'production' or 'test'
public $_configurations

$initConfig 공개적으로 프로퍼티

A closure called by _config() which allows to automatically assign or auto-generate additional configuration data, once a configuration is first accessed. This allows configuration data to be lazy-loaded from adapters or other data sources.
public $initConfig