Zend\Form\Annotation\AnnotationBuilder
Parses a class' properties for annotations in order to create a form and input filter definition.
Synopsis
class AnnotationBuilder
implements
EventManagerAwareInterface,FormFactoryAwareInterface
{
- // members
- protected AnnotationManager $annotationManager;
- protected EventManagerInterface $events;
- protected Factory $formFactory;
- protected $entity;
- protected array $defaultAnnotations;
- // methods
- public AnnotationBuilder setFormFactory()
- public AnnotationBuilder setAnnotationManager()
- public AnnotationBuilder setEventManager()
- public Factory getFormFactory()
- public AnnotationManager getAnnotationManager()
- public EventManagerInterface getEventManager()
- public ArrayObject getFormSpecification()
- public Form createForm()
- public getEntity()
- protected void configureForm()
- protected void configureElement()
- protected string discoverName()
- protected true|false checkForExclude()
- protected static bool isSubclassOf()
Hierarchy
Members
protected
- $annotationManager — Zend\Code\Annotation\AnnotationManager
- $defaultAnnotations — array
- $entity —
- $events — Zend\EventManager\EventManagerInterface
- $formFactory — Zend\Form\Factory
Methods
protected
- checkForExclude() — Determine if an element is marked to exclude from the definitions
- configureElement() — Configure an element from annotations
- configureForm() — Configure the form specification from annotations
- discoverName() — Discover the name of the given form or element
- isSubclassOf() — Checks if the object has this class as one of its parents
public
- createForm() — Create a form from an object.
- getAnnotationManager() — Retrieve annotation manager
- getEntity() — Get the entity used to construct the form.
- getEventManager() — Get event manager
- getFormFactory() — Retrieve form factory
- getFormSpecification() — Creates and returns a form specification for use with a factory
- setAnnotationManager() — Set annotation manager to use when building form from annotations
- setEventManager() — Set event manager instance
- setFormFactory() — Set form factory to use when building form from annotations