Class Configuration
Provides access to core the configuration and application settings with support for drivers.
Each entry has a key and value and can be accessed as such; keys use a namespace pattern. Values have a type associated with them to validate and automatically parse/un-parse them for storage.
- Core\Object implements Core\Chainable
-
Core\Set
implements
Core\Accessor
-
Core\Set\Mutable
implements
Core\Mutator
-
Core\Field
implements
Core\Inquiry
-
Core\Field\Mutable
implements
Core\Variator
-
Core\Configuration
Direct known subclasses
Core\Configuration\Driver\constant,
Core\Configuration\Driver\ini,
Core\Configuration\Driver\yaml
Namespace: Core
Package: Core
Since: 3.2
Requires: PHP 5.3
Version: 1.0
Located at Configuration.inc.php
Methods summary
protected
|
|
public static
|
|
public static
string
|
#
decodeClassName( string $identifier )
Decodes configuration notion of class identifiers by transforming
the string to camel-case and replacing dots ( |
public
mixed
|
#
get( string $key, mixed $default = null )
Retrieves a configuration option or a given default value, if the configuration option is not defined. |
public
array
|
#
getArray( string $key, mixed $default = null )
Retrieves a configuration option as an array. If the option is the default value given are not an array, the value is converted into an array. |
public
mixed
|
#
getDataForUndefinedKey( string $key )
Retrieves a configuration option or |
public
|
#
getValue( string $key, mixed $default = null )
Retrieves a configuration option or a given default value, if the configuration option is not defined, as a value instance. |
protected
mixed
|
Methods inherited from Core\Field\Mutable
offsetSet(),
offsetUnset(),
setDataForKey(),
setDataForKeys(),
setDataForUndefinedKey(),
setKeyMasquerade(),
updateMasqueradedKeys()
Methods inherited from Core\Field
getDataForKey(),
getDataForKeys(),
issetDataForKey(),
offsetExists(),
offsetGet()
Methods inherited from Core\Set\Mutable
Methods inherited from Core\Object
__autocreateFactory(),
__call(),
__processParameters(),
__toString(),
attachMethod(),
chain(),
getValueForKey(),
getValueForKeyPath(),
getValueForUndefinedKey(),
hash(),
issetValueForKey(),
setValueForKey(),
setValueForKeyPath(),
setValueForUndefinedKey(),
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType,
AutochainParameterType,
AutocreateParameterType,
BooleanParameterType,
CharParameterType,
EnumParameterType,
IntegerParameterType,
RealParameterType,
StringParameterType,
UserParameterType
Properties summary
protected
array
|
$_v_parameters
Driver configuration parameters. |
Properties inherited from Core\Field\Mutable
Properties inherited from Core\Field
Magic properties
public read-only
array
|
$parameters
Driver configuration parameters. |