Matthew1980 - 8:50 pm on Aug 8, 2010 (gmt 0)
Hi there Sandro87,
I'll confess, I'm still having difficulty with some of the procedures & ways of interacting within classes at the moment.
But one thing I can state now is this; Don't write the class just for PHP5 only, if you do your hard work isn't backwards compatible with previous versions of PHP(4). I have just found this out, and from now on, I write the same class for both versions, perhaps this is over kill, but for now this is proving a very useful learning tool for me - so that for my next foray into classes I can write 1 file with elements of both 4 & 5 compatibility in there so that I can invoke functions & procedures depending on what version of php the script is running on.
Hope you understand where I am coming from, I just say this because I am having your exact same issue at the moment - so to break the deadlock, I'm doing something else ;)
And @enigma1, thanks for that insight there, quite useful to see that - a couple of nice pointers there :)
I shall have to read up on __call [php.net ] as I haven't yet used this; and not really sure how to either ;-p
All good fun though..