sfConfig stores all configuration information for a symfony application.
Method Summary
-
add($parameters)
Sets an array of config parameters.
-
clear()
Clears all current config parameters.
-
mixed
get($name, $default)
Retrieves a config parameter.
-
array
getAll()
Retrieves all configuration parameters.
-
bool
has($name)
Indicates whether or not a config parameter exists.
-
set($name, $value)
Sets a config parameter.
Method Details
-
| $parameters |
An associative array of config parameters and their associated values |
Sets an array of config parameters.
If an existing config parameter name matches any of the keys in the supplied
array, the associated value will be overridden.
-
Clears all current config parameters.
-
(mixed) get ($name, $default)
Browse code
| $name |
A config parameter name |
| $default |
A default config parameter value |
Retrieves a config parameter.
returns A config parameter value, if the config parameter exists, otherwise null
-
Retrieves all configuration parameters.
returns An associative array of configuration parameters.
-
| $name |
A config parameter name |
Indicates whether or not a config parameter exists.
returns true, if the config parameter exists, otherwise false
-
| $name |
A config parameter name |
| $value |
A config parameter value |
Sets a config parameter.
If a config parameter with the name already exists the value will be overridden.
|