Florian Lagg wrote:
Instead I would recommend a well-known location (index.php, config.php) in the plugins directory which calls those hook-registration points itself. This gives full control over to the plugin with minimal impact on configuration.
You're right - we do not need an extra configuration.
Plugins are placed in RC_home/plugins/PluginName/PluginName.php and contains "class PluginName extends PluginAbstract" Each time any event is raised we initialize every plugin class and try to call the corresponding function in the plugin. This way we do not need any configuration.
Did I miss some conversation here?
Please also regard the recent conversation about plugin architecture: http://lists.roundcube.net/mail-archive/dev/2008-06/0000023.html http://lists.roundcube.net/mail-archive/dev/2008-06/0000038.html
Also initializing all plugins on every event is bad for performance. I'd suggest to have a plugin-controller which is created once and which loads all plugins with their hooks. Every time a plugin-hook is triggered, the controller will pass the event to all plugins that registered this hook.
Forian, do you plan to implement the whole plugin-architecture of RoundCube or are you just talking about your Funabol integration?
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/