Page 1 of 1

Singleton

Posted: Sun Mar 04, 2007 11:58 pm
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

Posted: Mon Mar 05, 2007 12:25 am
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.