Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 17221 программист и 1834 робота. Сейчас ищут 1635 программистов ...
Event_Dispatcher::getInstance
Вернуться к: Event_Dispatcher
Event_Dispatcher::getInstance
Event_Dispatcher::getInstance() – Create a new Event_Dispatcher object
Synopsis
require_once 'Event/Dispatcher.php';
object Event_Dispatcher Event_Dispatcher::getInstance ( string $name = '__default' )
Create a new Event_Dispatcher object.
As Event_Dispatcher uses the singleton pattern, you must not use the new operator to create a new instance of Event_Dispatcher, but use getInstance() instead.
If you need more than one instance of Event_Dispatcher, pass different names to the method.
Parameter
-
string $name = '__default'
Return value
object Event_Dispatcher Event_Dispatcher instance
Note
This function should be called statically.
Вернуться к: Event_Dispatcher