[dokuwiki] Re: event order

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 29 Apr 2009 21:51:02 +0100


On 29 Apr 2009, at 21:29, James Lin wrote:

Hi folks,

does anyone have a list or idea that shows the sequence of the events?
eg. event A -> event B -> event C(before) -> event D -> event C(after)

the event list in http://www.dokuwiki.org/devel:events_list only shows name order at the moment.

Cheers

James

Apart from DOKUWIKI_STARTED and DOKUWIKI_DONE order isn't really guaranteed, that's not the way events work.

However, in general ACTION_* will happen before TPL_* and if the parser is required, PARSER_* events will happen between the two.

If you want to see what happens where, stick a bit of code in the event_handler, process method to log every event it processes.

- Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: