/** * Fetches a singleton instance of this class. * * @return RPG_Input */ public static function getInstance() { if (self::$_instance === null) { self::$_instance = new self(); } return self::$_instance; }
/** * Clears the user's autologin information. */ public function clearAutoLogin() { // no params clears the autologin $this->_model->updateAutoLogin($this->id); $this->_input->setCookie('autologin', null); $this->_input->setCookie('userid', null); }
/** * Fetches the instance of the input library, instantiating it if * necessary. * * @return RPG_Input */ public static function input() { if (self::$_input === null) { self::$_input = RPG_Input::getInstance(); } return self::$_input; }