summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-04-14 22:11:01 +0200
committerchris <chris@jalakai.co.uk>2006-04-14 22:11:01 +0200
commite0ad864eb89c0c6918830e0086c9198826eb8421 (patch)
tree7428f61d043d74b21b671c6df697956d2c2e2ef8 /inc/parser
parentc2e830f24685d1a3ac39ac13afe78b17940f19fc (diff)
downloadrpg-e0ad864eb89c0c6918830e0086c9198826eb8421.tar.gz
rpg-e0ad864eb89c0c6918830e0086c9198826eb8421.tar.bz2
event HANDLER_FINALISED
This event is advisory only. Event data is the handler object. There is no default action to prevent. The event is signalled by the handler during its finalisation of the instruction list. At the time of signalling the instruction list is complete except for three instrucitons, meta, document_start & document_end. Syntax plugins could register for this event to finalise processing of their data knowing it is complete, e.g. an alternate footnote plugin. darcs-hash:20060414201101-9b6ab-eba2d096ed3b82e1ec6b24ee90caaa9849f16093.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/handler.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php
index 7a8fc9bc2..a5a79c2ae 100644
--- a/inc/parser/handler.php
+++ b/inc/parser/handler.php
@@ -39,6 +39,9 @@ class Doku_Handler {
$B = & new Doku_Handler_Block();
$this->calls = $B->process($this->calls);
}
+
+ $evt = new event('HANDLER_FINALISED',$this);
+ $evt->advise();
array_unshift($this->calls,array('document_start',array(),0));
array_unshift($this->calls,array('meta',array($this->meta),0));