attach()
detach()
discoverFallbackName()
handleAllowEmptyAnnotation()
handleAttributesAnnotation()
handleComposedObjectAnnotation()
handleContinueIfEmptyAnnotation()
handleErrorMessageAnnotation()
handleExcludeAnnotation()
handleFilterAnnotation()
handleFlagsAnnotation()
handleHydratorAnnotation()
handleInputAnnotation()
handleNameAnnotation()
handleObjectAnnotation()
handleOptionsAnnotation()
handleRequiredAnnotation()
handleTypeAnnotation()
handleValidatorAnnotation()
mergeOptions()
$listeners
Default listeners for element annotations
Defines and attaches a set of default listeners for element 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 element and input 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
handleAllowEmptyAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the allow_empty flag on the input specification array.
handleAttributesAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the attributes array of the element specification.
handleComposedObjectAnnotation(\Zend\EventManager\EventInterface $e) : void
handleContinueIfEmptyAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the continue_if_empty flag on the input specification array.
handleErrorMessageAnnotation(\Zend\EventManager\EventInterface $e) : void
handleExcludeAnnotation(\Zend\EventManager\EventInterface $e) : bool
handleFilterAnnotation(\Zend\EventManager\EventInterface $e) : void
Adds a filter to the filter chain specification for the input.
handleFlagsAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the element flags in the specification (used typically for setting priority).
handleHydratorAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the hydrator class to use in the fieldset specification.
handleInputAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the filter specification for the current element to the specified input class name.
handleNameAnnotation(\Zend\EventManager\EventInterface $e) : false | string
inherited_from | \Zend\Form\Annotation\AbstractAnnotationsListener::handleNameAnnotation() |
---|
false
string
handleObjectAnnotation(\Zend\EventManager\EventInterface $e) : void
handleRequiredAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the required flag on the input based on the annotation value.
handleTypeAnnotation(\Zend\EventManager\EventInterface $e) : void
Sets the element class type to use in the element specification.
handleValidatorAnnotation(\Zend\EventManager\EventInterface $e) : void
Adds a validator to the validator chain of the input specification.
mergeOptions(array | \ArrayAccess $elementSpec, \Zend\Form\Annotation\ComposedObject | \Zend\Form\Annotation\Options $annotation) : array
array\ArrayAccess
array
$listeners : \Zend\Stdlib\CallbackHandler[]
inherited_from | \Zend\EventManager\AbstractListenerAggregate::$$listeners |
---|---|
inherited_from | \Zend\Form\Annotation\AbstractAnnotationsListener::$$listeners |