See Release Notes
Long Term Support Release
New event manager class.
Copyright: | 2013 Petr Skoda {@link http://skodak.org} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 359 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
manager:: (11 methods):
dispatch()
database_transaction_commited()
database_transaction_rolledback()
process_buffers()
get_observing_classes()
init_all_observers()
add_observers()
order_all_observers()
get_all_observers()
phpunit_replace_observers()
phpunit_reset()
dispatch(\core\event\base $event) X-Ref |
Trigger new event. param: \core\event\base $event |
database_transaction_commited() X-Ref |
Notification from DML layer. |
database_transaction_rolledback() X-Ref |
Notification from DML layer. |
process_buffers() X-Ref |
No description |
get_observing_classes(\core\event\base $event) X-Ref |
Returns list of classes related to this event. param: \core\event\base $event return: array |
init_all_observers() X-Ref |
Initialise the list of observers. |
add_observers(array $observers, $file, $plugintype = null, $plugin = null) X-Ref |
Add observers. param: array $observers param: string $file param: string $plugintype Plugin type of the observer. param: string $plugin Plugin of the observer. |
order_all_observers() X-Ref |
Reorder observers to allow quick lookup of observer for each event. |
get_all_observers() X-Ref |
Returns all observers in the system. This is only for use for reporting on the list of observers in the system. return: array An array of stdClass with all core observer details. |
phpunit_replace_observers(array $observers) X-Ref |
Replace all standard observers. param: array $observers return: array |
phpunit_reset() X-Ref |
Reset everything if necessary. |