Zend\Form\Annotation\FormAnnotationsListener
Default listeners for form annotations
Defines and attaches a set of default listeners for form annotations
(which are defined on object properties). These include:
- Attributes
- Flags
- Hydrator
- Object
- InputFilter
- Type
- ValidationGroup
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.
Synopsis
class FormAnnotationsListener
extends AbstractAnnotationsListener
{
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public void attach()
- public void handleAttributesAnnotation()
- public void handleFlagsAnnotation()
- public void handleHydratorAnnotation()
- public void handleInputFilterAnnotation()
- public void handleObjectAnnotation()
- public void handleOptionsAnnotation()
- public void handleTypeAnnotation()
- public void handleValidationGroupAnnotation()
- // Inherited methods from AbstractAnnotationsListener
- public false|string handleNameAnnotation()
- public string discoverFallbackName()
- // Inherited methods from AbstractListenerAggregate
- public void detach()
Hierarchy
Members
protected
- $listeners — array
Methods
public
- attach() — Attach listeners
- handleAttributesAnnotation() — Handle the Attributes annotation
- handleFlagsAnnotation() — Handle the Flags annotation
- handleHydratorAnnotation() — Handle the Hydrator annotation
- handleInputFilterAnnotation() — Handle the InputFilter annotation
- handleObjectAnnotation() — Handle the Object annotation
- handleOptionsAnnotation() — Handle the Options annotation
- handleTypeAnnotation() — Handle the Type annotation
- handleValidationGroupAnnotation() — Handle the ValidationGroup annotation
Inherited from Zend\Form\Annotation\AbstractAnnotationsListener
public
- discoverFallbackName() — Discover the fallback name via reflection
- handleNameAnnotation() — Attempt to discover a name set via annotation
Inherited from Zend\EventManager\AbstractListenerAggregate
public
- detach() — {@inheritDoc}