Added some phpdoc documentation to EventDispatcher class

This commit is contained in:
Dmitriy Simushev 2012-07-26 15:26:25 +00:00
parent f4e87f5303
commit c9ffa8291d

View File

@ -60,6 +60,8 @@ Class EventDispatcher {
/** /**
* Attaches listener function to event. * Attaches listener function to event.
* *
* All event listeners must receive one argument of array type by reference.
*
* @param string $event_name Event's name * @param string $event_name Event's name
* @param Plugin $plugin Plugin object, that handles the event * @param Plugin $plugin Plugin object, that handles the event
* @param string $listener Plugins method, that handles the event * @param string $listener Plugins method, that handles the event