Hi Byron!
> Yeah, Ordering. I suppose you have thought of an
init-style system? Like
> assigning a numerical value to each plugin in the
system, so a pri10 would always
> load befora pri12 etc...? Or would that be too much
overhead to maintain through
> event hooks having to check that ordering when calling
a plugin?
Actually, that's not so easy, because the order of plugins
is often dependant on
which plugins are used and what the user prefers. In some
cases it does make
sense to put one plugin AFTER the other depending on what
the user wants to
achieve. Using a init-style priority system wouldn't proove
flexible enough.
An example: The Wiki plugin formats HTML code into HTML
entities. Some people
might now want to use another markup plugin that transforms
"bla" into
"<strong>bla</strong>". Now one sort
of people would like in the final output to
see the rendered, strong 'bla', while others specifically
use the wiki markup
plugin to show the un-rendered
'<strong>bla</strong>' instead.
It might also be strange if people can adjust the order of
plugins, but they
'magically' reorder themselves?
> What are the challenges you are considering in a
controlled plugin
> loading environment? (or is this something which merely
is waiting for some kind
> of documentation on the plugin management page to state
the obvious issue of one
> event hook altering another events output in a chain)
Yeah, it might simply be missing in the documenation. But in
the german book I'm
writing right now (which hopefully gets translated to
english soon), I will be
putting my thumb on this issue.
Regards,
Garvin
--
++ Garvin Hicking | Web-Entwickler [PHP] | www.garv.in |
ICQ 21392242
++ Developer of | www.phpMyAdmin.net | www.s9y.org
++ Make me happy | http://wishes.garv.in
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
php-blog-devs mailing list
php-blog-devs lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/php-blog-
devs
|