diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-16 22:29:37 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-16 22:29:37 +0100 |
commit | c95706497c2894f9c0f6571478f8550d3418fe72 (patch) | |
tree | 45d80b390dbea2450507fa786df8e1c7493e9daf /inc/events.php | |
parent | 88e6a4f27638db93e9ca8ca28ea1710343c34701 (diff) | |
download | rpg-c95706497c2894f9c0f6571478f8550d3418fe72.tar.gz rpg-c95706497c2894f9c0f6571478f8550d3418fe72.tar.bz2 |
two more event hooks
darcs-hash:20061116212937-7ad00-2ac647a9040f75650bdbe1047e76370f9c900dff.gz
Diffstat (limited to 'inc/events.php')
-rw-r--r-- | inc/events.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/events.php b/inc/events.php index ddb0eb277..5caba5cff 100644 --- a/inc/events.php +++ b/inc/events.php @@ -62,7 +62,7 @@ class Doku_Event { function advise_after() { global $EVENT_HANDLER; - $this->_continue = true; + $this->_continue = true; $EVENT_HANDLER->process_event($this,'AFTER'); } @@ -71,7 +71,7 @@ class Doku_Event { * * - advise all registered (<event>_BEFORE) handlers that this event is about to take place * - carry out the default action using $this->data based on $enablePrevent and - * $this->_default, all of which may have been modified by the event handlers. + * $this->_default, all of which may have been modified by the event handlers. * - advise all registered (<event>_AFTER) handlers that the event has taken place * * @return $event->results @@ -91,9 +91,9 @@ class Doku_Event { $this->result = $action($this->data); } } - + $this->advise_after(); - + return $this->result; } @@ -103,7 +103,7 @@ class Doku_Event { * stop any further processing of the event by event handlers * this function does not prevent the default action taking place */ - function stopPropagation() { $this->_continue = false; } + function stopPropagation() { $this->_continue = false; } /** * preventDefault @@ -145,11 +145,11 @@ class Doku_Event_Handler { * register a hook for an event * * @PARAM $event (string) name used by the event, (incl '_before' or '_after' for triggers) - * @PARAM $obj (obj) object in whose scope method is to be executed, + * @PARAM $obj (obj) object in whose scope method is to be executed, * if NULL, method is assumed to be a globally available function * @PARAM $method (function) event handler function * @PARAM $param (mixed) data passed to the event handler - */ + */ function register_hook($event, $advise, &$obj, $method, $param=NULL) { $this->_hooks[$event.'_'.$advise][] = array(&$obj, $method, $param); } |