[TYPO3] how to generate link

Thorsten Kahler thorsten.kahler at dkd.de
Thu Aug 2 09:28:19 CEST 2007


Hi Ries,

ries van Twisk wrote on 01.08.2007 18:30:
> On Aug 1, 2007, at 9:53 AM, Jan Bednarik wrote:
>> I think adding Singleton pattern to t3lib_div::makeInstance would be
>> quite simple. I've tried it once, but Typo3 didn't work then. I guess,
>> only a few chosen classes could be singleton.
> 
> TYPO3 is kinda picky :)
> And typo3 never could really do it since php4 and singleton is
> quite.. Hmmmm how can I say, awkward :D

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).

> However I believe the decision was made that from 4.2 php 5.x
> is a requirement (I hope not 5.2 and up though).

>From version 4.2 TYPO3 will raise it's requirements to PHP 5.1 and will be
fully compatible with 5.2. See Stuckis blog post [1].

Regards
Thorsten

[1] http://buzz.typo3.org/people/stucki/article/leaving-php4-behind/


More information about the TYPO3-english mailing list