[TYPO3-dev] stdWrap for userFuncs conf

Dmitry Dulepov [typo3] dmitry at typo3.org
Thu Dec 6 08:29:42 CET 2007


Hi!

Georg Ringer wrote:
> I just discovered a big missing feature and I don't have any clue how 
> this could be fixed. I would need stdWrap functionality for the 
> configuration of userFuncs.
> 
> Take e.g. this sample code
> postUserFunc = tx_rgmediaimages_fe->user_images
> postUserFunc  {
>     test = TEXT
>     test.data = register:imagewidth
> }
> 
> But all I will get inside the userFunc is
> ----------
> Array (
>     [test] => TEXT
>     [test.] => Array ( [data] => register:imagewidth )
> )
> ----------

That's correct. Anything inside it is your won properties and you can do whatever you want with them. If you want to process "test" as cObject, you have to do it yourself. This is due to the fact that TYPO3 does not define anything special inside userFunc.

You may want to look to irfaq or tt_news to see how they implement stdWrap inside their userFuncs.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"




More information about the TYPO3-dev mailing list