PHP 클래스 Sonata\ProductBundle\Controller\ProductController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: sonata-project/ecommerce

공개 메소드들

메소드 설명
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

메소드 상세

getPriceStockForQuantityAction() 공개 메소드

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

renderFinalReviewBasketElementAction() 공개 메소드

public renderFinalReviewBasketElementAction ( Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
$basketElement Sonata\Component\Basket\BasketElementInterface
$basket Sonata\Component\Basket\BasketInterface
리턴 Symfony\Component\HttpFoundation\Response

renderFormBasketElementAction() 공개 메소드

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
리턴 Symfony\Component\HttpFoundation\Response

variationToProductAction() 공개 메소드

public variationToProductAction ( $productId, $slug ) : Response
$productId
$slug
리턴 Symfony\Component\HttpFoundation\Response

viewAction() 공개 메소드

public viewAction ( $productId, $slug ) : Response
$productId
$slug
리턴 Symfony\Component\HttpFoundation\Response

viewVariationsAction() 공개 메소드

public viewVariationsAction ( $productId, $slug ) : Response
$productId
$slug
리턴 Symfony\Component\HttpFoundation\Response