Hello, On 10/31/2002 02:21 AM, Charles Wiltgen wrote:
Use a base class to implement the common plugin API (generalization). The develop sub-classes that override the functions and variables of that API to provide the different plug-ins. Use a factory function to decide which plugin sub-class to create based on a argument.Does anyone know of articles that discuss best practices for supporting plug-ins? I searched for a while, but there doesn't seem to be anything out there.
You may want to take a look at Metabase that is a database abstraction package that supports many databases using this design pattern.
http://www.phpclasses.org/metabase
You may also want to look into MetaL which is a meta-programming compiler that has many modules that implement different compiler functionality as defined by bindings configuration in XML:
http://www.meta-language.net/
--
Regards,
Manuel Lemos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php