[TYPO3-project-formidable] How work the calls from userobj property?
Jérémy Lecour
jeremy.lecour at gmail.com
Fri May 11 12:13:49 CEST 2007
In your second example, didn't you forget to wrap your param in a <param> tag ?
You have this :
<params>
<name>var</name>
<value>my_value</value>
</params>
You should have this :
<params>
<param>
<name>var</name>
<value>my_value</value>
</param>
</params>
2007/5/11, Manuel Rego Casasnovas <mrego at igalia.com>:
> 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
>
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>
--
Jérémy Lecour : <mailto:jeremy.lecour at gmail.com>
webdesigner, webmaster et développeur web
Provence Linux User Group : http://www.plugfr.org/
More information about the TYPO3-project-formidable
mailing list