Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17194 программиста и 1834 робота. Сейчас ищут 1662 программиста ...
Event_Dispatcher::setNotificationClass
Вернуться к: Event_Dispatcher
Event_Dispatcher::setNotificationClass
Event_Dispatcher::setNotificationClass() – Set the class that is used as notification.
Synopsis
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.
Parameter
-
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.
Note
This function can be called statically.
Вернуться к: Event_Dispatcher