I am still very excited about this prospect but I haven't gotten any
feedback on the problem I was having with passing references through the
hook method.
http://mail.wikipedia.org/pipermail/wikitech-l/2004-December/026533.html
Once possible way to make it easier to make sure that the refs get
through (using php4 at least, I imagine that php5 will take care of some
of these issues), is to bundle up all the parametes within dictionaries,
thereby fixing the signature of all hook methods and avoiding the
get_func_args. This would also make it easier to add more parameters to
the hook methods in the future without breaking old hooks. Besides,
when you start passing around longer lists of parameters, named
parameters are a bit easier to manage, since the order doesn't matter.
Beyond this suggestion, a friend of mine threw out the idea of
implementing this functionality using the interceptor pattern
something like this:
http://www.jroller.com/comments/deep?anchor=aop_fun_with_javascript
but that is probably more trouble than it is worth for now.
It looks like this hook infrastructure made it into 1.4, so there may
not be a chance for the parameter packaging modification, but I think it
might be worth the effort.
Any comments?
Jonah
Heli Retzek wrote:
that is really a great and very useful plan !!
So, I'd like to set up a system of hooks and
filters for MediaWiki. We
HeliR