PHP Class Sonata\ProductBundle\Controller\ProductController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Afficher le fichier Open project: sonata-project/ecommerce

Méthodes publiques

Méthode Description
getPriceStockForQuantityAction ( $productId ) : Symfony\Component\HttpFoundation\JsonResponse Returns price for $productId in given quantity and stock information as JSON.
renderFinalReviewBasketElementAction ( Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
renderFormBasketElementAction ( Symfony\Component\Form\FormView $formView, Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
variationToProductAction ( $productId, $slug ) : Response
viewAction ( $productId, $slug ) : Response
viewVariationsAction ( $productId, $slug ) : Response

Method Details

getPriceStockForQuantityAction() public méthode

Returns price for $productId in given quantity and stock information as JSON.
public getPriceStockForQuantityAction ( $productId ) : Symfony\Component\HttpFoundation\JsonResponse
$productId
Résultat Symfony\Component\HttpFoundation\JsonResponse

renderFinalReviewBasketElementAction() public méthode

public renderFinalReviewBasketElementAction ( Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
$basketElement Sonata\Component\Basket\BasketElementInterface
$basket Sonata\Component\Basket\BasketInterface
Résultat Symfony\Component\HttpFoundation\Response

renderFormBasketElementAction() public méthode

public renderFormBasketElementAction ( Symfony\Component\Form\FormView $formView, Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
$formView Symfony\Component\Form\FormView
$basketElement Sonata\Component\Basket\BasketElementInterface
$basket Sonata\Component\Basket\BasketInterface
Résultat Symfony\Component\HttpFoundation\Response

variationToProductAction() public méthode

public variationToProductAction ( $productId, $slug ) : Response
$productId
$slug
Résultat Symfony\Component\HttpFoundation\Response

viewAction() public méthode

public viewAction ( $productId, $slug ) : Response
$productId
$slug
Résultat Symfony\Component\HttpFoundation\Response

viewVariationsAction() public méthode

public viewVariationsAction ( $productId, $slug ) : Response
$productId
$slug
Résultat Symfony\Component\HttpFoundation\Response