PHP Class Elcodi\Admin\ProductBundle\Controller\Component\VariantComponentController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
ファイルを表示 Open project: elcodi/bamboo

Public Methods

Method Description
editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Product\Entity\Interfaces\ProductInterface $product, Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant ) : array New element component action
listComponentAction ( Doctrine\ORM\Tools\Pagination\Paginator $paginator, integer $productId ) : array Component for entity list.

Method Details

editComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Product\Entity\Interfaces\ProductInterface $product, Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant ) : array
$formView Symfony\Component\Form\FormView Form view
$product Elcodi\Component\Product\Entity\Interfaces\ProductInterface Product
$variant Elcodi\Component\Product\Entity\Interfaces\VariantInterface Variant
return array Result

listComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( Doctrine\ORM\Tools\Pagination\Paginator $paginator, integer $productId ) : array
$paginator Doctrine\ORM\Tools\Pagination\Paginator Paginator instance
$productId integer Product id
return array Result