Tags:
create new tag
, view all tags

Plugins should be objects

There should be a base class for plugins, which other plugins then inherit from.

Benefits:

  • A plugin would only override the methods it needed to.
  • The current ugliness of cloning EmptyPlugin and hacking out 90% of it would be gone
  • Plugins could inherit from other plugins, adding new functionality
  • Fewer globals

-- Contributors: MeredithLesly

Discussion

Several people agree with you. See PluginOOApi for a way to implement this in a "backward compatible" way. The patch is against Cairo, and some of the changes made in Dakar allows for a more elegant and cleaner implementation.

-- RafaelAlvarez - 24 Mar 2006

 
Topic revision: r3 - 2006-03-24 - MeredithLesly
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.