Trait ConfigurableTrait
A quick implementation of the Configurable interface
Methods summary
public
AloFramework\Config\ConfigurableTrait
|
#
addConfig( string $k, mixed $v )
Adds an item to the configuration array
Adds an item to the configuration array
Parameters
- $k
- Configuration item key
- $v
- Configuration item value
Returns
Author
|
public
boolean
|
#
removeConfig( string $k )
Removes an item from the configuration array.
Removes an item from the configuration array.
Parameters
- $k
- Configuration item key
Returns
boolean True if the item existed in custom config, false if it didn't
Author
|
public
mixed
|
#
getConfig( string $k )
Returns a configuration item or null if it's not found
Returns a configuration item or null if it's not found
Parameters
- $k
- Configuration item key
Returns
mixed
Author
|
public
array
|
#
getFullConfig( )
Returns all the configuration settings
Returns all the configuration settings
Returns
array
Author
|
public
array
|
#
getCustomConfig( )
Returns the custom-set configuration
Returns the custom-set configuration
Returns
array
Author
|
public
array
|
#
getDefaultConfig( )
Returns the default configuration
Returns the default configuration
Returns
array
Author
|