I had a debian system a while back running apache 13 and php 4 For some reason it didnt require a php at the

getSingleton();?

NemesisD, you should really look at php.net/language.oop5.basic
and _read_ it.

and read it.

you have to realize the practicality of doing that though, i'm still learning OOP and i'm up for making my way through that, but that's asking me to spend my entire evening reading a section of the PHP site before I can fix this problem

NemesisD, um would you rather do it completely wrong?

NemesisD, you can't assign default values of class properties with dynamic expressions. It's explained there.

hello

You should read at least the basic info. And you need to declare $registry outside of member methods with 'var $registry;', and then reference it with '$this-registry' elsewhere.

a singleton - class

assuming PHP4, as declaring visibility is prefered in PHP5.

Indeed
Even though you are using __construct

ok so construct does count as a member method?

Yes

ok

throughout the class

NemesisD, don't cut corners

Without using $this-, though, you are just creating a local variable within each method

I have a class, and I'm setting up some permissions as constants. I'm using a bitwise setup to check permissions. However, I can't seem to set one constant as a shifted version of the previous ie: const MATCH_DELIVERY = self

 Best Blog Web Hosting | Best BLOG Hosting

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: