public
|
#
__construct( array $defaults = [], array $custom = [] )
Constructor
Parameters
- $defaults
- The default configuration
- $custom
- The custom/user-supplied configuration
Author
|
public
string
|
#
serialize( )
Serializes the object
Returns
string
Author
Since
1.1
Implementation of
|
public
|
#
unserialize( string $serialized )
Unserializes the object
Parameters
- $serialized
- The serialised string
Author
Since
1.1
Implementation of
|
public
array
|
#
jsonSerialize( )
Returns a json-encodable version of the object
Returns a json-encodable version of the object
Returns
array
Author
Since
1.1
Implementation of
|
public
array
|
#
getDefaultConfig( )
Returns default configuration
Returns default configuration
Returns
array
|
public
array
|
#
getCustomConfig( )
Returns custom-set configuration
Returns custom-set configuration
Returns
array
Author
|
public
AloFramework\Config\AbstractConfig
|
#
set( string $k, mixed $v )
Sets a configuration key
Parameters
- $k
- The config key
- $v
- The config value
Returns
Author
Used by
|
public
AloFramework\Config\AbstractConfig
|
#
__set( string $k, mixed $v )
Sets a configuration key
Parameters
- $k
- The config key
- $v
- The config value
Returns
Author
Uses
|
public
mixed
|
#
get( string $k )
Returns a configuration item or NULL if it's not set
Returns a configuration item or NULL if it's not set
Parameters
- $k
- The configuration item key
Returns
mixed
Author
Used by
|
public
mixed
|
#
__get( string $k )
Returns a configuration item or NULL if it's not set
Returns a configuration item or NULL if it's not set
Parameters
- $k
- The configuration item key
Returns
mixed
Author
Uses
|
public
array
|
#
getAll( )
Returns all the config items
Returns all the config items
Returns
array
Author
|
public
boolean
|
#
remove( string $k )
Removes a custom configuration item
Removes a custom configuration item
Parameters
- $k
- The custom configuration item key
Returns
boolean TRUE if the key was present, false if it wasn't
Author
|
public
string
|
#
__toString( )
Returns a string representation of the config
Returns a string representation of the config
Returns
string
Author
|
public
|
#
offsetSet( string|integer|null $offset, mixed $value )
Sets a custom config item
Sets a custom config item
Parameters
- $offset
- The config item key
- $value
- The config item value
Author
Implementation of
|
public
boolean
|
#
offsetExists( mixed $offset )
Checks if a merged config item exists
Checks if a merged config item exists
Parameters
Returns
boolean
Author
Implementation of
|
public
|
#
offsetUnset( string|integer $offset )
Removes a custom config item key
Removes a custom config item key
Parameters
- $offset
- The config item key
Author
Implementation of
|
public
mixed
|
#
offsetGet( string|integer $offset )
Returns a merged config item
Returns a merged config item
Parameters
- $offset
- The config item key
Returns
mixed
Author
Implementation of
|