createForm()
getAnnotationManager()
getAnnotationParser()
getEntity()
getEventManager()
getFormFactory()
getFormSpecification()
preserveDefinedOrder()
setAnnotationManager()
setEventManager()
setFormFactory()
setPreserveDefinedOrder()
checkForExclude()
configureElement()
configureForm()
discoverName()
isSubclassOf()
$annotationManager
$annotationParser
$defaultAnnotations
$entity
$events
$formFactory
$preserveDefinedOrder
Parses the properties of a class for annotations in order to create a form and input filter definition.
getAnnotationManager() : \Zend\Code\Annotation\AnnotationManager
If none is currently set, creates one with default annotations.
getAnnotationParser() : \Zend\Code\Annotation\Parser\DoctrineAnnotationParser
getEntity() : object
object
getEventManager() : \Zend\EventManager\EventManagerInterface
getFormSpecification(string | object $entity) : \ArrayObject
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.
stringobject
Either an instance or a valid class name for an entity
\Zend\Form\Exception\InvalidArgumentException |
if $entity is not an object or class name |
---|
preserveDefinedOrder() : bool
bool
setAnnotationManager(\Zend\Code\Annotation\AnnotationManager $annotationManager) : \Zend\Form\Annotation\AnnotationBuilder
setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\Form\Annotation\AnnotationBuilder
setFormFactory(\Zend\Form\Factory $formFactory) : \Zend\Form\Annotation\AnnotationBuilder
setPreserveDefinedOrder(bool $preserveDefinedOrder) : \Zend\Form\Annotation\$this
bool
\Zend\Form\Annotation\$this
checkForExclude(\Zend\Code\Annotation\AnnotationCollection $annotations) : true | false
configureElement(\Zend\Code\Annotation\AnnotationCollection $annotations, \Zend\Code\Reflection\PropertyReflection $reflection, \ArrayObject $formSpec, \ArrayObject $filterSpec) : void
triggers | checkForExclude |
---|---|
triggers | discoverName |
triggers | configureElement |
\Zend\Code\Annotation\AnnotationCollection
\Zend\Code\Reflection\PropertyReflection
\ArrayObject
\ArrayObject
configureForm(\Zend\Code\Annotation\AnnotationCollection $annotations, \Zend\Code\Reflection\ClassReflection $reflection, \ArrayObject $formSpec, \ArrayObject $filterSpec) : void
triggers | discoverName |
---|---|
triggers | configureForm |
\Zend\Code\Annotation\AnnotationCollection
\Zend\Code\Reflection\ClassReflection
\ArrayObject
\ArrayObject
discoverName(\Zend\Code\Annotation\AnnotationCollection $annotations, \Reflector $reflection) : string
\Zend\Code\Annotation\AnnotationCollection
\Reflector
string
isSubclassOf(string $className, string $type) : bool
see | \Zend\Form\Annotation\https://bugs.php.net/bug.php?id=53727 |
---|---|
see | \Zend\Form\Annotation\https://github.com/zendframework/zf2/pull/1807 |
deprecated | since zf 2.3 requires PHP >= 5.3.23 |
string
string
bool
$defaultAnnotations : array
$entity : object
$preserveDefinedOrder : bool