[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2020 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE |
File Size: | 57 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
EventAwareInterface:: (2 methods):
getDispatcher()
triggerEvent()
Interface: EventAwareInterface - X-Ref
Interface defining application that can trigger Joomla 3.x style eventsgetDispatcher() X-Ref |
Get the event dispatcher. return: DispatcherInterface |
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 |