class Test {
private static $Instance;
/**
* @desc Construction du singelton
*/
private function __Construct(){ echo 'Simple test d\'execution';}
public static function GetInstance() {
if (empty(self::$Instance)) {
self::$Instance = new Test;
}
return self::$Instance;
}
}// Fin de class
L' echo 'simple test d\'execution'; dans le constructeur ne fonctionne pas