|
| static | factory () |
| |
|
static | config ($name, $default='') |
| |
| static FannieConfig::factory |
( |
) | |
|
|
static |
| FannieConfig::get |
( |
|
$name, |
|
|
|
$default = '' |
|
) |
| |
Get configuration value
- Parameters
-
| $name | [string] name of setting |
| $default | [optional, empty string] value returned if the setting does not exist |
For brevity, $name can omit the FANNIE_ prefix. For instance, "FANNIE_URL" and "URL" will return the same value.
Reload configuration values from file Loads from config.php by default. Also supports a config.json alternative.
Utility: write current configuration in JSON format Not super helpful since it needs lint-ing
The documentation for this class was generated from the following file:
- fannie/classlib2.0/FannieConfig.php