src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
protected function RedirectToItemPage($oReviewItem = null, $aAddParameter = array(), $bGoToWriteReviewFrom = false)
    {
        $oActivePage = $this->getActivePageService()->getActivePage();
        $sRedirectURL = $oActivePage->GetRealURLPlain($aAddParameter);
        if (null !== $oReviewItem) {
            $sRedirectURL .= '#'.TdbShopArticleReview::URL_PARAM_REVIEW_ITEM_JUMPER.$oReviewItem->sqlData['id'];
        } else {
            if ($bGoToWriteReviewFrom) {
                $sRedirectURL .= '#'.self::URL_PARAM_REVIEW_WRITE_JUMPER;
            } else {
                $sRedirectURL .= '#'.self::URL_PARAM_REVIEW_JUMPER;
            }
        }

        $this->getRedirect()->redirect($sRedirectURL);
    }
protected function RedirectToItemPage($oReviewItem = null, $aAddParameter = array(), $bGoToWriteReviewFrom = false)
    {
        $oActivePage = $this->getActivePageService()->getActivePage();
        $sRedirectURL = $oActivePage->GetRealURLPlain($aAddParameter);
        if (null !== $oReviewItem) {
            $sRedirectURL .= '#'.TdbShopArticleReview::URL_PARAM_REVIEW_ITEM_JUMPER.$oReviewItem->sqlData['id'];
        } else {
            if ($bGoToWriteReviewFrom) {
                $sRedirectURL .= '#'.self::URL_PARAM_REVIEW_WRITE_JUMPER;
            } else {
                $sRedirectURL .= '#'.self::URL_PARAM_REVIEW_JUMPER;
            }
        }

        $this->getRedirect()->redirect($sRedirectURL);
    }
protected function RedirectToItemPage ( $ oReviewItem = null , $ aAddParameter = array ( ) , $ bGoToWriteReviewFrom = false ) { $ oActivePage = $ this -> getActivePageService ( ) -> getActivePage ( ) ; $ sRedirectURL = $ oActivePage -> GetRealURLPlain ( $ aAddParameter ) ; if ( null !== $ oReviewItem ) { $ sRedirectURL .= '#' . TdbShopArticleReview :: URL_PARAM_REVIEW_ITEM_JUMPER . $ oReviewItem -> sqlData [ 'id' ] ; } else { if ( $ bGoToWriteReviewFrom ) { $ sRedirectURL .= '#' . self :: URL_PARAM_REVIEW_WRITE_JUMPER ; } else { $ sRedirectURL .= '#' . self :: URL_PARAM_REVIEW_JUMPER ; } } $ this -> getRedirect ( ) -> redirect ( $ sRedirectURL ) ; }
Redirect to review item page and set anchor to start of the review module.

@param array $aAddParameter
Redirect to review item page and set anchor to start of the review module .