previousExamples (Previous) (Next) Event_Dispatcher::getNamenext

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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' )

Description

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.

previousExamples (Previous) (Next) Event_Dispatcher::getNamenext

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.