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*
>
>     [email protected] <mailto:[email protected]>
>
>
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> [email protected]
> 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: [email protected]

Dolibarr developer: [email protected]
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------

_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à