On Mon, Jun 9, 2008 at 2:46 PM, Алексей Михеев <[EMAIL PROTECTED]> wrote:
> On Mon, 09 Jun 2008 14:21:38 +0200
> Michael Baierl <[EMAIL PROTECTED]> 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!

Exactly, write an abstract, or an interface, implement/extend. Done.
Clean api. :-)

Thanks.

Till
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to