[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/phpbb/event/ -> dispatcher_interface.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 50 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

dispatcher_interface:: (3 methods):
  trigger_event()
  disable()
  enable()


Interface: dispatcher_interface  - X-Ref

Extension of the Symfony2 EventDispatcher

It provides an additional `trigger_event` method, which
gives some syntactic sugar for dispatching events. Instead
of creating the event object, the method will do that for
you.

Example:

$vars = array('page_title');
extract($phpbb_dispatcher->trigger_event('core.index', compact($vars)));

trigger_event($eventName, $data = array()   X-Ref
Construct and dispatch an event

param: string $eventName    The event name
param: array $data        An array containing the variables sending with the event
return: mixed

disable()   X-Ref
Disable the event dispatcher.


enable()   X-Ref
Enable the event dispatcher.




Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1