source/Application/Controller/NewsController.php
public function getNews()
    {
        if ($this->_oNewsList === null) {
            $this->_oNewsList = false;

            $iPerPage = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
            $iPerPage = $iPerPage ? $iPerPage : 10;

            $oActNews = oxNew(\OxidEsales\Eshop\Application\Model\NewsList::class);

            if ($iCnt = $oActNews->getCount()) {
                $this->_iCntPages = ceil($iCnt / $iPerPage);
                $oActNews->loadNews($this->getActPage() * $iPerPage, $iPerPage);
                $this->_oNewsList = $oActNews;
            }
        }

        return $this->_oNewsList;
    }
public function getNews()
    {
        if ($this->_oNewsList === null) {
            $this->_oNewsList = false;

            $iPerPage = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
            $iPerPage = $iPerPage ? $iPerPage : 10;

            $oActNews = oxNew(\OxidEsales\Eshop\Application\Model\NewsList::class);

            if ($iCnt = $oActNews->getCount()) {
                $this->_iCntPages = ceil($iCnt / $iPerPage);
                $oActNews->loadNews($this->getActPage() * $iPerPage, $iPerPage);
                $this->_oNewsList = $oActNews;
            }
        }

        return $this->_oNewsList;
    }
public function getNews ( ) { if ( $ this -> _oNewsList === null ) { $ this -> _oNewsList = false ; $ iPerPage = ( int ) \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iNrofCatArticles' ) ; $ iPerPage = $ iPerPage ? $ iPerPage : 10 ; $ oActNews = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ NewsList :: class ) ; if ( $ iCnt = $ oActNews -> getCount ( ) ) { $ this -> _iCntPages = ceil ( $ iCnt / $ iPerPage ) ; $ oActNews -> loadNews ( $ this -> getActPage ( ) * $ iPerPage , $ iPerPage ) ; $ this -> _oNewsList = $ oActNews ; } } return $ this -> _oNewsList ; }
Template variable getter. Returns newslist

@return object
Template variable getter . Returns newslist