Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
dispatcher.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\event;
15
16 use Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher;
17
18 /**
19 * Extension of the Symfony2 EventDispatcher
20 *
21 * It provides an additional `trigger_event` method, which
22 * gives some syntactic sugar for dispatching events. Instead
23 * of creating the event object, the method will do that for
24 * you.
25 *
26 * Example:
27 *
28 * $vars = array('page_title');
29 * extract($phpbb_dispatcher->trigger_event('core.index', compact($vars)));
30 *
31 */
32 class dispatcher extends ContainerAwareEventDispatcher implements dispatcher_interface
33 {
34 /**
35 * {@inheritdoc}
36 */
37 public function trigger_event($eventName, $data = array())
38 {
39 $event = new \phpbb\event\data($data);
40 $this->dispatch($eventName, $event);
41 return $event->get_data_filtered(array_keys($data));
42 }
43 }
44