[TYPO3-v4] RFC: Visibility keywords throught the Core

Dmitry Dulepov dmitry at typo3.org
Tue Oct 12 09:58:40 CEST 2010


Hi!

Ernesto Baschny [cron IT] wrote:
> I don't agree with that. If we simply add "public" everywhere, we cannot
> differenciate anymore from "public for a reason" vs "public because it
> has always been like that".

I agree. No "public" automatically.

When I refactor TYPO3 classes, I put protected where it makes sense. It
gives a possibility to override methods in XCLASSes but hides them from
unauthorized public use.

-- 
Dmitry Dulepov
TYPO3 core&security team member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-project-v4 mailing list