equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_EventManager |
16 * @package Zend_EventManager |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 */ |
19 */ |
20 |
20 |
21 require_once 'Zend/Stdlib/CallbackHandler.php'; |
21 require_once 'Zend/Stdlib/CallbackHandler.php'; |
22 require_once 'Zend/Stdlib/PriorityQueue.php'; |
22 require_once 'Zend/Stdlib/PriorityQueue.php'; |
27 * Use the EventManager when you want to create a per-instance notification |
27 * Use the EventManager when you want to create a per-instance notification |
28 * system for your objects. |
28 * system for your objects. |
29 * |
29 * |
30 * @category Zend |
30 * @category Zend |
31 * @package Zend_EventManager |
31 * @package Zend_EventManager |
32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 */ |
34 */ |
35 class Zend_EventManager_GlobalEventManager |
35 class Zend_EventManager_GlobalEventManager |
36 { |
36 { |
37 /** |
37 /** |
50 self::$events = $events; |
50 self::$events = $events; |
51 } |
51 } |
52 |
52 |
53 /** |
53 /** |
54 * Get event collection on which this operates |
54 * Get event collection on which this operates |
55 * |
55 * |
56 * @return void |
56 * @return Zend_EventManager_EventCollection |
57 */ |
57 */ |
58 public static function getEventCollection() |
58 public static function getEventCollection() |
59 { |
59 { |
60 if (null === self::$events) { |
60 if (null === self::$events) { |
61 self::setEventCollection(new Zend_EventManager_EventManager()); |
61 self::setEventCollection(new Zend_EventManager_EventManager()); |