PHP Class Sonata\ProductBundle\Controller\BaseProductController

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

Méthodes publiques

Méthode Description
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
renderPropertiesAction ( Sonata\Component\Product\ProductInterface $product ) : Response Renders product properties.
variationToProductAction ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Product\ProductInterface $variation = null ) : Symfony\Component\HttpFoundation\JsonResponse | RedirectResponse
viewAction ( $product ) : Response
viewVariationsAction ( $product ) : Response

Méthodes protégées

Méthode Description
updateSeoMeta ( Sonata\Component\Product\ProductInterface $product, string | null $currency = null )

Method Details

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

renderPropertiesAction() public méthode

Renders product properties.
public renderPropertiesAction ( Sonata\Component\Product\ProductInterface $product ) : Response
$product Sonata\Component\Product\ProductInterface
Résultat Symfony\Component\HttpFoundation\Response

updateSeoMeta() protected méthode

protected updateSeoMeta ( Sonata\Component\Product\ProductInterface $product, string | null $currency = null )
$product Sonata\Component\Product\ProductInterface
$currency string | null

variationToProductAction() public méthode

public variationToProductAction ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Product\ProductInterface $variation = null ) : Symfony\Component\HttpFoundation\JsonResponse | RedirectResponse
$product Sonata\Component\Product\ProductInterface
$variation Sonata\Component\Product\ProductInterface
Résultat Symfony\Component\HttpFoundation\JsonResponse | Symfony\Component\HttpFoundation\RedirectResponse

viewAction() public méthode

public viewAction ( $product ) : Response
$product
Résultat Symfony\Component\HttpFoundation\Response

viewVariationsAction() public méthode

public viewVariationsAction ( $product ) : Response
$product
Résultat Symfony\Component\HttpFoundation\Response