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 listeners
Parameters: | EventManagerInterface – |
---|---|
Return type: | void |
Handle the AllowEmpty annotation
Sets the allow_empty flag on the input specification array.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Attributes annotation
Sets the attributes array of the element specification.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Allow creating fieldsets from composed entity properties
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the ErrorMessage annotation
Sets the error_message of the input specification.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Determine if the element has been marked to exclude from the definition
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | bool |
Handle the Filter annotation
Adds a filter to the filter chain specification for the input.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Flags annotation
Sets the element flags in the specification (used typically for setting priority).
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Hydrator annotation
Sets the hydrator class to use in the fieldset specification.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Input annotation
Sets the filter specification for the current element to the specified input class name.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Object annotation
Sets the object to bind to the form or fieldset
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Options annotation
Sets the element options in the specification.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |
Handle the Required annotation
Sets the required flag on the input based on the annotation value.
Parameters: | ZendEventManagerEventInterface – |
---|---|
Return type: | void |