[PHP] Re: PHP5 and static attributes

2004-05-13 Thread Rudy Metzger
On Thu, 2004-05-13 at 11:41, Gregory wrote: > Rudy Metzger wrote: > > >Although you are correct with your explanations to better use methods > >and private/protected attributes, this is not the core of the problem. > >The problem is that self:: always refers to the curre

Re: [PHP] default and another constructor

2004-05-12 Thread Rudy Metzger
On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote: > > Please ,could anybody help me ? I'm not so familiar with PHP. > > > > I've the following problem with my code when I try to make an object from > > the class "forum" with the code "$test

Re: [PHP] default and another constructor

2004-05-12 Thread Rudy Metzger
Strange that you get this error. Normally you should get a "Fatal error: Cannot redeclare forum::forum() " PHP does not support 'function overloading', at least not in a way java is doing it. One of the drawbacks of a free typed langauge (in contrary to a strictly typed one). cheerio /rudy O

Re: [PHP] Methods for instatiating an object

2004-05-12 Thread Rudy Metzger
On Wed, 2004-05-12 at 12:41, Jordi Canals wrote: > Hi all, > > It is not a big issue, but that is something that I never had clear. > I've been looking at the manual and found no answer, so I will ask with > an example: > > When instantiating an object, I could do it in two different ways: > >

[PHP] PHP5 and static attributes

2004-05-12 Thread Rudy Metzger
Dear all, I have a problem with 'referencing' static attributes. I have the following class tree. // --- CLASS A - class A { protected static $myInstance; } // --- CLASS B -- class B extends class A { } // --- CLASS C ---