Event_Dispatcher::setNotificationClass() – Set the class that is used as notification.


require_once 'Event/Dispatcher.php';

bool Event_Dispatcher::setNotificationClass ( string $class )


Set the name of the class that will be used as a notification object when post() is called.

You may call this method on an object to change it for a single dispatcher or statically, to set the default for all dispatchers that will be created.


  • string $class

    Name of the class that is used as a notification container when the post() method is called. Make sure the class is loaded before using it as notification class.

Return value

This method always returns true.


This function can be called statically.

Remove an observer. (Previous) Post a notification. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.