Beispiel #1
0
 /**
  * Returns User.
  * @param integer $status
  * @return User
  */
 public function getUser($status = null)
 {
     if ($this->_user === false) {
         $this->_user = User::findByKeyfield($this->username, $status);
     }
     return $this->_user;
 }
Beispiel #2
0
 /**
  * Return User.
  * @return User
  */
 public function getUser()
 {
     if ($this->_user === false) {
         $this->_user = User::findByKeyfield($this->username);
     }
     return $this->_user;
 }