PHP Класс DMS\Bundle\FilterBundle\Form\EventListener\DelegatingFilterListener

This subscriber listens to form events to automatically run filtering on the attached entity, like Validation is done.
Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$filterService DMS\Bundle\FilterBundle\Service\Filter

Открытые методы

Метод Описание
__construct ( Filter $filterService )
getRootFormCascadeOption ( Symfony\Component\Form\FormInterface $form ) : boolean Navigates to the Root form to define if cascading should be done.
getSubscribedEvents ( )
onPostSubmit ( Symfony\Component\Form\FormEvent $event ) Listens to the Post Bind event and triggers filtering if adequate.

Описание методов

__construct() публичный Метод

public __construct ( Filter $filterService )
$filterService DMS\Bundle\FilterBundle\Service\Filter

getRootFormCascadeOption() публичный Метод

Navigates to the Root form to define if cascading should be done.
public getRootFormCascadeOption ( Symfony\Component\Form\FormInterface $form ) : boolean
$form Symfony\Component\Form\FormInterface
Результат boolean

getSubscribedEvents() публичный статический Метод

public static getSubscribedEvents ( )

onPostSubmit() публичный Метод

POST_SUBMIT is fired for every level of the form, from fields to embedded forms. this method will filter any level that returns an entity, or will only filter the root entity if 'cascade_filter' is set to false.
public onPostSubmit ( Symfony\Component\Form\FormEvent $event )
$event Symfony\Component\Form\FormEvent

Описание свойств

$filterService защищенное свойство

protected Filter,DMS\Bundle\FilterBundle\Service $filterService
Результат DMS\Bundle\FilterBundle\Service\Filter