PHP Class WellCommerce\Bundle\OrderBundle\Controller\Front\OrderCartController

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\Controller\Front\AbstractFrontController
Mostra file Open project: wellcommerce/wellcommerce

Public Methods

Method Description
addAction ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, integer $quantity = 1 ) : Response
deleteAction ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct ) : Response
editAction ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct, integer $quantity ) : Response
indexAction ( ) : Response

Protected Methods

Method Description
getManager ( ) : OrderProductManager

Method Details

addAction() public method

public addAction ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, integer $quantity = 1 ) : Response
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface
$variant WellCommerce\Bundle\ProductBundle\Entity\VariantInterface
$quantity integer
return Symfony\Component\HttpFoundation\Response

deleteAction() public method

public deleteAction ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct ) : Response
$orderProduct WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface
return Symfony\Component\HttpFoundation\Response

editAction() public method

public editAction ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct, integer $quantity ) : Response
$orderProduct WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface
$quantity integer
return Symfony\Component\HttpFoundation\Response

getManager() protected method

protected getManager ( ) : OrderProductManager
return WellCommerce\Bundle\OrderBundle\Manager\OrderProductManager

indexAction() public method

public indexAction ( ) : Response
return Symfony\Component\HttpFoundation\Response