EventManager/GlobalEventManager.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_EventManager
\Zend_EventManager_GlobalEventManager
Package: Zend\EventManagerEvent manager: notification system
Use the EventManager when you want to create a per-instance notification
system for your objects.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods



attach(string $event, callback $callback, int $priority = 1) : \Zend_Stdlib_CallbackHandlerstaticAttach a listener to an event
Parameters| Name | Type | Description |
|---|
| $event | string | |
|---|
| $callback | callback | |
|---|
| $priority | int | |
|---|
Returns 


clearListeners(string $event) : voidstaticClear all listeners for a given event
Parameters| Name | Type | Description |
|---|
| $event | string | |
|---|



getListeners(string $event) : \Zend_Stdlib_PriorityQueue | arraystaticRetrieve all listeners for a given event
Parameters| Name | Type | Description |
|---|
| $event | string | |
|---|
Returns 


triggerUntil(string $event, string | object $context, array | object $argv, callback $callback) : \Zend_EventManager_ResponseCollectionstaticTrigger listeenrs until return value of one causes a callback to evaluate
to true.
Parameters| Name | Type | Description |
|---|
| $event | string | |
|---|
| $context | string | object | |
|---|
| $argv | array | object | |
|---|
| $callback | callback | |
|---|
Returns