public static function &getInstance() { if (!self::$_instance instanceof self) { self::$_instance = new self(); } return self::$_instance; }
/** * 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; }
public static function getInstance($routes) { self::$_instance = is_null(self::$_instance) ? new static($routes) : self::$_instance; return self::$_instance; }