[TYPO3-project-formidable] Formidable v2.0.418 - getUserObjParams() or getParams() ?
Uwe Schmelzer
us at planungsgruppeinternet.de
Sat Oct 24 05:49:48 CEST 2009
Hi list,
as of formidable v2.0.418, should I use
$this->getUserObjParams() or $this->getParams() ?
Additional infos:
1. Context:
<renderlet:TEXT name="foo" label="bar" class="input-text">
<validators>
<validator:STANDARD>
<custom>
<message>Wrong input</message>
<userobj>
<php><![CDATA[
$aData = $this->getUserObjParams();
$stornoCode = $aData['value'];
]]></php>
</userobj>
</custom>
</validator:STANDARD>
</validators>
</renderlet:TEXT>
2. I am aware, that currently
getParams() is just a wrapper function for getUserObjParams()
as seen in Line 5784 of class.tx_ameosformidable.
So I might as well use it.
3. Change of return value?
Before v2.0.418, I used it like this:
$aData = $this->getUserObjParams();
$stornoCode = $aData['value'];
But now, the return value seemed to have changed
from array to string. E.g.:
$fieldvalue = $this->getUserObjParams();
$stornoCode = $fieldvalue;
grtz uwe
--
Herzliche Grüsse aus Sindelfingen
Uwe Schmelzer
us at planungsgruppeinternet.de
Planungsgruppe Internet
Parkstrasse 20
71063 Sindelfingen
Tel. 07031 / 704 089
Fax: 01805 / 233 633-00745
More information about the TYPO3-project-formidable
mailing list