src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
protected function RedirectAfterEvent($iRequestRedirectNodeId)
    {
        if (is_null($iRequestRedirectNodeId)) {
            $this->RedirectToCallingPage();
        } else {
            $checkoutSystemPage = $this->getSystemPageService()->getSystemPage('checkout');
            if (null !== $checkoutSystemPage && $checkoutSystemPage->fieldCmsTreeId == $iRequestRedirectNodeId) {
                $this->JumpToBasketPage();
            } else {
                $oNode = new TdbCmsTree();
                if ($oNode->Load($iRequestRedirectNodeId)) {
                    $url = $this->getTreeService()->getLinkToPageForTreeRelative($oNode);
                    $this->getRedirect()->redirect($url);
                } else {
                    $this->RedirectToCallingPage();
                }
            }
        }
    }
protected function RedirectAfterEvent($iRequestRedirectNodeId)
    {
        if (is_null($iRequestRedirectNodeId)) {
            $this->RedirectToCallingPage();
        } else {
            $checkoutSystemPage = $this->getSystemPageService()->getSystemPage('checkout');
            if (null !== $checkoutSystemPage && $checkoutSystemPage->fieldCmsTreeId == $iRequestRedirectNodeId) {
                $this->JumpToBasketPage();
            } else {
                $oNode = new TdbCmsTree();
                if ($oNode->Load($iRequestRedirectNodeId)) {
                    $url = $this->getTreeService()->getLinkToPageForTreeRelative($oNode);
                    $this->getRedirect()->redirect($url);
                } else {
                    $this->RedirectToCallingPage();
                }
            }
        }
    }
protected function RedirectAfterEvent ( $ iRequestRedirectNodeId ) { if ( is_null ( $ iRequestRedirectNodeId ) ) { $ this -> RedirectToCallingPage ( ) ; } else { $ checkoutSystemPage = $ this -> getSystemPageService ( ) -> getSystemPage ( 'checkout' ) ; if ( null !== $ checkoutSystemPage && $ checkoutSystemPage -> fieldCmsTreeId == $ iRequestRedirectNodeId ) { $ this -> JumpToBasketPage ( ) ; } else { $ oNode = new TdbCmsTree ( ) ; if ( $ oNode -> Load ( $ iRequestRedirectNodeId ) ) { $ url = $ this -> getTreeService ( ) -> getLinkToPageForTreeRelative ( $ oNode ) ; $ this -> getRedirect ( ) -> redirect ( $ url ) ; } else { $ this -> RedirectToCallingPage ( ) ; } } } }
redirects the user to the requested node after performing some action.

@param string|int $iRequestRedirectNodeId
redirects the user to the requested node after performing some action .