source/Application/Component/UserComponent.php
protected function _loadSessionUser()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $oUser = $this->getUser();

        // no session user
        if (!$oUser) {
            return;
        }

        // this user is blocked, deny him
        if ($oUser->inGroup('oxidblocked')) {
            $sUrl = $myConfig->getShopHomeUrl() . 'cl=content&tpl=user_blocked.tpl';
            \OxidEsales\Eshop\Core\Registry::getUtils()->redirect($sUrl, true, 302);
        }

        // TODO: move this to a proper place
        if ($oUser->isLoadedFromCookie() && !$myConfig->getConfigParam('blPerfNoBasketSaving')) {
            if ($oBasket = $this->getSession()->getBasket()) {
                $oBasket->load();
                $oBasket->onUpdate();
            }
        }
    }
protected function _loadSessionUser()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $oUser = $this->getUser();

        // no session user
        if (!$oUser) {
            return;
        }

        // this user is blocked, deny him
        if ($oUser->inGroup('oxidblocked')) {
            $sUrl = $myConfig->getShopHomeUrl() . 'cl=content&tpl=user_blocked.tpl';
            \OxidEsales\Eshop\Core\Registry::getUtils()->redirect($sUrl, true, 302);
        }

        // TODO: move this to a proper place
        if ($oUser->isLoadedFromCookie() && !$myConfig->getConfigParam('blPerfNoBasketSaving')) {
            if ($oBasket = $this->getSession()->getBasket()) {
                $oBasket->load();
                $oBasket->onUpdate();
            }
        }
    }
protected function _loadSessionUser ( ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ oUser = $ this -> getUser ( ) ; // no session user if ( ! $ oUser ) { return ; } // this user is blocked, deny him if ( $ oUser -> inGroup ( 'oxidblocked' ) ) { $ sUrl = $ myConfig -> getShopHomeUrl ( ) . 'cl=content&tpl=user_blocked.tpl' ; \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) -> redirect ( $ sUrl , true , 302 ) ; } // TODO: move this to a proper place if ( $ oUser -> isLoadedFromCookie ( ) && ! $ myConfig -> getConfigParam ( 'blPerfNoBasketSaving' ) ) { if ( $ oBasket = $ this -> getSession ( ) -> getBasket ( ) ) { $ oBasket -> load ( ) ; $ oBasket -> onUpdate ( ) ; } } }
Tries to load user ID from session.

@return null
Tries to load user ID from session .