Compatibility with integrated software and extensions

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
GameMusic
Forum Newbie
Posts: 24
Joined: Fri Oct 28, 2005 8:33 pm

Compatibility with integrated software and extensions

Post by GameMusic »

I'm writing a message board and I want it to be able to integrate with 3rd party programs (to design in an integration-friendly way, not necessarily integrating with any specific software) and support installing of extensions (as opposed to hacks). For now I can practice by integrating it with my own scripts and writing some features as extensions.

How can I do this or where can I learn how to do it? The methods I am considering so far are implementing most of it as base classes (so that extensions can be written as derived classes), writing server classes that can be used by client software, and making a general template class that could work with board templates and a site template.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

There are a lot of available applications that work that way. You should look into them and the methods they use.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Have a look at Drupal, Mambo, Joomla, CMSMS, etc, etc...

They all implement extensions through modules. The idea is pretty basic and the flexibility is quite impressive.

Using derived classes as a way of implementing an end-user extension...would be nasty and result in hackish code.
Post Reply