RE: [PHP] default and another constructor

2004-05-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Rudy Metzger [mailto:[EMAIL PROTECTED] > Sent: 12 May 2004 14:27 > > On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > > > > function forum($naam=NULL,$tijd=NULL,$tekst=NULL) > > > > and test the incoming variables with isset() before > > attempting to

Re: [PHP] default and another constructor

2004-05-12 Thread Michal Migurski
> No, you cannot do this kind of method overloading, not like this anyway. > If you are using PHP5 you can kind of emulate overloading by using the > __call() function... some googling will find examples. > > You can at least make the below work by removing the first forum() > instance and using >

Re: [PHP] default and another constructor

2004-05-12 Thread Mark Constable
On Wed, 12 May 2004 11:27 pm, Rudy Metzger wrote: > On Wed, 2004-05-12 at 15:18, Mark Constable wrote: > > You can at least make the below work by removing the first > > forum() instance and using > > > > function forum($naam=NULL,$tijd=NULL,$tekst=NULL) > > > > and test the incoming variables wit

Re: [PHP] default and another constructor

2004-05-12 Thread Lieve Vissenaeken
Thanks Mark for helping me out... The way you describe it with "function forum($naam=NULL,$tijd=NULL,$tekst=NULL)" is a good trick !! Kind Regards. "Mark Constable" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote: > > Please ,c

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] default and another constructor

2004-05-12 Thread Mark Constable
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=new forum()". I always get a > warning on this: "Warning: M

[PHP] default and another constructor

2004-05-12 Thread Lieve Vissenaeken
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=new forum()". I always get a warning on this: "Warning: Missing argument 1 for forum() in /lvdata/www/tennis/php/sql.inc"