src/ShopBundle/objects/db/TShopVoucher.class.php
public function GetRemoveFromBasketLink($sMessageHandler = null)
    {
        if (is_null($sMessageHandler)) {
            $sMessageHandler = MTShopBasketCore::MSG_CONSUMER_NAME;
        }
        $oShopConfig = $this->getShopService()->getActiveShop();

        return $this->getActivePageService()->getLinkToActivePageRelative(array(
            'module_fnc' => array(
                $oShopConfig->GetBasketModuleSpotName() => 'RemoveVoucher',
            ),
            MTShopBasketCore::URL_REQUEST_PARAMETER => array(
                MTShopBasketCore::URL_MESSAGE_CONSUMER_NAME => $sMessageHandler,
                MTShopBasketCore::URL_VOUCHER_BASKET_KEY => $this->sBasketVoucherKey,
            ),
        ));
    }
public function GetRemoveFromBasketLink($sMessageHandler = null)
    {
        if (is_null($sMessageHandler)) {
            $sMessageHandler = MTShopBasketCore::MSG_CONSUMER_NAME;
        }
        $oShopConfig = $this->getShopService()->getActiveShop();

        return $this->getActivePageService()->getLinkToActivePageRelative(array(
            'module_fnc' => array(
                $oShopConfig->GetBasketModuleSpotName() => 'RemoveVoucher',
            ),
            MTShopBasketCore::URL_REQUEST_PARAMETER => array(
                MTShopBasketCore::URL_MESSAGE_CONSUMER_NAME => $sMessageHandler,
                MTShopBasketCore::URL_VOUCHER_BASKET_KEY => $this->sBasketVoucherKey,
            ),
        ));
    }
public function GetRemoveFromBasketLink ( $ sMessageHandler = null ) { if ( is_null ( $ sMessageHandler ) ) { $ sMessageHandler = MTShopBasketCore :: MSG_CONSUMER_NAME ; } $ oShopConfig = $ this -> getShopService ( ) -> getActiveShop ( ) ; return $ this -> getActivePageService ( ) -> getLinkToActivePageRelative ( array ( 'module_fnc' => array ( $ oShopConfig -> GetBasketModuleSpotName ( ) => 'RemoveVoucher' , ) , MTShopBasketCore :: URL_REQUEST_PARAMETER => array ( MTShopBasketCore :: URL_MESSAGE_CONSUMER_NAME => $ sMessageHandler , MTShopBasketCore :: URL_VOUCHER_BASKET_KEY => $ this -> sBasketVoucherKey , ) , ) ) ; }
return a link to remove the voucher from the basket.

@param string $sMessageHandler - the message handler which should be used to display the result
- if nothing is specified, MTShopBasketCore::MSG_CONSUMER_NAME will be used

@return string
return a link to remove the voucher from the basket .