source/Application/Controller/ReviewController.php
public function getReviewUser()
    {
        if ($this->_oRevUser === null) {
            $this->_oRevUser = false;
            $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);

            if ($sUserId = $oUser->getReviewUserId($this->getReviewUserHash())) {
                // review user, by link or other source?
                if ($oUser->load($sUserId)) {
                    $this->_oRevUser = $oUser;
                }
            } elseif ($oUser = $this->getUser()) {
                // session user?
                $this->_oRevUser = $oUser;
            }
        }

        return $this->_oRevUser;
    }
public function getReviewUser()
    {
        if ($this->_oRevUser === null) {
            $this->_oRevUser = false;
            $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);

            if ($sUserId = $oUser->getReviewUserId($this->getReviewUserHash())) {
                // review user, by link or other source?
                if ($oUser->load($sUserId)) {
                    $this->_oRevUser = $oUser;
                }
            } elseif ($oUser = $this->getUser()) {
                // session user?
                $this->_oRevUser = $oUser;
            }
        }

        return $this->_oRevUser;
    }
public function getReviewUser ( ) { if ( $ this -> _oRevUser === null ) { $ this -> _oRevUser = false ; $ oUser = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ User :: class ) ; if ( $ sUserId = $ oUser -> getReviewUserId ( $ this -> getReviewUserHash ( ) ) ) { // review user, by link or other source? if ( $ oUser -> load ( $ sUserId ) ) { $ this -> _oRevUser = $ oUser ; } } elseif ( $ oUser = $ this -> getUser ( ) ) { // session user? $ this -> _oRevUser = $ oUser ; } } return $ this -> _oRevUser ; }
Returns review user object

@return oxuser
Returns review user object