[TYPO3-ect] TS Action chains for SPL objects

Elmar Hinz elmar07 at googlemail.com
Mon Aug 6 10:55:33 CEST 2007


Hi Steve,

> I'm not too clear about the meaning of your .do. and .go numbering
> schemes.

The do numberings are for the order of functions called. The sublevel are is
a parameter order:

translate = tx_my_translatorClass
translate.do.1.init                     // first function
translate.do.1.1.getText = TSFE:L   // first parameter: language
translate.do.1.2 = EXT:germanLables/locallant.xml // second: file
translate.do.2.translate                // second function
translate.do.2.1 = content              // first par: field to translate

The "goes" connect return states with the next steps in the chain:

translate.go.next = dispaly
translate.go.fileNotFound = translator2
translate.go.failed = displayLanguageError


Sidenote: In the place of classes services could be used.

translate = SERVICE:tx_my_translatorService
translate.do.1.init                  
translate.do.1.1.getText = TSFE:L

[...]

Regards

Elmar




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