PHP Class lithium\core\Configuration

See also: lithium\core\Environment
Inheritance: extends Object
Datei anzeigen Open project: unionofrad/lithium

Public Properties

Property Type Description
$_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.

Public Methods

Method Description
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.

Method Details

get() public method

Gets an array of settings for the given named configuration in the current environment.
See also: lithium\core\Environment
public get ( string $name = null ) : array
$name string Name of the configuration.
return array Settings of the named configuration.

reset() public method

Clears all configurations.
public reset ( )

set() public method

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.

Property Details

$_configurations public_oe property

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

$initConfig public_oe property

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