Zend Framework
3.0
|
Default listeners for element annotations. More...
Public Member Functions | |||||||
attach (EventManagerInterface $events, $priority=1) | |||||||
Attach one or more listeners.Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.
| |||||||
handleAllowEmptyAnnotation ($e) | |||||||
Handle the AllowEmpty annotation. | |||||||
handleAttributesAnnotation ($e) | |||||||
Handle the Attributes annotation. | |||||||
handleComposedObjectAnnotation ($e) | |||||||
Allow creating fieldsets from composed entity properties. | |||||||
handleContinueIfEmptyAnnotation ($e) | |||||||
Handle the ContinueIfEmpty annotation. | |||||||
handleErrorMessageAnnotation ($e) | |||||||
Handle the ErrorMessage annotation. | |||||||
handleExcludeAnnotation ($e) | |||||||
Determine if the element has been marked to exclude from the definition. | |||||||
handleFilterAnnotation ($e) | |||||||
Handle the Filter annotation. | |||||||
handleFlagsAnnotation ($e) | |||||||
Handle the Flags annotation. | |||||||
handleHydratorAnnotation ($e) | |||||||
Handle the Hydrator annotation. | |||||||
handleInputAnnotation ($e) | |||||||
Handle the Input annotation. | |||||||
handleObjectAnnotation ($e) | |||||||
Handle the Object and Instance annotations. | |||||||
handleOptionsAnnotation ($e) | |||||||
Handle the Options annotation. | |||||||
handleRequiredAnnotation ($e) | |||||||
Handle the Required annotation. | |||||||
handleTypeAnnotation ($e) | |||||||
Handle the Type annotation. | |||||||
handleValidatorAnnotation ($e) | |||||||
Handle the Validator annotation. | |||||||
Public Member Functions inherited from AbstractAnnotationsListener | |||||||
handleNameAnnotation ($e) | |||||||
Attempt to discover a name set via annotation. | |||||||
discoverFallbackName ($e) | |||||||
Discover the fallback name via reflection. | |||||||
Public Member Functions inherited from AbstractListenerAggregate | |||||||
detach (EventManagerInterface $events) | |||||||
Detach all previously attached listeners.
| |||||||
Additional Inherited Members | |
Protected Attributes inherited from AbstractListenerAggregate | |
$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 | ( | EventManagerInterface | $events, |
$priority = 1 |
|||
) |
Attach one or more listeners.Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.
EventManagerInterface | $events | |
int | $priority |
Implements ListenerAggregateInterface.
handleAllowEmptyAnnotation | ( | $e | ) |
Handle the AllowEmpty annotation.
Sets the allow_empty flag on the input specification array.
\Zend\EventManager\EventInterface | $e |
handleAttributesAnnotation | ( | $e | ) |
Handle the Attributes annotation.
Sets the attributes array of the element specification.
\Zend\EventManager\EventInterface | $e |
handleComposedObjectAnnotation | ( | $e | ) |
Allow creating fieldsets from composed entity properties.
\Zend\EventManager\EventInterface | $e |
handleContinueIfEmptyAnnotation | ( | $e | ) |
Handle the ContinueIfEmpty annotation.
Sets the continue_if_empty flag on the input specification array.
\Zend\EventManager\EventInterface | $e |
handleErrorMessageAnnotation | ( | $e | ) |
Handle the ErrorMessage annotation.
Sets the error_message of the input specification.
\Zend\EventManager\EventInterface | $e |
handleExcludeAnnotation | ( | $e | ) |
Determine if the element has been marked to exclude from the definition.
\Zend\EventManager\EventInterface | $e |
handleFilterAnnotation | ( | $e | ) |
Handle the Filter annotation.
Adds a filter to the filter chain specification for the input.
\Zend\EventManager\EventInterface | $e |
handleFlagsAnnotation | ( | $e | ) |
Handle the Flags annotation.
Sets the element flags in the specification (used typically for setting priority).
\Zend\EventManager\EventInterface | $e |
handleHydratorAnnotation | ( | $e | ) |
Handle the Hydrator annotation.
Sets the hydrator class to use in the fieldset specification.
\Zend\EventManager\EventInterface | $e |
handleInputAnnotation | ( | $e | ) |
Handle the Input annotation.
Sets the filter specification for the current element to the specified input class name.
\Zend\EventManager\EventInterface | $e |
handleObjectAnnotation | ( | $e | ) |
handleOptionsAnnotation | ( | $e | ) |
Handle the Options annotation.
Sets the element options in the specification.
\Zend\EventManager\EventInterface | $e |
handleRequiredAnnotation | ( | $e | ) |
Handle the Required annotation.
Sets the required flag on the input based on the annotation value.
\Zend\EventManager\EventInterface | $e |
handleTypeAnnotation | ( | $e | ) |
Handle the Type annotation.
Sets the element class type to use in the element specification.
\Zend\EventManager\EventInterface | $e |
handleValidatorAnnotation | ( | $e | ) |
Handle the Validator annotation.
Adds a validator to the validator chain of the input specification.
\Zend\EventManager\EventInterface | $e |