[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/config/ -> sfConfig.class.php (sommaire)

(pas de description)

Poids: 93 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfConfig:: (6 méthodes):
  get()
  has()
  set()
  add()
  getAll()
  clear()


Classe: sfConfig  - X-Ref

sfConfig stores all configuration information for a symfony application.

get($name, $default = null)   X-Ref
Retrieves a config parameter.

param: string A config parameter name
param: mixed  A default config parameter value
return: mixed A config parameter value, if the config parameter exists, otherwise null

has($name)   X-Ref
Indicates whether or not a config parameter exists.

param: string A config parameter name
return: bool true, if the config parameter exists, otherwise false

set($name, $value)   X-Ref
Sets a config parameter.

If a config parameter with the name already exists the value will be overridden.

param: string A config parameter name
param: mixed  A config parameter value

add($parameters = array()   X-Ref
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.

param: array An associative array of config parameters and their associated values

getAll()   X-Ref
Retrieves all configuration parameters.

return: array An associative array of configuration parameters.

clear()   X-Ref
Clears all current config parameters.




Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7