source/Application/Controller/CompareController.php
protected function _removeArticlesFromPage($aItems, $oList)
    {
        //#1106S $aItems changed to $oList.
        //2006-08-10 Alfonsas, compare arrows fixed, array position is very important here, preserve it.
        $aListKeys = $oList->arrayKeys();
        $aItemKeys = array_keys($aItems);
        $aKeys = array_intersect($aItemKeys, $aListKeys);
        $aNewItems = [];
        $iActPage = $this->getActPage();
        for ($i = $this->_iArticlesPerPage * $iActPage; $i < $this->_iArticlesPerPage * $iActPage + $this->_iArticlesPerPage; $i++) {
            if (!isset($aKeys[$i])) {
                break;
            }
            $aNewItems[$aKeys[$i]] = & $aItems[$aKeys[$i]];
        }

        return $aNewItems;
    }
protected function _removeArticlesFromPage($aItems, $oList)
    {
        //#1106S $aItems changed to $oList.
        //2006-08-10 Alfonsas, compare arrows fixed, array position is very important here, preserve it.
        $aListKeys = $oList->arrayKeys();
        $aItemKeys = array_keys($aItems);
        $aKeys = array_intersect($aItemKeys, $aListKeys);
        $aNewItems = [];
        $iActPage = $this->getActPage();
        for ($i = $this->_iArticlesPerPage * $iActPage; $i < $this->_iArticlesPerPage * $iActPage + $this->_iArticlesPerPage; $i++) {
            if (!isset($aKeys[$i])) {
                break;
            }
            $aNewItems[$aKeys[$i]] = & $aItems[$aKeys[$i]];
        }

        return $aNewItems;
    }
protected function _removeArticlesFromPage ( $ aItems , $ oList ) { //#1106S $aItems changed to $oList. //2006-08-10 Alfonsas, compare arrows fixed, array position is very important here, preserve it. $ aListKeys = $ oList -> arrayKeys ( ) ; $ aItemKeys = array_keys ( $ aItems ) ; $ aKeys = array_intersect ( $ aItemKeys , $ aListKeys ) ; $ aNewItems = [ ] ; $ iActPage = $ this -> getActPage ( ) ; for ( $ i = $ this -> _iArticlesPerPage * $ iActPage ; $ i < $ this -> _iArticlesPerPage * $ iActPage + $ this -> _iArticlesPerPage ; $ i ++ ) { if ( ! isset ( $ aKeys [ $ i ] ) ) { break ; } $ aNewItems [ $ aKeys [ $ i ] ] = & $ aItems [ $ aKeys [ $ i ] ] ; } return $ aNewItems ; }
Cuts page articles

@param array  $aItems article array
@param object $oList  article list array

@return array $aNewItems
Cuts page articles