[TYPO3-dev] Hooks and protected class members

Ingo Renner ingo at typo3.org
Sun Nov 14 18:45:54 CET 2010


Jigal van Hemert wrote:

> And OOP knows the concept of "friend" classes, which have access to
> those members. Unfortunately PHP doesn't know that concept as I've
> written in the original message.

not necessarily, that's a language specific feature, and to me it's a 
bad concept because it contradicts the principal of data encapsulation.

Seriously, do you want everybody to fiddle with your data?

> Anyway, live goes on; instead of "getting hooked" I'll just keep
> XCLASSing ;-)

;)


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2





More information about the TYPO3-dev mailing list