Zend Framework  2.4
Namespaces | Classes | Functions | Variables
Zend\EventManager Namespace Reference

Zend Framework (http://framework.zend.com/) More...

Namespaces

namespace  Exception
 Zend Framework (http://framework.zend.com/)
 
namespace  Filter
 Zend Framework (http://framework.zend.com/)
 

Classes

class  AbstractListenerAggregate
 Abstract aggregate listener. More...
 
class  Event
 Representation of an event. More...
 
interface  EventInterface
 Representation of an event. More...
 
class  EventManager
 Event manager: notification system. More...
 
interface  EventManagerAwareInterface
 Interface to automate setter injection for an EventManager instance. More...
 
interface  EventManagerInterface
 Interface for messengers. More...
 
interface  EventsCapableInterface
 Interface providing events that can be attached, detached and triggered. More...
 
class  FilterChain
 FilterChain: intercepting filter manager. More...
 
class  GlobalEventManager
 Event manager: notification system. More...
 
interface  ListenerAggregateInterface
 Interface for self-registering event listeners. More...
 
class  ResponseCollection
 Collection of signal handler return values. More...
 
interface  SharedEventAggregateAwareInterface
 Interface for allowing attachment of shared aggregate listeners. More...
 
class  SharedEventManager
 Shared/contextual EventManager. More...
 
interface  SharedEventManagerAwareInterface
 Interface to automate setter injection for a SharedEventManagerInterface instance. More...
 
interface  SharedEventManagerInterface
 Interface for shared event listener collections. More...
 
interface  SharedListenerAggregateInterface
 Interface for self-registering event listeners. More...
 
class  StaticEventManager
 Static version of EventManager. More...
 

Functions

 setEventManager (EventManagerInterface $events)
 Set the event manager instance used by this context.
 
 getEventManager ()
 Retrieve the event manager.
 
 detach (EventManagerInterface $events)
 
 

Variables

trait EventManagerAwareTrait
 A trait for objects that provide events.
 
trait ListenerAggregateTrait
 Provides logic to easily create aggregate listeners, without worrying about manually detaching events.
 
trait ProvidesEvents
 

Detailed Description

Zend Framework (http://framework.zend.com/)

for the canonical source repository Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License

Function Documentation

Zend\EventManager\detach ( EventManagerInterface  $events)

Zend\EventManager\getEventManager ( )

Retrieve the event manager.

Lazy-loads an EventManager instance if none registered.

Returns
EventManagerInterface
Zend\EventManager\setEventManager ( EventManagerInterface  $events)

Set the event manager instance used by this context.

For convenience, this method will also set the class name / LSB name as identifiers, in addition to any string or array of strings set to the $this->eventIdentifier property.

Parameters
EventManagerInterface$events
Returns
mixed

Variable Documentation

trait EventManagerAwareTrait
Initial value:
{
protected $events

A trait for objects that provide events.

If you use this trait in an object, you will probably want to also implement EventManagerAwareInterface, which will make it so the default initializer in a ZF2 MVC application will automatically inject an instance of the EventManager into your object when it is pulled from the ServiceManager.

See Also
Zend
trait ListenerAggregateTrait
Initial value:
{
protected $listeners = array()

Provides logic to easily create aggregate listeners, without worrying about manually detaching events.

trait ProvidesEvents
Initial value:
Deprecated:
Please use EventManagerAwareTrait instead.

This trait exists solely for backwards compatibility in the 2.x branch and will likely be removed in 3.x.