On Mon, 09 Jun 2008 14:21:38 +0200 Michael Baierl mail@mbaierl.com wrote:
till wrote:
Maybe we can work on a required set of "methods" and calls for all plugins to get rid off those [file, function]_exists() things. We
Still you need them as RCD should not fail in case something is missing. And it does not make sense to force the plugin developer to have to create a long template with all callbacks. You will always end up with such _exists() methods if you upgrade your Plugin API - you don't want the plugins to fail...
Why would you ever need those nasty *_exists() and callbacks, why not create a base Plugin class and inherit actual plugins from it and let them provide all additional info (up to dependency tracking) by themselves? It's PHP5!
Sure, it will make writing plugins a bit more difficult, but will simplify plugins initialization and validation code in core module.
-- Regards, Aleksei Miheev ST-Hosting mailto:amiheev@st-host.ru xmpp:aleksei@jabber.miheev.info +7 (8313) 244-000 _______________________________________________ List info: http://lists.roundcube.net/dev/