src/ShopBundle/objects/TShopBasket/TShopBasketCore.class.php
public function ClearBasket()
    {
        $this->UnlockBasket();
        /** @var Request $request */
        $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
        $request->getSession()->remove(self::SESSION_KEY_NAME);

        $event = new \ChameleonSystem\ShopBundle\objects\TShopBasket\BasketItemEvent(
            TdbDataExtranetUser::GetInstance(),
            $this
        );
        $this->getEventDispatcher()->dispatch(\ChameleonSystem\ShopBundle\ShopEvents::BASKET_CLEAR, $event);
    }
public function ClearBasket()
    {
        $this->UnlockBasket();
        /** @var Request $request */
        $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
        $request->getSession()->remove(self::SESSION_KEY_NAME);

        $event = new \ChameleonSystem\ShopBundle\objects\TShopBasket\BasketItemEvent(
            TdbDataExtranetUser::GetInstance(),
            $this
        );
        $this->getEventDispatcher()->dispatch(\ChameleonSystem\ShopBundle\ShopEvents::BASKET_CLEAR, $event);
    }
public function ClearBasket ( ) { $ this -> UnlockBasket ( ) ; /** @var Request $request */ $ request = \ ChameleonSystem \ CoreBundle \ ServiceLocator :: get ( 'request_stack' ) -> getCurrentRequest ( ) ; $ request -> getSession ( ) -> remove ( self :: SESSION_KEY_NAME ) ; $ event = new \ ChameleonSystem \ ShopBundle \ objects \ TShopBasket \ BasketItemEvent ( TdbDataExtranetUser :: GetInstance ( ) , $ this ) ; $ this -> getEventDispatcher ( ) -> dispatch ( \ ChameleonSystem \ ShopBundle \ ShopEvents :: BASKET_CLEAR , $ event ) ; }
deletes contents of basket.
deletes contents of basket .