[TYPO3-project-formidable] How work the calls from userobj property?
Asbjørn Morell
atmorell at gmail.com
Fri May 11 10:08:13 CEST 2007
Hello Rego
You want to generate a list from a database table right? This is somehing I
have tried to do a few times (failed so far) Could I pease have a look at
your _getList function ? I would like to see how you access the database
with the TYPO3 API.
Best regards.
Asbjørn Morell.
"Manuel Rego Casasnovas" <mrego at igalia.com> wrote in message
news:mailman.213551.1178869453.21067.typo3-project-formidable at lists.netfielders.de...
> Hello everybody.
>
> I've been test differents places where I use userobj to call a function.
>
> First I use userobj inside renderlet data property, the next way:
> <renderlet:LISTBOX name="list">
> <data>
> <userobj>
> <extension>this</extension>
> <method>_getList</method>
> <params>
> <param>
> <name>var</name>
> <value>my_value</value>
> </param>
> </params>
> </userobj>
> </data>
> </renderlet:LISTBOX>
>
> In my function (_getList) I receive three params:
> 1. An array with some information (I don't know what this information
> means)
> 2. An array with the params
> 3. A tx_ameosformidable object
>
>
> However when I call a personal function inside renderlet search/override
> property:
> <renderlet:TEXT name="text">
> <search>
> <overridesql>
> <userobj>
> <extension>this</extension>
> <method>_getSQL</method>
> <params>
> <name>var</name>
> <value>my_value</value>
> </params>
> </userobj>
> </overridesql>
> </search>
> </renderlet:TEXT>
>
> In my function (_getSQL) I only receive two params:
> 1. An array with some information
> 2. A tx_ameosformidable object
>
> I don't receive the params.
>
>
> What means the first param that I receive?
> Somebody knows because exists that difference?
>
>
> Best regards and thanks for your time ;-)
> Rego
>
> ---
> http://www.igalia.com
>
More information about the TYPO3-project-formidable
mailing list