source/Application/Controller/CompareController.php
public function getCompArtList()
    {
        if ($this->_oArtList === null) {
            if (($aItems = $this->getCompareItems())) {
                // counts how many pages
                $oList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
                $oList->loadIds(array_keys($aItems));

                // cut page articles
                if ($this->_iArticlesPerPage > 0) {
                    $this->_iCntPages = ceil($oList->count() / $this->_iArticlesPerPage);
                    $aItems = $this->_removeArticlesFromPage($aItems, $oList);
                }

                $this->_oArtList = $this->_changeArtListOrder($aItems, $oList);
            }
        }

        return $this->_oArtList;
    }
public function getCompArtList()
    {
        if ($this->_oArtList === null) {
            if (($aItems = $this->getCompareItems())) {
                // counts how many pages
                $oList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
                $oList->loadIds(array_keys($aItems));

                // cut page articles
                if ($this->_iArticlesPerPage > 0) {
                    $this->_iCntPages = ceil($oList->count() / $this->_iArticlesPerPage);
                    $aItems = $this->_removeArticlesFromPage($aItems, $oList);
                }

                $this->_oArtList = $this->_changeArtListOrder($aItems, $oList);
            }
        }

        return $this->_oArtList;
    }
public function getCompArtList ( ) { if ( $ this -> _oArtList === null ) { if ( ( $ aItems = $ this -> getCompareItems ( ) ) ) { // counts how many pages $ oList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oList -> loadIds ( array_keys ( $ aItems ) ) ; // cut page articles if ( $ this -> _iArticlesPerPage > 0 ) { $ this -> _iCntPages = ceil ( $ oList -> count ( ) / $ this -> _iArticlesPerPage ) ; $ aItems = $ this -> _removeArticlesFromPage ( $ aItems , $ oList ) ; } $ this -> _oArtList = $ this -> _changeArtListOrder ( $ aItems , $ oList ) ; } } return $ this -> _oArtList ; }
Template variable getter. Returns comparison's article
list in order per page

@return object
Template variable getter . Returns comparison s article list in order per page