[TYPO3-core] use php5 for new code

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Oct 10 17:19:17 CEST 2007


Dmitry Dulepov [typo3] schrieb:
> Ingo Renner wrote:
>> just some note on new code:
>>
>> I'd like to see new developments to be in php5 only because of the 
>> more advanced OO capabilities and encapsulation of object data.
> 
> So we can add new varaibles as public, protected and private, right?
> 
> Than we can have these rules:
> - make most variables protected, not private to allow reusing them in 
> the subclass/xclass
> - make variable public only if you suspect it can be reused externally

Yes please. Alternatively think about setters and getters.

Masi


More information about the TYPO3-team-core mailing list