Singleton

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
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Singleton

Post by dude81 »

Hi,
I'm using a singelton class based software in PHP in which the classes have been declared already at once and are globally accessible. Now I would like to create a new class which is no way related to the software. What I wrote is a small plugin which software supports. Now I would like to implement the class and use it. Will it effect the design o f the software. The software I'm using is wordpress.


Thanks in Advance
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I'm not sure what you're asking. You can write your own class even if they've already got their own classes. Classes are all separate little packages anyway. You'll only cause problems if you're trying to interfere with wordpress' own code.
Post Reply