Subversion Repositories Applications.framework

Rev

Rev 489 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 489 Rev 493
Line 10... Line 10...
10
 * @package	Framework
10
 * @package	Framework
11
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
11
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
12
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
12
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
13
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
13
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
14
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
14
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
15
 * @version	$Id: Config.php 489 2014-09-16 13:27:44Z mathias $
15
 * @version	$Id: Config.php 493 2016-11-22 13:25:01Z mathias $
16
 * @link		/doc/framework/
16
 * @link		/doc/framework/
17
 */
17
 */
Line 18... Line 18...
18
 
18
 
Line 248... Line 248...
248
		self::verifierCreationInstance();
248
		self::verifierCreationInstance();
249
		return self::getValeur($param, self::$parametres);
249
		return self::getValeur($param, self::$parametres);
250
	}
250
	}
Line 251... Line 251...
251
 
251
 
-
 
252
	/**
-
 
253
	 * Définit la valeur d'un paramètre.
-
 
254
	 * @param string $param le nom du paramètre
-
 
255
	 * @param string $valeur la valeur du paramètre
-
 
256
	 */
-
 
257
	public static function set($param, $valeur) {
-
 
258
		self::verifierCreationInstance();
-
 
259
		self::$parametres[$param] = $valeur;
-
 
260
	}
-
 
261
 
252
	/**
262
	/**
253
	 * Vérifie si la valeur d'un paramètre existe.
263
	 * Vérifie si la valeur d'un paramètre existe.
254
	 * @param string $param le nom du paramètre
264
	 * @param string $param le nom du paramètre
255
	 * @return boolean vrai si le paramètre existe, false sinon
265
	 * @return boolean vrai si le paramètre existe, false sinon
256
	 */
266
	 */