[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2005 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE |
File Size: | 112 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
registerEvent($event, callable $handler) X-Ref |
Registers a handler to a particular event group. param: string $event The event name. param: callable $handler The handler, a function or an instance of an event object. return: $this |
triggerEvent($eventName, $args = []) X-Ref |
Calls all handlers associated with an event group. This is a legacy method, implementing old-style (Joomla! 3.x) plugin calls. It's best to go directly through the Dispatcher and handle the returned EventInterface object instead of going through this method. This method is deprecated and will be removed in Joomla! 5.x. This method will only return the 'result' argument of the event param: string $eventName The event name. param: array|Event $args An array of arguments or an Event object (optional). return: array An array of results from each function call. Note this will be an empty array if no dispatcher is set. |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |