/** * 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; }
/** * Return User. * @return User */ public function getUser() { if ($this->_user === false) { $this->_user = User::findByKeyfield($this->username); } return $this->_user; }