src/ShopBundle/objects/db/TShopArticleList.class.php
public function GetNextPageLinkAsAJAXCall($bGetAsJSFunction = true)
    {
        $sLink = false;
        if ($this->HasNextPage()) {
            $oGlobal = TGlobal::instance();
            $oExecutingModule = &$oGlobal->GetExecutingModulePointer();
            $aAdditionalParameters = array('module_fnc['.$oExecutingModule->sModuleSpotName.']' => 'ExecuteAjaxCall', '_fnc' => 'ChangePageAjax', TdbShopArticleList::URL_LIST_KEY_NAME => $this->GetListIdentKey(), TdbShopArticleList::URL_LIST_REQUEST => 'NextPage',
            );
            $sLink = $this->getActivePageService()->getLinkToActivePageRelative($aAdditionalParameters, TdbShopArticleList::GetParametersToIgnoreInPageLinks());
            if ($bGetAsJSFunction) {
                $sLink = "GetAjaxCall('{$sLink}', ShowListItems)";
            }
        }

        return $sLink;
    }
public function GetNextPageLinkAsAJAXCall($bGetAsJSFunction = true)
    {
        $sLink = false;
        if ($this->HasNextPage()) {
            $oGlobal = TGlobal::instance();
            $oExecutingModule = &$oGlobal->GetExecutingModulePointer();
            $aAdditionalParameters = array('module_fnc['.$oExecutingModule->sModuleSpotName.']' => 'ExecuteAjaxCall', '_fnc' => 'ChangePageAjax', TdbShopArticleList::URL_LIST_KEY_NAME => $this->GetListIdentKey(), TdbShopArticleList::URL_LIST_REQUEST => 'NextPage',
            );
            $sLink = $this->getActivePageService()->getLinkToActivePageRelative($aAdditionalParameters, TdbShopArticleList::GetParametersToIgnoreInPageLinks());
            if ($bGetAsJSFunction) {
                $sLink = "GetAjaxCall('{$sLink}', ShowListItems)";
            }
        }

        return $sLink;
    }
public function GetNextPageLinkAsAJAXCall ( $ bGetAsJSFunction = true ) { $ sLink = false ; if ( $ this -> HasNextPage ( ) ) { $ oGlobal = TGlobal :: instance ( ) ; $ oExecutingModule = & $ oGlobal -> GetExecutingModulePointer ( ) ; $ aAdditionalParameters = array ( 'module_fnc[' . $ oExecutingModule -> sModuleSpotName . ']' => 'ExecuteAjaxCall' , '_fnc' => 'ChangePageAjax' , TdbShopArticleList :: URL_LIST_KEY_NAME => $ this -> GetListIdentKey ( ) , TdbShopArticleList :: URL_LIST_REQUEST => 'NextPage' , ) ; $ sLink = $ this -> getActivePageService ( ) -> getLinkToActivePageRelative ( $ aAdditionalParameters , TdbShopArticleList :: GetParametersToIgnoreInPageLinks ( ) ) ; if ( $ bGetAsJSFunction ) { $ sLink = "GetAjaxCall('{$sLink}', ShowListItems)" ; } } return $ sLink ; }
returns the javascript call to fetch the items for the next page.

@param bool $bGetAsJSFunction - set to false if you just want the link

@return string
returns the javascript call to fetch the items for the next page .