PHP Class Sonata\ProductBundle\Block\VariationsFormBlockService

Author: Hugo Briand ([email protected])
Inheritance: extends Sonata\BlockBundle\Block\BaseBlockService
Afficher le fichier Open project: sonata-project/ecommerce

Protected Properties

Свойство Type Description
$formFactory Symfony\Component\Form\FormFactoryInterface
$pool Sonata\Component\Product\Pool

Méthodes publiques

Méthode Description
__construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Pool $productPool, Symfony\Component\Form\FormFactoryInterface $formFactory )
buildEditForm ( Sonata\AdminBundle\Form\FormMapper $form, Sonata\BlockBundle\Model\BlockInterface $block )
configureSettings ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
execute ( Sonata\BlockBundle\Block\BlockContextInterface $blockContext, Response $response = null )
getName ( )
validateBlock ( Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block )

Method Details

__construct() public méthode

public __construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Pool $productPool, Symfony\Component\Form\FormFactoryInterface $formFactory )
$name string
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$productPool Sonata\Component\Product\Pool
$formFactory Symfony\Component\Form\FormFactoryInterface

buildEditForm() public méthode

public buildEditForm ( Sonata\AdminBundle\Form\FormMapper $form, Sonata\BlockBundle\Model\BlockInterface $block )
$form Sonata\AdminBundle\Form\FormMapper
$block Sonata\BlockBundle\Model\BlockInterface

configureSettings() public méthode

public configureSettings ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

execute() public méthode

public execute ( Sonata\BlockBundle\Block\BlockContextInterface $blockContext, Response $response = null )
$blockContext Sonata\BlockBundle\Block\BlockContextInterface
$response Symfony\Component\HttpFoundation\Response

getName() public méthode

public getName ( )

validateBlock() public méthode

public validateBlock ( Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block )
$errorElement Sonata\CoreBundle\Validator\ErrorElement
$block Sonata\BlockBundle\Model\BlockInterface

Property Details

$formFactory protected_oe property

protected FormFactoryInterface,Symfony\Component\Form $formFactory
Résultat Symfony\Component\Form\FormFactoryInterface

$pool protected_oe property

protected Pool,Sonata\Component\Product $pool
Résultat Sonata\Component\Product\Pool