[TYPO3-ect] ECT library

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Thu Mar 9 14:55:17 CET 2006


Jan-Hendrik Heuing [DD] schrieb:
> That's what I also thought. It's a major problem with TYPO3, that it is 
> quite slow as soon as you start using custom pages after login for example. 
> We should try to gain as much speed as possible. I guess it would make sense 
> activating TT for those functions etc. by default (swich on/off debug makes 

Ähhmm? TT?

> sense of course), so that we spot performance issues straight away.
> 
> If you pass it by reference, it keeps earlier set paramters. Is there an 

That is true for the cObject itself. But we pass our whole conf
directoy to typolink function.

function typoLink($linktxt, $conf);

Inside the function itself I don't see any point, where our
configuration would merge with existing one. But it is very complex. I
wouldn't swear on this.

<http://www.typo3-unleashed.net/t381api/html/d4/df7/typo3_2sysext_2cms_2tslib_2class_8tslib__content_8php-source.html#l04869>

> easy way of resetting those values? Doing some extensionwork at the moment, 
> I could also think of having a default set of parameters you use within your

I wouldn't implement this into this class.

But the trick is quite simple with ect_link. You prepare one instance
as a skeleton by setting some setters. Each time you need a link you
make a copy of the skeleton, you set the differing setters and call
makeTag(). Unset your copy. You are done.

Because all copies refer internally to the same cObject (in the next
version), you wouldn't even significantly lose performance.

Regards

Elmar





More information about the TYPO3-team-extension-coordination mailing list