source/Application/Model/RecommendationList.php
public function getArticles($iStart = null, $iNrofArticles = null, $blReload = false)
    {
        // cached ?
        if ($this->_oArticles !== null && !$blReload) {
            return $this->_oArticles;
        }

        $this->_oArticles = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);

        if ($iStart !== null && $iNrofArticles !== null) {
            $this->_oArticles->setSqlLimit($iStart, $iNrofArticles);
        }

        // loading basket items
        $this->_oArticles->loadRecommArticles($this->getId(), $this->_sArticlesFilter);

        return $this->_oArticles;
    }
public function getArticles($iStart = null, $iNrofArticles = null, $blReload = false)
    {
        // cached ?
        if ($this->_oArticles !== null && !$blReload) {
            return $this->_oArticles;
        }

        $this->_oArticles = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);

        if ($iStart !== null && $iNrofArticles !== null) {
            $this->_oArticles->setSqlLimit($iStart, $iNrofArticles);
        }

        // loading basket items
        $this->_oArticles->loadRecommArticles($this->getId(), $this->_sArticlesFilter);

        return $this->_oArticles;
    }
public function getArticles ( $ iStart = null , $ iNrofArticles = null , $ blReload = false ) { // cached ? if ( $ this -> _oArticles !== null && ! $ blReload ) { return $ this -> _oArticles ; } $ this -> _oArticles = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; if ( $ iStart !== null && $ iNrofArticles !== null ) { $ this -> _oArticles -> setSqlLimit ( $ iStart , $ iNrofArticles ) ; } // loading basket items $ this -> _oArticles -> loadRecommArticles ( $ this -> getId ( ) , $ this -> _sArticlesFilter ) ; return $ this -> _oArticles ; }
Returns list of recommendation list items

@param integer $iStart        start for sql limit
@param integer $iNrofArticles nr of items per page
@param bool    $blReload      if TRUE forces to reload list

@return \OxidEsales\Eshop\Core\Model\ListModel
Returns list of recommendation list items