- Openclerk\Config
class Openclerk \ Config
Method Summary
| Name | Description |
|---|---|
| get($key, $default = null) |
Get the runtime site configuration variable named $key. |
| has($key) | |
| isEmpty() | Has configuration not been initialised yet - i.e. there have been no calls to Config#merge() or Config#overwrite()? |
| merge($values) | If the input arrays have the same string keys, then the earlier value for that key will not be overwritten. |
| overwrite($values) | If the input arrays have the same string keys, then the later value for that key will overwrite the previous one. |
static function get($key, $default = null)
Get the runtime site configuration variable named
$key.
- Defaults:
default=null- Throws:
ConfigException - if config has not been initialised or there is no valid key (and no default has been provided)
static function has($key)
static function isEmpty()
Has configuration not been initialised yet - i.e. there have been no calls to Config#merge() or Config#overwrite()?
static function merge($values)
If the input arrays have the same string keys, then the earlier value for that key will not be overwritten.
- See:
static function overwrite($values)
If the input arrays have the same string keys, then the later value for that key will overwrite the previous one.
- See: