source/Application/Controller/VendorListController.php
protected function _loadArticles($oVendor)
    {
        $sVendorId = $oVendor->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->loadVendorArticles($sVendorId, $oVendor);

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

        return [$oArtList, $this->_iAllArtCnt];
    }
protected function _loadArticles($oVendor)
    {
        $sVendorId = $oVendor->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->loadVendorArticles($sVendorId, $oVendor);

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

        return [$oArtList, $this->_iAllArtCnt];
    }
protected function _loadArticles ( $ oVendor ) { $ sVendorId = $ oVendor -> 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 -> loadVendorArticles ( $ sVendorId , $ oVendor ) ; // counting pages $ this -> _iCntPages = ceil ( $ this -> _iAllArtCnt / $ iNrOfCatArticles ) ; return [ $ oArtList , $ this -> _iAllArtCnt ] ; }
Loads and returns article list of active vendor.

@param object $oVendor vendor object

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