Get the user logged in.

@return Vinala\Kernel\MVC\ORM
425059
public static function user()
    {
        if (self::check()) {
            if (is_null(static::$user)) {
                $data = Session::get(static::resource('session'));

                $data = static::query($data);

                static::$user = static::orm($data[0]);
            }

            return static::$user;
        }
    }
635823
public function getUser()
    {
        if ($user = $this->provider) {
            return ($field = $this->field) ? (string) $user->get($field)  : $user->get('id');
        }
    }
1083280
public function getUser()
    {
        if ($this->_oActiveUser == null) {
            $this->_oActiveUser = false;
            $sOxId = $this->getEditObjectId();
            if (isset($sOxId) && $sOxId != "-1") {
                // load object
                $this->_oActiveUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
                $this->_oActiveUser->load($sOxId);
            }
        }

        return $this->_oActiveUser;
    }
847027
public function getUser()
    {
        if ($this->_user === false) {
            $this->_user = User::findByKeyfield($this->username);
        }
        return $this->_user;
    }
995352
public function getUserData()
    {
        if (!$this->tokenStorage->getToken()
            || !$this->authorizationChecker->isGranted('IS_AUTHENTICATED_REMEMBERED')
        ) {
            return null;
        }

        $user = $this->tokenStorage->getToken()->getUser();

        if (!$user) {
            return null;
        }

        return $this->userHelper->buildUserData($user);
    }
232895
public function getUser() {
        $this->user = $this->sessionStorage->read('user');
        if (!empty($this->user)) {
            return $this->user;
        }

        $this->exchangeToken();

        return $this->user;
    }
74762
private function getUser()
	{
		if ($this->_user === false) {
			$this->_user = Administrator::findByEmail($this->email);
		}
		return $this->_user;
	}
920367
public function getActiveUser()
    {
        if ($this->_oActiveUserObject === null) {
            $this->_oActiveUserObject = false;

            /** @var oxUser $oUser */
            $oUser = $this->getObjectFactory()->createOxidObject('oxUser');

            if ($oUser->loadActiveUser() === true) {
                $this->_oActiveUserObject = $oUser;
            }
        }

        return $this->_oActiveUserObject;
    }
382945
public function getUser()
    {
        if ( null === $this->_user && $this->userId )
        {
            $this->_user = $this->getUserMapper()
                                ->find( $this->userId );
        }

        return $this->_user;
    }
1224224
public function getUser()
    {

        $resource = '/users/' . $this->userId;
        $response = $this->makeAuthenticatedApiRequest($resource);
        return $response->user;

    }
155288
protected function getOwner() {
    $uid = NULL;

    if ($account = $this->currentUser->getAccount()) {
      $uid = $account->id();

      // Check if the user had stored "session" data before loggin in, and use
      // that "session" id as the owner instead of user id.
      if ($owner = $this->getOwnerReference($uid)) {
        return $owner;
      }
    }

    $cookies = $this->getCookies();
    if (!empty($cookies['Drupal_visitor_' . self::SESSION_ID_COOKIE])) {
      $sid = $cookies['Drupal_visitor_' . self::SESSION_ID_COOKIE];
      // If there's a logged in user and a stored "session" id cookie we want
      // to create a reference to it so if they log in on a different computer
      // they can retrieve their "session" data.
      if ($uid) {
        $this->setOwnerReference($uid, $sid);
      }

      return $sid;
    }

    // If user is logged in use their id as the owner.
    if ($uid) {
      return $uid;
    }

    // If we got this far it's an anonymous user (drupal and commerce), so
    // generate a "session" id and save it for later use.
    $sid = $this->generateSessionId();
    $this->setCookie(self::SESSION_ID_COOKIE, $sid);

    return $sid;
  }
849555
public function getUser() {
        $session = $this->session_manager->session;

        if ($session && !$this->user) {
            $user_id = $session->get(Auth::getName());

            if ($user_id && is_null($this->user)) {
                $user_model = Config::get('auth.providers.users.model');

                if ($user_model) {
                    $this->user = $user_model::find($user_id);
                }
            } else {
                $this->user = null;
            }
        }

        return $this->user;
    }
172291
public function getUser()
    {
        if ($this->_user) return $this->_user;
        
	    try {
    	    $za = $this->getAuth();
            $id = $za->getIdentity();
            if (!$id) return FALSE;
        } catch (\Exception $e) {
            return FALSE;
        }
                
        if (isset($id['user_id'])) {
        
           if (!$this->_connected) return false;          
           $this->_user = User::getAuthorized($id);
           
        }
        
        return $this->_user;
    }
338769
public function getAuthUserId()
    {
        $user_id = null;
        $user = $this->getAuthUser();
        if ($user) {
            $user_id = $user->user_id;
        }
        return $user_id;
    }
1219899
public function getCurrentUser()
    {
        $returnValue = null;

    	if(!common_session_SessionManager::isAnonymous()){
        	$userUri = \common_session_SessionManager::getSession()->getUser()->getIdentifier();
			if(!empty($userUri)){
        		$returnValue = new core_kernel_classes_Resource($userUri);
			} else {
				common_Logger::d('no userUri');
			}
    	}

        return $returnValue;
    }
802230
protected function getUser()
    {
        if ($this->_user === null) {
            $this->_user = DpAdminUser::findByUsername($this->username);
        }

        return $this->_user;
    }
243993
public function getUser()
    {
        if ($user = $this->provider->getUser()) {
            return ($field = $this->field) ? (string) $user->{$field} : $user->getLogin();
        }
    }