public static function getInstance() { if (!self::$instance instanceof self) { self::$instance = new self(); } return self::$instance; }
/** * @return SessionManager_obj */ public static function getInstance() { if (self::$instance == null) { self::$instance = new SessionManager_obj(); } return self::$instance; }
/** * singleton function to return * the instance of the class * * @return SessionManager */ public static function singleton($args = NULL) { if (!self::$instance) { self::$instance = new SessionManager($args); } return self::$instance; }