From a4b5ae12aa2904f2bb8db8e78649acb4c382ba8a Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 15 Apr 2006 17:24:44 +0200 Subject: add events, DOKUWIKI_START & DOKUWIKI_END event DOKUWIKI_START This event is advisory only. There is no event data There is no default action The event is signalled after Dokuwiki has completed its initialisation phase and before it closes the session. Most Dokuwiki globals will have been created and populated, the global $_SESSION var will still be in existence. Note: Even after $_SESSION has been closed a plugin can reopen the session to access session data - as long as headers have not already been sent. For more information refer to lib/plugins/config/admin.php. event DOKUWIKI_END This event is advisory only. There is no event data There is no default action The event is signalled after all processing has been completed as the last thing doku.php does before exiting. It is possible that under certain circumstances dokuwiki will exit without returning to doku.php and this event may not then be signalled. darcs-hash:20060415152444-9b6ab-1e41d0265f2a6660ad497dd387c7930251dc4030.gz --- doku.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doku.php b/doku.php index 242d2e6c2..64c59d74c 100644 --- a/doku.php +++ b/doku.php @@ -62,11 +62,18 @@ //prepare breadcrumbs (initialize a static var) breadcrumbs(); + $evt = new event('DOKUWIKI_START',$tmp=array()); + $evt->advise(); + unset($evt); + //close session session_write_close(); //do the work act_dispatch($ACT); + $evt = new event('DOKUWIKI_END', $tmp=array()); + $evt->advise(); + // xdebug_dump_function_profile(1); ?> -- cgit v1.2.3