If I understand A.L.E.C.'s Ideas right:
- Each plugin has an init.php which registers to events:
/myplugin/init.php: init_plugin('init', 'functionname'); init_plugin('showmail', 'functionname');
Yes, but I'd prefer an object-oriented approach: http://lists.roundcube.net/mail-archive/dev/2008-06/0000038.html
correct.
- the Controller does a loop over the plugin/subdirectories to get these
registries
Right. This procedure could even be cached for performance reasons.
as log as we have only some plugins caching shouldn't be a topic.
I think it does not make sence to implement a full featured plugin
monster
if we do not need it right now. But we should be able to extend it to a monster if we need to do so
later
Exactly!
Isn't open source great ;-)
OK, I think we got a good idea of how it should be implemented. I hope I could code a small prototype this weekend, but I do not guarantee. I will ask the list to test it afterwards.
Thanks for your comments.
<br/> <br/> ---------------------------------------------------------------<br/> Webhosting komplett mit Plone-CMS, Spam- und Virenfreies E-Mail<br/> Hotspot-Systeme (Internet für Ihre Gäste)<br/> Netzwerkbetreuung, Fernwartung, uvm.<br/> Web: www.lagg.at - Mail: info@lagg.at<br/> Florian Lagg, Juch 7, 6631 Lermoos, Austria<br/> ---------------------------------------------------------------<br/>
List info: http://lists.roundcube.net/dev/