99. Class

99.1. 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.

99.1.1. Methods

99.1.1.1. attach

attach()

Attach listeners

Parameters:EventManagerInterface
Return type:void

99.1.1.2. handleAttributesAnnotation

handleAttributesAnnotation()

Handle the Attributes annotation

Sets the attributes key of the form specification.

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.3. handleFlagsAnnotation

handleFlagsAnnotation()

Handle the Flags annotation

Sets the flags key of the form specification.

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.4. handleHydratorAnnotation

handleHydratorAnnotation()

Handle the Hydrator annotation

Sets the hydrator class to use in the form specification.

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.5. handleInputFilterAnnotation

handleInputFilterAnnotation()

Handle the InputFilter annotation

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

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.6. handleObjectAnnotation

handleObjectAnnotation()

Handle the Object annotation

Sets the object to bind to the form or fieldset

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.7. handleOptionsAnnotation

handleOptionsAnnotation()

Handle the Options annotation

Sets the options key of the form specification.

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.8. handleTypeAnnotation

handleTypeAnnotation()

Handle the Type annotation

Sets the form class to use in the form specification.

Parameters:ZendEventManagerEventInterface
Return type:void

99.1.1.9. handleValidationGroupAnnotation

handleValidationGroupAnnotation()

Handle the ValidationGroup annotation

Sets the validation group to use in the form specification.

Parameters:ZendEventManagerEventInterface
Return type:void