dolibarr-dev
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Dolibarr-dev] __construct vs classname
From
:
Marcos García
Subject
:
[Dolibarr-dev] __construct vs classname
Date
:
Mon, 30 Jul 2012 11:49:36 +0200
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
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Dolibarr-dev] __construct vs classname
,
Marcos García
<=
Re: [Dolibarr-dev] __construct vs classname
,
Régis Houssin
,
2012/07/30
Re: [Dolibarr-dev] __construct vs classname
,
Juanjo Menent
,
2012/07/30
Re: [Dolibarr-dev] __construct vs classname
,
Laurent Destailleur (eldy)
,
2012/07/30
Prev by Date:
Re: [Dolibarr-dev] Translate margin and comissions to english
Next by Date:
Re: [Dolibarr-dev] __construct vs classname
Previous by thread:
[Dolibarr-dev] Untranslated strings
Next by thread:
Re: [Dolibarr-dev] __construct vs classname
Index(es):
Date
Thread