The event dispatcher must know what listeners are interested in an event. In this section we will discuss how listeners are attached to the event dispatcher.
When we create a new plugin, if we are using functions we must inform the application of each function and event. We do this using the application's
registerEvent() method. The method accepts two parameters, the name of the event and the name of the handler. This acts as a pass-through method for the global event dispatcher
Technically, the name of the handler can be the name of a class. We rarely need to use the method in that context because when we load a plugin that defines a class, Joomla! automatically registers the class and events for ...