PHP Класс Elcodi\Store\ProductBundle\Controller\PurchasableController

Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Показать файл Открыть проект

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

Метод Описание
relatedAction ( $id ) : array Purchasable related view
viewAction ( integer $id, string $slug ) : array Purchasable view

Приватные методы

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

Описание методов

relatedAction() публичный Метод

Purchasable related view
public relatedAction ( $id ) : array
Результат array

viewAction() публичный Метод

Purchasable view
public viewAction ( integer $id, string $slug ) : array
$id integer Purchasable id
$slug string Product slug
Результат array