src/ShopBundle/objects/db/TShopArticle.class.php
protected function generateLinkForToBasketParameters($aParameters = array(), $bIncludePortalLink)
    {
        $activePage = $this->getActivePageService()->getActivePage();
        if (!is_object($activePage)) {
            $sLink = '?'.TTools::GetArrayAsURL($aParameters);
            if ($bIncludePortalLink) {
                /** @var Request $request */
                $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
                $sLink = $request->getSchemeAndHttpHost().$sLink;
            }
        } else {
            $sLink = $activePage->GetRealURLPlain($aParameters, $bIncludePortalLink);
        }

        return $sLink;
    }
protected function generateLinkForToBasketParameters($aParameters = array(), $bIncludePortalLink)
    {
        $activePage = $this->getActivePageService()->getActivePage();
        if (!is_object($activePage)) {
            $sLink = '?'.TTools::GetArrayAsURL($aParameters);
            if ($bIncludePortalLink) {
                /** @var Request $request */
                $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
                $sLink = $request->getSchemeAndHttpHost().$sLink;
            }
        } else {
            $sLink = $activePage->GetRealURLPlain($aParameters, $bIncludePortalLink);
        }

        return $sLink;
    }
protected function generateLinkForToBasketParameters ( $ aParameters = array ( ) , $ bIncludePortalLink ) { $ activePage = $ this -> getActivePageService ( ) -> getActivePage ( ) ; if ( ! is_object ( $ activePage ) ) { $ sLink = '?' . TTools :: GetArrayAsURL ( $ aParameters ) ; if ( $ bIncludePortalLink ) { /** @var Request $request */ $ request = \ ChameleonSystem \ CoreBundle \ ServiceLocator :: get ( 'request_stack' ) -> getCurrentRequest ( ) ; $ sLink = $ request -> getSchemeAndHttpHost ( ) . $ sLink ; } } else { $ sLink = $ activePage -> GetRealURLPlain ( $ aParameters , $ bIncludePortalLink ) ; } return $ sLink ; }
Creates to basket link from given to basket parameters.

@param array $aParameters
@param $bIncludePortalLink

@return string
Creates to basket link from given to basket parameters .