src/ShopBundle/objects/db/TShopArticle.class.php
public function GetToNoticeListLink($bIncludePortalLink = false, $sMsgConsumerName = false)
    {
        if (false === $sMsgConsumerName) {
            $sMsgConsumerName = $this->GetMessageConsumerName();
        }
        $oShopConfig = TdbShop::GetInstance();

        $aParameters = array(
            'module_fnc' => array(
                $oShopConfig->GetBasketModuleSpotName() => 'AddToNoticeList',
            ),
            MTShopBasketCore::URL_ITEM_ID => $this->id,
            MTShopBasketCore::URL_ITEM_AMOUNT => 1,
            MTShopBasketCore::URL_MESSAGE_CONSUMER => $sMsgConsumerName,
        );

        $aExcludeParameters = TCMSSmartURLData::GetActive()->getSeoURLParameters();

        foreach ($aParameters as $sKey => $sVal) {
            $aExcludeParameters[] = $sKey;
        }

        // now add all OTHER parameters
        $aOtherParameters = TGlobal::instance()->GetUserData(null, $aExcludeParameters);
        foreach ($aOtherParameters as $sKey => $sVal) {
            $aParameters[$sKey] = $sVal;
        }

        $activePage = $this->getActivePageService()->getActivePage();

        return $activePage->GetRealURLPlain($aParameters, $bIncludePortalLink);
    }
public function GetToNoticeListLink($bIncludePortalLink = false, $sMsgConsumerName = false)
    {
        if (false === $sMsgConsumerName) {
            $sMsgConsumerName = $this->GetMessageConsumerName();
        }
        $oShopConfig = TdbShop::GetInstance();

        $aParameters = array(
            'module_fnc' => array(
                $oShopConfig->GetBasketModuleSpotName() => 'AddToNoticeList',
            ),
            MTShopBasketCore::URL_ITEM_ID => $this->id,
            MTShopBasketCore::URL_ITEM_AMOUNT => 1,
            MTShopBasketCore::URL_MESSAGE_CONSUMER => $sMsgConsumerName,
        );

        $aExcludeParameters = TCMSSmartURLData::GetActive()->getSeoURLParameters();

        foreach ($aParameters as $sKey => $sVal) {
            $aExcludeParameters[] = $sKey;
        }

        // now add all OTHER parameters
        $aOtherParameters = TGlobal::instance()->GetUserData(null, $aExcludeParameters);
        foreach ($aOtherParameters as $sKey => $sVal) {
            $aParameters[$sKey] = $sVal;
        }

        $activePage = $this->getActivePageService()->getActivePage();

        return $activePage->GetRealURLPlain($aParameters, $bIncludePortalLink);
    }
public function GetToNoticeListLink ( $ bIncludePortalLink = false , $ sMsgConsumerName = false ) { if ( false === $ sMsgConsumerName ) { $ sMsgConsumerName = $ this -> GetMessageConsumerName ( ) ; } $ oShopConfig = TdbShop :: GetInstance ( ) ; $ aParameters = array ( 'module_fnc' => array ( $ oShopConfig -> GetBasketModuleSpotName ( ) => 'AddToNoticeList' , ) , MTShopBasketCore :: URL_ITEM_ID => $ this -> id , MTShopBasketCore :: URL_ITEM_AMOUNT => 1 , MTShopBasketCore :: URL_MESSAGE_CONSUMER => $ sMsgConsumerName , ) ; $ aExcludeParameters = TCMSSmartURLData :: GetActive ( ) -> getSeoURLParameters ( ) ; foreach ( $ aParameters as $ sKey => $ sVal ) { $ aExcludeParameters [ ] = $ sKey ; } // now add all OTHER parameters $ aOtherParameters = TGlobal :: instance ( ) -> GetUserData ( null , $ aExcludeParameters ) ; foreach ( $ aOtherParameters as $ sKey => $ sVal ) { $ aParameters [ $ sKey ] = $ sVal ; } $ activePage = $ this -> getActivePageService ( ) -> getActivePage ( ) ; return $ activePage -> GetRealURLPlain ( $ aParameters , $ bIncludePortalLink ) ; }
generate a link used to add the article to the notice list.

@param bool $bIncludePortalLink - include domain in link
@param bool $sMsgConsumerName

@return string
generate a link used to add the article to the notice list .