[TYPO3] how to generate link
Elmar Hinz
elmar07 at googlemail.com
Thu Aug 2 10:55:15 CEST 2007
Thorsten Kahler wrote:
> 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
The static attribute has been available in PHP4.
http://www.php.net/manual/de/language.oop.php
Please see the comment from:
Felix M dot Palmen <fmp at palmen dot homeip dot net>
10-Oct-2005 01:18
Regards
More information about the TYPO3-english
mailing list