Zend Framework  3.0
Public Member Functions | List of all members
FormAnnotationsListener Class Reference

Default listeners for form annotations. More...

Public Member Functions

 attach (EventManagerInterface $events, $priority=1)
 Attach listeners.
 
 handleAttributesAnnotation ($e)
 Handle the Attributes annotation.
 
 handleFlagsAnnotation ($e)
 Handle the Flags annotation.
 
 handleHydratorAnnotation ($e)
 Handle the Hydrator annotation.
 
 handleInputFilterAnnotation ($e)
 Handle the InputFilter annotation.
 
 handleObjectAnnotation ($e)
 Handle the Object and Instance annotations.
 
 handleOptionsAnnotation ($e)
 Handle the Options annotation.
 
 handleTypeAnnotation ($e)
 Handle the Type annotation.
 
 handleValidationGroupAnnotation ($e)
 Handle the ValidationGroup 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.
Parameters
EventManagerInterface$events
Returns
void

 

Additional Inherited Members

- Protected Attributes inherited from AbstractListenerAggregate
 $listeners = []
 

Detailed Description

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.

Member Function Documentation

attach ( EventManagerInterface  $events,
  $priority = 1 
)

Attach listeners.

Parameters
EventManagerInterface$events
Returns
void

Implements ListenerAggregateInterface.

handleAttributesAnnotation (   $e)

Handle the Attributes annotation.

Sets the attributes key of the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleFlagsAnnotation (   $e)

Handle the Flags annotation.

Sets the flags key of the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleHydratorAnnotation (   $e)

Handle the Hydrator annotation.

Sets the hydrator class to use in the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleInputFilterAnnotation (   $e)

Handle the InputFilter annotation.

Sets the input filter class to use in the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleObjectAnnotation (   $e)

Handle the Object and Instance annotations.

Sets the object to bind to the form or fieldset

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleOptionsAnnotation (   $e)

Handle the Options annotation.

Sets the options key of the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleTypeAnnotation (   $e)

Handle the Type annotation.

Sets the form class to use in the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void
handleValidationGroupAnnotation (   $e)

Handle the ValidationGroup annotation.

Sets the validation group to use in the form specification.

Parameters
\Zend\EventManager\EventInterface$e
Returns
void