Florian Lagg wrote: > 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. > > Is this your intention?
I would not initialize the plugin on each hook, but instead initialize all plugins once. Also if you are using an abstract class you don't need to configure hooks, the class is just not overriding functions which perform valid defaults (=nothing). Other option are static functions, but this is less flexible. Mike -- Michael Baierl <http://mbaierl.com/blog/> < Mike's Blog - - - - - - - - - - - - - - - - - - - - - _______________________________________________ List info: http://lists.roundcube.net/dev/
