PHP Class Elcodi\Store\ProductBundle\Controller\PurchasableController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode Description
relatedAction ( $id ) : array Purchasable related view
viewAction ( integer $id, string $slug ) : array Purchasable view

Private Methods

Méthode Description
resolveTemplateName ( Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface $purchasable ) : string Resolve view given the purchasable instance
resolveVariableName ( Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface $purchasable ) : string Resolve the variable name given the purchasable instance

Method Details

relatedAction() public méthode

Purchasable related view
public relatedAction ( $id ) : array
Résultat array

viewAction() public méthode

Purchasable view
public viewAction ( integer $id, string $slug ) : array
$id integer Purchasable id
$slug string Product slug
Résultat array