Event_Dispatcher::post (Previous) (Next) Event_Dispatcher::removeNestedDispatcher

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Event_Dispatcher::addNestedDispatcher()

Event_Dispatcher::addNestedDispatcher() -- Add a nested dispatcher.

Opis

Adds a nested dispatcher to the dispatcher.

Nested dispatchers allow you to create event bubbling like it is implemented in Javascript. After an event has been posted to all observers of the dispatcher, it will be broadcasted to all nested dispatchers.

If you have one dispatcher that dispatches events of a component in your framework and one dispatcher that dispatches global events that are triggered by the framework itself it could make sense that you nest these dispatchers, so that events posted by the component dispatcher will also be broadcasted to the global dispatcher.

Parametr

  • object Event_Dispatcher &$dispatcher

    Dispatcher that should be added as a nested dispatcher to the current dispatcher.

Zwracana wartość

void

Uwagi

Ta funkcja nie może być wywołana statycznie.

Event_Dispatcher::post (Previous) (Next) Event_Dispatcher::removeNestedDispatcher

Download Documentation Last updated: Mon, 02 Jul 2007
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.