Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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;
 }