[TYPO3-dev] Fully Blown StdWrap - Check it out!

JoH info at cybercraft.de
Wed Mar 15 21:27:53 CET 2006


> modulazation of this engine into real objects and finer grained
> functions is one of the most important fields of refactoring. That is
> no question at all for me. There is no other class that causes so much
> XCLASS conflicts, and makes TS so difficult to extend.

You won't have any XCLASS conflicts with this solution:
Simply XCLASS tslib_content by adding a new function.
If this function is available it will be called by the foreach loop as soon
as you trigger it with the corresponding TS property.

You want a new property myProperty?

Simply add this function

function stdWrap_myProperty($content.$conf) {
    blah
    return $content
}

to tslib_content.php and use it with

page.10 = TEXT
page.10 {
    fullStdWrap = 1
    myProperty = whatever
}

> The question is, if we should start with a modularization of TS1 or if
> we keep it as it is and directly start with TS2objects.
>
> What you propose will logicially follow of this in anyway. I can't
> judge if it would be possible to implement it before an effort of
> modularization.

Well - it is already completely unitised - each stdWrap function is executed
by a corresponding PHP function.
So you can keep this basic functionality and extend it with as many TS2
features as you like.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de






More information about the TYPO3-dev mailing list