source/Application/Controller/ManufacturerListController.php
protected function _loadArticles($oManufacturer)
    {
        $sManufacturerId = $oManufacturer->getId();

        // load only articles which we show on screen
        $iNrofCatArticles = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
        $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 1;

        $oArtList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArtList->setSqlLimit($iNrofCatArticles * $this->_getRequestPageNr(), $iNrofCatArticles);
        $oArtList->setCustomSorting($this->getSortingSql($this->getSortIdent()));

        // load the articles
        $this->_iAllArtCnt = $oArtList->loadManufacturerArticles($sManufacturerId, $oManufacturer);

        // counting pages
        $this->_iCntPages = ceil($this->_iAllArtCnt / $iNrofCatArticles);

        return [$oArtList, $this->_iAllArtCnt];
    }
protected function _loadArticles($oManufacturer)
    {
        $sManufacturerId = $oManufacturer->getId();

        // load only articles which we show on screen
        $iNrofCatArticles = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
        $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 1;

        $oArtList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArtList->setSqlLimit($iNrofCatArticles * $this->_getRequestPageNr(), $iNrofCatArticles);
        $oArtList->setCustomSorting($this->getSortingSql($this->getSortIdent()));

        // load the articles
        $this->_iAllArtCnt = $oArtList->loadManufacturerArticles($sManufacturerId, $oManufacturer);

        // counting pages
        $this->_iCntPages = ceil($this->_iAllArtCnt / $iNrofCatArticles);

        return [$oArtList, $this->_iAllArtCnt];
    }
protected function _loadArticles ( $ oManufacturer ) { $ sManufacturerId = $ oManufacturer -> getId ( ) ; // load only articles which we show on screen $ iNrofCatArticles = ( int ) \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iNrofCatArticles' ) ; $ iNrofCatArticles = $ iNrofCatArticles ? $ iNrofCatArticles : 1 ; $ oArtList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oArtList -> setSqlLimit ( $ iNrofCatArticles * $ this -> _getRequestPageNr ( ) , $ iNrofCatArticles ) ; $ oArtList -> setCustomSorting ( $ this -> getSortingSql ( $ this -> getSortIdent ( ) ) ) ; // load the articles $ this -> _iAllArtCnt = $ oArtList -> loadManufacturerArticles ( $ sManufacturerId , $ oManufacturer ) ; // counting pages $ this -> _iCntPages = ceil ( $ this -> _iAllArtCnt / $ iNrofCatArticles ) ; return [ $ oArtList , $ this -> _iAllArtCnt ] ; }
Loads and returns article list of active Manufacturer.

@param \OxidEsales\Eshop\Application\Model\Manufacturer $oManufacturer Manufacturer object

@return array
Loads and returns article list of active Manufacturer .