Exemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new Root();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     self::$instance = $this;
 }
Exemplo n.º 3
0
	static public function getInstance(){
		if(self::$instance == null) self::$instance = new self();
		return self::$instance;
	}