dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] __construct vs classname


From: Régis Houssin
Subject: Re: [Dolibarr-dev] __construct vs classname
Date: Mon, 30 Jul 2012 11:56:23 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:14.0) Gecko/20120713 Thunderbird/14.0

yes you can rename with __construct()
no problem for me


Le 30/07/12 11:49, Marcos García a écrit :
Hello,

Have you got a position about using function __construct() vs function classname? I saw it was introduced in PHP5, as <5.0 is no longer supported, I don't find any barrier to migrate to it.

I've searched for the differences between __construct() and function classname and I got to  http://stackoverflow.com/questions/217618/construct-vs-sameasclassname-for-constructor-in-php where a person says that the only advantage is that you don't have to rename the function every time you rename the class name or you create another class.

What do you think?

Regards,
Marcos García
address@hidden



_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Cordialement,
-- 
Régis Houssin
---------------------------------------------------------
Cap-Networks
Cidex 1130
34, route de Gigny
71240 MARNAY
FRANCE
VoIP: +33 1 83 62 40 03
GSM: +33 6 33 02 07 97
Web: http://www.cap-networks.com/
Email: address@hidden

Dolibarr developer: address@hidden
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]