[TYPO3-project-formidable] How work the calls from userobj property?

Manuel Rego Casasnovas mrego at igalia.com
Fri May 11 09:44:09 CEST 2007


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