JRegistry::def
Sets a default value if not already assigned.
Signature
public function def(string
$key,
[string
$default = ''] )
Parameters
-
$key
- The name of the parameter.
-
$default
- An optional value for the parameter.
Returns
- mixed
- The value set, or the default if the value was not previously set (or null).