PHP Класс lithium\core\Configuration

См. также: lithium\core\Environment
Наследование: extends Object
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$_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