Hi Pascal.

--On 06.09.2002 03:15 -0700 Pascal Van Hecke wrote:

>> Be aware, that you cannot overload constructors in
>> PHP. If you write
>> two CArticle Constructors in the CArticle class,
>> only the latter is
>> used. I'm not sure how this is in functions though,
>> it is quite
>> possible, that you can overload functions.
> 
> There' s this (experimental extenstion, it says):
> http://php.belnet.be/manual/en/ref.overload.php, but

I don't really like this method, looks kind of ugly to me.


> normally you can't overload neither constructors nor
> general methods as far as I know:
> http://www.php.net/manual/en/functions.php.
> 
> So for this constructor, you would prefer something
> like Alan's solution: 
 
I agree. I will update it on Nathan when I come around to do it.


Live long and prosper!
Torben Nehmer

--
Torben Nehmer, Munich, Germany
http://www.nathan-syntronics.de, mailto:[EMAIL PROTECTED]
PGP Public Key: https://www.link-m.de/pgp/t.nehmer.asc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to