Example #1
0
 public static function &getInstance()
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 /**
  * Singleton getter
  *
  * @return Controller_Front
  */
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 /**
  * Checks if an instance already exists, etc.
  */
 public static function instance()
 {
     if (!self::$_instance instanceof Controller) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #4
0
 public static function getInstance($routes)
 {
     self::$_instance = is_null(self::$_instance) ? new static($routes) : self::$_instance;
     return self::$_instance;
 }