From c95706497c2894f9c0f6571478f8550d3418fe72 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 16 Nov 2006 22:29:37 +0100 Subject: two more event hooks darcs-hash:20061116212937-7ad00-2ac647a9040f75650bdbe1047e76370f9c900dff.gz --- inc/events.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'inc/events.php') 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 (_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 (_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); } -- cgit v1.2.3