references:joomla.framework:application:japplication-registereventTable of Contents
registerEvent
Registers a handler to a particular event group. This method is used to attach an event handler object or function to a particular event. Syntaxvoid registerEvent ( $event, $handler )
ExamplesThe ‘vote’ plugin calls this method as follows (this code is not called from within a function so the $mainframe object is in scope: Example $mainframe->registerEvent( 'onBeforeDisplayContent', 'pluginVote' ); |


