Subversion Repositories Applications.framework

Compare Revisions

Ignore whitespace Rev 223 → Rev 224

/trunk/framework/Registre.php
2,36 → 2,28
// declare(encoding='UTF-8');
/**
* Classe registre, qui permet un accès à différentes variables à travers les autres classes.
* C'est un singleton
* C'est un singleton.
*
* PHP Version 5
*
* @category Class
* @package Framework
* @author Jean-Pascal Milcent <jmp@tela-botanica.org>
* @copyright 2009 Tela-Botanica
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
* @version SVN: $$Id$$
* @link /doc/framework/
*
* @category php 5.2
* @package Framework
* @author Jean-Pascal Milcent <jmp@tela-botanica.org>
* @copyright 2009 Tela-Botanica
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
* @version SVN: $Id$
* @link /doc/framework/
*
*/
class Registre {
 
/**
* Tableau associatif stockant les variables
*/
/** Tableau associatif stockant les variables */
private $stockage = array();
/**
* La classe registre se contient elle-même, (pour le pattern singleton)
*/
/** La classe registre se contient elle-même, (pour le pattern singleton) */
private static $registre;
 
/**
* Constructeur par défaut, privé, car on accède à la classe par le getInstance
*/
private function __construct() {
}
/** Constructeur par défaut, privé, car on accède à la classe par le getInstance */
private function __construct() { }
 
/**
* Fonction qui renvoie l'instance de classe en assurant son unicité, c'est l'unique méthode qui doit être
85,7 → 77,7
* @return boolean true si un objet associé à cet intitulé est présent, false sinon
*/
public function existe($intitule) {
if(isset($this->stockage[$intitule])){
if (isset($this->stockage[$intitule])){
return true;
}
return false;