PHP Класс Sonata\ProductBundle\Controller\ProductController

Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
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