attach()
detach()
discoverFallbackName()
handleAttributesAnnotation()
handleFlagsAnnotation()
handleHydratorAnnotation()
handleInputFilterAnnotation()
handleNameAnnotation()
handleObjectAnnotation()
handleOptionsAnnotation()
handleTypeAnnotation()
handleValidationGroupAnnotation()
$listeners
Default listeners for form annotations
Defines and attaches a set of default listeners for form annotations (which are defined on object properties). These include:
See the individual annotation classes for more details. The handlers registered work with the annotation values, as well as the form specification passed in the event object.
attach(\Zend\EventManager\EventManagerInterface $events) : void
Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.
detach(\Zend\EventManager\EventManagerInterface $events) : void
inherited_from | \Zend\EventManager\AbstractListenerAggregate::detach() |
---|---|
inherited_from | \Zend\Form\Annotation\AbstractAnnotationsListener::detach() |
discoverFallbackName(\Zend\EventManager\EventInterface $e) : string
inherited_from | \Zend\Form\Annotation\AbstractAnnotationsListener::discoverFallbackName() |
---|
string
handleAttributesAnnotation(\Zend\EventManager\EventInterface $e) : void
handleHydratorAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the hydrator class to use in the form specification.
handleInputFilterAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the input filter class to use in the form specification.
handleNameAnnotation(\Zend\EventManager\EventInterface $e) : false | string
inherited_from | \Zend\Form\Annotation\AbstractAnnotationsListener::handleNameAnnotation() |
---|
false
string
handleObjectAnnotation(\Zend\EventManager\EventInterface $e) : void
handleTypeAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the form class to use in the form specification.
handleValidationGroupAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the validation group to use in the form specification.
$listeners : \Zend\Stdlib\CallbackHandler[]
inherited_from | \Zend\EventManager\AbstractListenerAggregate::$$listeners |
---|---|
inherited_from | \Zend\Form\Annotation\AbstractAnnotationsListener::$$listeners |