/** * Singleton * * @access public static * @return SLS_MemberSession $instance SLS_MemberSession instance * @since 1.0 */ public static function getInstance() { if (is_null(self::$_instance)) self::$_instance = new SLS_MemberSession(); return self::$_instance; }
/** * Instanciate all the generics objects * * @access private * @since 1.0 */ private function loadGenericsObjects() { $this->_session = new SLS_Session($this->_isRemote); $this->_lang = new SLS_Lang($this); $this->_cache = new SLS_Cache(); $this->_httpRequest = new SLS_HttpRequest(); $this->_memberSession = SLS_MemberSession::getInstance($this); }