public static function getInstance() { if (self::$instance === NULL) { self::$instance = new self(); } return self::$instance; }
/** * @return MainMenu */ public static function getInstance($controller, $action) { if (null === self::$instance) { self::$instance = new self::$className($controller, $action); } return self::$instance; }