[TYPO3] how to generate link

Thorsten Kahler thorsten.kahler at dkd.de
Thu Aug 2 10:42:36 CEST 2007


Hi Elmar,

Elmar Hinz wrote on 02.08.2007 10:19:
>> TYPO3 indeed doesn't implement the singleton pattern yet because of its
>> compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to use
>> objects as singletons (implemented as a kind of object repository).
>>
> 
> Hi Thorsten,
> 
> I worked with the singleton pattern in PHP4. Which additional features do I
> have with PHP5 for singletons?
> 

AFAIK the singleton pattern requires static attributes and methods as well
as access specifiers.

There's no problem to use a class as singleton in PHP4 but that's based on
goodwill, not on the singleton /pattern/.

Regards
Thorsten


More information about the TYPO3-english mailing list