Parses a class’ properties for annotations in order to create a form and input filter definition.
Set form factory to use when building form from annotations
Parameters: | Factory – |
---|---|
Return type: | AnnotationBuilder |
Set annotation manager to use when building form from annotations
Parameters: | AnnotationManager – |
---|---|
Return type: | AnnotationBuilder |
Set event manager instance
Parameters: | EventManagerInterface – |
---|---|
Return type: | AnnotationBuilder |
Retrieve form factory
Lazy-loads the default form factory if none is currently set.
Return type: | Factory |
---|
Retrieve annotation manager
If none is currently set, creates one with default annotations.
Return type: | AnnotationManager |
---|
Creates and returns a form specification for use with a factory
Parses the object provided, and processes annotations for the class and all properties. Information from annotations is then used to create specifications for a form, its elements, and its input filter.
Parameters: | string|object – Either an instance or a valid class name for an entity |
---|---|
Throws ExceptionInvalidArgumentException: | |
if $entity is not an object or class name | |
Return type: | ArrayObject |
Create a form from an object.
Parameters: | string|object – |
---|---|
Return type: | ZendFormForm |
Configure the form specification from annotations
Parameters: |
|
---|---|
Return type: | void @triggers discoverName |
@triggers configureForm
Configure an element from annotations
Parameters: |
|
---|---|
Return type: | void @triggers checkForExclude |
@triggers discoverName @triggers configureElement
Discover the name of the given form or element
Parameters: |
|
---|---|
Return type: | string |