PHP Class WellCommerce\Bundle\LayoutBundle\EventListener\LayoutBoxSubscriber

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

Public Methods

Method 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

Protected Methods

Method Description
getBoxSettingsFromRequest ( Request $request )

Method Details

getBoxSettingsFromRequest() protected method

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

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onLayoutBoxFormInit() public method

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

onLayoutBoxPreUpdate() public method

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