PHP Class WellCommerce\Bundle\LayoutBundle\EventListener\LayoutBoxSubscriber

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\EventListener\AbstractEventSubscriber
Afficher le fichier Open project: wellcommerce/wellcommerce

Méthodes publiques

Méthode Description
getSubscribedEvents ( )
onLayoutBoxFormInit ( FormEvent $event ) Adds configurator fields to main layout box edit form.
onLayoutBoxPreUpdate ( WellCommerce\Bundle\DoctrineBundle\Event\EntityEvent $event ) Sets resource settings fetched from fieldset corresponding to selected box type

Méthodes protégées

Méthode Description
getBoxSettingsFromRequest ( Request $request )

Method Details

getBoxSettingsFromRequest() protected méthode

protected getBoxSettingsFromRequest ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

onLayoutBoxFormInit() public méthode

Loops through all configurators, renders the fieldset and sets default data
public onLayoutBoxFormInit ( FormEvent $event )
$event WellCommerce\Component\Form\Event\FormEvent

onLayoutBoxPreUpdate() public méthode

Sets resource settings fetched from fieldset corresponding to selected box type
public onLayoutBoxPreUpdate ( WellCommerce\Bundle\DoctrineBundle\Event\EntityEvent $event )
$event WellCommerce\Bundle\DoctrineBundle\Event\EntityEvent