[dokuwiki] events system patch
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 25 Apr 2006 00:09:51 +0100
Hi,
I have sent Andi a patch significantly revising the events system,
implementing the changes discussed in earlier list topics. The patch
notes include details on all of the changes applicable to plugin
writers. Interested dokuwiki developers will need to review
inc/events.php ;-)
Martin,
There are changes to event names, function parameters and parameter
order. These will mean you will need to make modifications to your code
after applying the patch.
Ben, Andi,
Its not quite as sleek as it was before. I've added a function
trigger_event so events can be added in just one line of code.
I'm still unhappy with the following - and would like yours or anyone
elses input.
a plugin can no longer register for "just" an event. It has to register
for a "BEFORE" or an "AFTER" advise. Thats not a huge problem, but I
think it would be more intuitive if you could register for "just" the
event and the system would automatically give you for the "BEFORE"
advise. That doesn't sound like a huge problem, but the way I have the
paramters for register_hook organised (event variables followed by
callback variables) only the callback's param can be made optional. Any
ideas how this could be achieved?
Cheers,
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: events system patch
- From: Martin Tschofen
Other related posts:
- » [dokuwiki] events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
Ben, Andi,
Cheers,
- [dokuwiki] Re: events system patch
- From: Martin Tschofen