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.

Параметр

Возвращаемое значение

object Event_Dispatcher Event_Dispatcher instance

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ