Class Conf
This class is used to get and set the application base configuration
-
Hawk\Singleton
-
Hawk\Conf
Methods summary
public
mixed
|
#
get( string $option = '' )
Get a configuration value
Get a configuration value
Parameters
- $option
- The name of the configuration parameter to get
Returns
mixed The configuration value
|
public
|
#
set( string $option, mixed $value = null )
Set a configuration parameter
Set a configuration parameter
Parameters
- $option
- The name of the parameter to set
- $value
- The value to set
|
public
boolean
|
#
has( string $option )
Check if a configuration parameter exists
Check if a configuration parameter exists
Parameters
- $option
- The parameter name to find
Returns
boolean True if the parameter exists in the application configuration, false else
|
Properties summary
protected static
Hawk\Conf
|
$instance
The configuration instance
The configuration instance
|
|