[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/phpbb/event/ -> dispatcher.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: 83 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

dispatcher:: (4 methods):
  trigger_event()
  dispatch()
  disable()
  enable()


Class: dispatcher  - X-Ref

Extension of the Symfony 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 = [])   X-Ref
{@inheritdoc}


dispatch($eventName, Event $event = null)   X-Ref
{@inheritdoc}


disable()   X-Ref
{@inheritdoc}


enable()   X-Ref
{@inheritdoc}




Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1