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
This commit is contained in:
chris 2006-04-15 17:24:44 +02:00
parent 39a89382d5
commit a4b5ae12aa
1 changed files with 7 additions and 0 deletions

View File

@ -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);
?>