Zend\Form\Annotation\ElementAnnotationsListener
Default listeners for element annotations
Defines and attaches a set of default listeners for element annotations
(which are defined on object properties). These include:
- AllowEmpty
- Attributes
- ErrorMessage
- Filter
- Flags
- Input
- Hydrator
- Object
- Required
- Type
- Validator
See the individual annotation classes for more details. The handlers registered
work with the annotation values, as well as the element and input specification
passed in the event object.
Synopsis
class ElementAnnotationsListener
extends AbstractAnnotationsListener
{
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public void attach()
- public void handleAllowEmptyAnnotation()
- public void handleAttributesAnnotation()
- public void handleComposedObjectAnnotation()
- public void handleErrorMessageAnnotation()
- public bool handleExcludeAnnotation()
- public void handleFilterAnnotation()
- public void handleFlagsAnnotation()
- public void handleHydratorAnnotation()
- public void handleInputAnnotation()
- public void handleObjectAnnotation()
- public void handleOptionsAnnotation()
- public void handleRequiredAnnotation()
- public void handleTypeAnnotation()
- public void handleValidatorAnnotation()
- // 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() — {@inheritDoc}
- handleAllowEmptyAnnotation() — Handle the AllowEmpty annotation
- handleAttributesAnnotation() — Handle the Attributes annotation
- handleComposedObjectAnnotation() — Allow creating fieldsets from composed entity properties
- handleErrorMessageAnnotation() — Handle the ErrorMessage annotation
- handleExcludeAnnotation() — Determine if the element has been marked to exclude from the definition
- handleFilterAnnotation() — Handle the Filter annotation
- handleFlagsAnnotation() — Handle the Flags annotation
- handleHydratorAnnotation() — Handle the Hydrator annotation
- handleInputAnnotation() — Handle the Input annotation
- handleObjectAnnotation() — Handle the Object annotation
- handleOptionsAnnotation() — Handle the Options annotation
- handleRequiredAnnotation() — Handle the Required annotation
- handleTypeAnnotation() — Handle the Type annotation
- handleValidatorAnnotation() — Handle the Validator 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}