Base annotations listener.

Provides an implementation of detach() that should work with any listener. Also provides listeners for the "Name" annotation -- handleNameAnnotation() will listen for the "Name" annotation, while discoverFallbackName() listens on the "discoverName" event and will use the class or property name, as discovered via reflection, if no other annotation has provided the name already.

category Zend
package Zend_Form
subpackage Annotation

 Methods

Attach one or more listeners

attach(\Zend\EventManager\EventManagerInterface $events) 
Inherited

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

inherited_from \Zend\EventManager\ListenerAggregateInterface::attach()

Parameters

Detach listeners

detach(\Zend\EventManager\EventManagerInterface $events) : void

Discover the fallback name via reflection

discoverFallbackName(\Zend\EventManager\EventInterface $e) : string

Parameters

Returns

string

Attempt to discover a name set via annotation

handleNameAnnotation(\Zend\EventManager\EventInterface $e) : false | string

Parameters

Returns

falsestring

 Properties

 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]