source/Application/Controller/ArticleListController.php
protected function _loadArticles($category)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $numberOfCategoryArticles = (int) $config->getConfigParam('iNrofCatArticles');
        $numberOfCategoryArticles = $numberOfCategoryArticles ? $numberOfCategoryArticles : 1;

        // load only articles which we show on screen
        $articleList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $articleList->setSqlLimit($numberOfCategoryArticles * $this->_getRequestPageNr(), $numberOfCategoryArticles);
        $articleList->setCustomSorting($this->getSortingSql($this->getSortIdent()));

        if ($category->isPriceCategory()) {
            $priceFrom = $category->oxcategories__oxpricefrom->value;
            $priceTo = $category->oxcategories__oxpriceto->value;

            $this->_iAllArtCnt = $articleList->loadPriceArticles($priceFrom, $priceTo, $category);
        } else {
            $sessionFilter = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('session_attrfilter');

            $activeCategoryId = $category->getId();
            $this->_iAllArtCnt = $articleList->loadCategoryArticles($activeCategoryId, $sessionFilter);
        }

        $this->_iCntPages = ceil($this->_iAllArtCnt / $numberOfCategoryArticles);

        return $articleList;
    }
protected function _loadArticles($category)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $numberOfCategoryArticles = (int) $config->getConfigParam('iNrofCatArticles');
        $numberOfCategoryArticles = $numberOfCategoryArticles ? $numberOfCategoryArticles : 1;

        // load only articles which we show on screen
        $articleList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $articleList->setSqlLimit($numberOfCategoryArticles * $this->_getRequestPageNr(), $numberOfCategoryArticles);
        $articleList->setCustomSorting($this->getSortingSql($this->getSortIdent()));

        if ($category->isPriceCategory()) {
            $priceFrom = $category->oxcategories__oxpricefrom->value;
            $priceTo = $category->oxcategories__oxpriceto->value;

            $this->_iAllArtCnt = $articleList->loadPriceArticles($priceFrom, $priceTo, $category);
        } else {
            $sessionFilter = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('session_attrfilter');

            $activeCategoryId = $category->getId();
            $this->_iAllArtCnt = $articleList->loadCategoryArticles($activeCategoryId, $sessionFilter);
        }

        $this->_iCntPages = ceil($this->_iAllArtCnt / $numberOfCategoryArticles);

        return $articleList;
    }
protected function _loadArticles ( $ category ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ numberOfCategoryArticles = ( int ) $ config -> getConfigParam ( 'iNrofCatArticles' ) ; $ numberOfCategoryArticles = $ numberOfCategoryArticles ? $ numberOfCategoryArticles : 1 ; // load only articles which we show on screen $ articleList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ articleList -> setSqlLimit ( $ numberOfCategoryArticles * $ this -> _getRequestPageNr ( ) , $ numberOfCategoryArticles ) ; $ articleList -> setCustomSorting ( $ this -> getSortingSql ( $ this -> getSortIdent ( ) ) ) ; if ( $ category -> isPriceCategory ( ) ) { $ priceFrom = $ category -> oxcategories__oxpricefrom -> value ; $ priceTo = $ category -> oxcategories__oxpriceto -> value ; $ this -> _iAllArtCnt = $ articleList -> loadPriceArticles ( $ priceFrom , $ priceTo , $ category ) ; } else { $ sessionFilter = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'session_attrfilter' ) ; $ activeCategoryId = $ category -> getId ( ) ; $ this -> _iAllArtCnt = $ articleList -> loadCategoryArticles ( $ activeCategoryId , $ sessionFilter ) ; } $ this -> _iCntPages = ceil ( $ this -> _iAllArtCnt / $ numberOfCategoryArticles ) ; return $ articleList ; }
Loads and returns article list of active category.

@param \OxidEsales\Eshop\Application\Model\Category $category category object

@return oxArticleList
Loads and returns article list of active category .