summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-04-25 00:01:52 +0200
committerchris <chris@jalakai.co.uk>2006-04-25 00:01:52 +0200
commit24bb549beb18a9d800b50cd5f4c305a15806fd0d (patch)
treee812352e3704b61b26d98209aa9776f7c9331d20 /doku.php
parent8a2d2176a45800e273168a511ca44f2b04b594a1 (diff)
downloadrpg-24bb549beb18a9d800b50cd5f4c305a15806fd0d.tar.gz
rpg-24bb549beb18a9d800b50cd5f4c305a15806fd0d.tar.bz2
event system revision
This is a major revision of DokuWiki's event system. There are changes to class names, function names, function parameters and their order and event names. For action plugin writers the following changes are important: - <event_name> is no longer signalled, only <event_name>_BEFORE and <event_name>_AFTER. - note the case change for _BEFORE and _AFTER - calling stopPropagation while processing a _BEFORE signal no longer prevents an _AFTER signal. The events _continue value is reset before the _AFTER signal is made. - events have a new readonly property, canPreventDefault. This lets the event handling hook know whether or not the event honours preventDefault calls. - parameters have changed for the register_hook method, parameters are now $event_name, $advise (can be 'BEFORE' or 'AFTER') $object $method $param (this parameter is now optional) - parameter order has changed for the hook event handler callback functions &$event $param (can now be left off) Event names have changed, they are now structured <dokuwiki name>_<event data name>_<action_name or state if no action> DOKUWIKI_START darcs-hash:20060424220152-9b6ab-00e366288f7ec8a85b85dc83694a5f43a07aa082.gz
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/doku.php b/doku.php
index 64c59d74c..04154df6f 100644
--- a/doku.php
+++ b/doku.php
@@ -62,9 +62,7 @@
//prepare breadcrumbs (initialize a static var)
breadcrumbs();
- $evt = new event('DOKUWIKI_START',$tmp=array());
- $evt->advise();
- unset($evt);
+ trigger_event('DOKUWIKI_STARTED',$tmp=array());
//close session
session_write_close();
@@ -72,8 +70,7 @@
//do the work
act_dispatch($ACT);
- $evt = new event('DOKUWIKI_END', $tmp=array());
- $evt->advise();
+ trigger_event('DOKUWIKI_DONE', $tmp=array());
// xdebug_dump_function_profile(1);
?>