PHP 클래스 WellCommerce\Bundle\LayoutBundle\EventListener\LayoutBoxSubscriber

저자: Adam Piotrowski ([email protected])
상속: extends WellCommerce\Bundle\CoreBundle\EventListener\AbstractEventSubscriber
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
getBoxSettingsFromRequest ( Request $request )

메소드 상세

getBoxSettingsFromRequest() 보호된 메소드

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

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onLayoutBoxFormInit() 공개 메소드

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

onLayoutBoxPreUpdate() 공개 메소드

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