Zend\EventManager\StaticEventManager
Static version of EventManager
Synopsis
class StaticEventManager
extends SharedEventManager
{
- // members
- protected StaticEventManager $instance;
- // Inherited members from SharedEventManager
- protected array $identifiers;
- // methods
- protected void __construct()
- private void __clone()
- public static StaticEventManager getInstance()
- public static void setInstance()
- public static bool hasInstance()
- public static void resetInstance()
- // Inherited methods from SharedEventManager
- public CallbackHandler|array attach()
- public mixed attachAggregate()
- public bool detach()
- public mixed detachAggregate()
- public array getEvents()
- public false|PriorityQueue getListeners()
- public bool clearListeners()
Hierarchy
Members
protected
- $identifiers
—
array
Identifiers with event connections - $instance — Zend\EventManager\StaticEventManager
Methods
private
- __clone() — Singleton
public
- getInstance() — Retrieve instance
- hasInstance() — Is a singleton instance defined?
- resetInstance() — Reset the singleton instance
- setInstance() — Set the singleton to a specific SharedEventManagerInterface instance
Inherited from Zend\EventManager\SharedEventManager
public
- attach() — Attach a listener to an event
- attachAggregate() — Attach a listener aggregate
- clearListeners() — Clear all listeners for a given identifier, optionally for a specific event
- detach() — Detach a listener from an event offered by a given resource
- detachAggregate() — Detach a listener aggregate
- getEvents() — Retrieve all registered events for a given resource
- getListeners() — Retrieve all listeners for a given identifier and event