Event_Dispatcher::addObserver (Previous) (Next) Event_Dispatcher::setNotificationClass

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

Event_Dispatcher::removeObserver()

Event_Dispatcher::removeObserver() -- Remove an observer.

Opis

Remove an observer from dispatcher.

To remove an observer, specify the same parameters as used in the call to addObserver().

Parametr

  • mixed $callback

    Callback to notity, may either be a string containing the name of a global function or an array containing class or object and the name of the method to call.

  • string $nName = EVENT_DISPATCHER_GLOBAL

    Acts as a filter: notify the observer only if the notification name matches the name passed in this parameter. Use EVENT_DISPATCHER_GLOBAL if the observer should be notified regardles of the notification name.

  • string $class = ''

    Acts as a filter: notify the observer only if the sender of the notification matches the class passed in this parameter.

Zwracana wartość

bool TRUE if the observer could be removed, FALSE otherwise

Uwagi

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

Event_Dispatcher::addObserver (Previous) (Next) Event_Dispatcher::setNotificationClass

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.