aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-31 23:50:31 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:57 +0200
commit01369dd7f826a27e9970e0c0acb126cb2349c87c (patch)
treefd89062375db552edff9f4a8684d9be03a0bff4d
parent39869d46b1c4f3dcc178cdb7cd05e8f28fcc1f47 (diff)
downloadforums-01369dd7f826a27e9970e0c0acb126cb2349c87c.tar
forums-01369dd7f826a27e9970e0c0acb126cb2349c87c.tar.gz
forums-01369dd7f826a27e9970e0c0acb126cb2349c87c.tar.bz2
forums-01369dd7f826a27e9970e0c0acb126cb2349c87c.tar.xz
forums-01369dd7f826a27e9970e0c0acb126cb2349c87c.zip
[feature/php-events] Add docs to core.common
@todo: Add event to user::setup() after branch is updated to develop, so timezone handling is there PHPBB3-9550
-rw-r--r--phpBB/common.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 9cf2617b07..e18c27abd1 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -144,4 +144,17 @@ if (!$config['use_system_cron'])
$cron = new phpbb_cron_manager(new phpbb_cron_task_provider($phpbb_extension_manager), $cache->get_driver());
}
+/**
+* Main event which is triggered on every page
+*
+* You can use this event to load function files and initiate objects
+*
+* NOTE: At this point the global session ($user) and permissions ($auth)
+* do NOT exist yet. If you need to use the user objec
+* (f.e. to use language files) or need to check permissions, please use
+* the core.user_setup event instead!
+*
+* @event core.common
+* @since 3.1-A1
+*/
$phpbb_dispatcher->dispatch('core.common');