source/Application/Controller/RecommListController.php
public function render()
    {
        \OxidEsales\Eshop\Application\Controller\FrontendController::render();
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $this->_iAllArtCnt = 0;

        if ($oActiveRecommList = $this->getActiveRecommList()) {
            if (($oList = $this->getArticleList()) && $oList->count()) {
                $this->_iAllArtCnt = $oActiveRecommList->getArtCount();
            }

            if ($myConfig->getConfigParam('bl_rssRecommListArts')) {
                /** @var \OxidEsales\Eshop\Application\Model\RssFeed $oRss */
                $oRss = oxNew(\OxidEsales\Eshop\Application\Model\RssFeed::class);
                $this->addRssFeed(
                    $oRss->getRecommListArticlesTitle($oActiveRecommList),
                    $oRss->getRecommListArticlesUrl($this->_oActiveRecommList),
                    'recommlistarts'
                );
            }
        } else {
            if (($oList = $this->getRecommLists()) && $oList->count()) {
                $oRecommList = oxNew(\OxidEsales\Eshop\Application\Model\RecommendationList::class);
                $this->_iAllArtCnt = $oRecommList->getSearchRecommListCount($this->getRecommSearch());
            }
        }

        if (!($oList = $this->getArticleList())) {
            $oList = $this->getRecommLists();
        }

        if ($oList && $oList->count()) {
            $iNrofCatArticles = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
            $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 10;
            $this->_iCntPages = ceil($this->_iAllArtCnt / $iNrofCatArticles);
        }
        // processing list articles
        $this->_processListArticles();

        return $this->_sThisTemplate;
    }
public function render()
    {
        \OxidEsales\Eshop\Application\Controller\FrontendController::render();
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $this->_iAllArtCnt = 0;

        if ($oActiveRecommList = $this->getActiveRecommList()) {
            if (($oList = $this->getArticleList()) && $oList->count()) {
                $this->_iAllArtCnt = $oActiveRecommList->getArtCount();
            }

            if ($myConfig->getConfigParam('bl_rssRecommListArts')) {
                /** @var \OxidEsales\Eshop\Application\Model\RssFeed $oRss */
                $oRss = oxNew(\OxidEsales\Eshop\Application\Model\RssFeed::class);
                $this->addRssFeed(
                    $oRss->getRecommListArticlesTitle($oActiveRecommList),
                    $oRss->getRecommListArticlesUrl($this->_oActiveRecommList),
                    'recommlistarts'
                );
            }
        } else {
            if (($oList = $this->getRecommLists()) && $oList->count()) {
                $oRecommList = oxNew(\OxidEsales\Eshop\Application\Model\RecommendationList::class);
                $this->_iAllArtCnt = $oRecommList->getSearchRecommListCount($this->getRecommSearch());
            }
        }

        if (!($oList = $this->getArticleList())) {
            $oList = $this->getRecommLists();
        }

        if ($oList && $oList->count()) {
            $iNrofCatArticles = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
            $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 10;
            $this->_iCntPages = ceil($this->_iAllArtCnt / $iNrofCatArticles);
        }
        // processing list articles
        $this->_processListArticles();

        return $this->_sThisTemplate;
    }
public function render ( ) { \ OxidEsales \ Eshop \ Application \ Controller \ FrontendController :: render ( ) ; $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ this -> _iAllArtCnt = 0 ; if ( $ oActiveRecommList = $ this -> getActiveRecommList ( ) ) { if ( ( $ oList = $ this -> getArticleList ( ) ) && $ oList -> count ( ) ) { $ this -> _iAllArtCnt = $ oActiveRecommList -> getArtCount ( ) ; } if ( $ myConfig -> getConfigParam ( 'bl_rssRecommListArts' ) ) { /** @var \OxidEsales\Eshop\Application\Model\RssFeed $oRss */ $ oRss = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ RssFeed :: class ) ; $ this -> addRssFeed ( $ oRss -> getRecommListArticlesTitle ( $ oActiveRecommList ) , $ oRss -> getRecommListArticlesUrl ( $ this -> _oActiveRecommList ) , 'recommlistarts' ) ; } } else { if ( ( $ oList = $ this -> getRecommLists ( ) ) && $ oList -> count ( ) ) { $ oRecommList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ RecommendationList :: class ) ; $ this -> _iAllArtCnt = $ oRecommList -> getSearchRecommListCount ( $ this -> getRecommSearch ( ) ) ; } } if ( ! ( $ oList = $ this -> getArticleList ( ) ) ) { $ oList = $ this -> getRecommLists ( ) ; } if ( $ oList && $ oList -> count ( ) ) { $ iNrofCatArticles = ( int ) \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iNrofCatArticles' ) ; $ iNrofCatArticles = $ iNrofCatArticles ? $ iNrofCatArticles : 10 ; $ this -> _iCntPages = ceil ( $ this -> _iAllArtCnt / $ iNrofCatArticles ) ; } // processing list articles $ this -> _processListArticles ( ) ; return $ this -> _sThisTemplate ; }
Collects current view data, return current template file name

@return string
Collects current view data return current template file name