[TYPO3-dev] DynaFlex and eID

Cyprian Kowalczyk cyprian at pi2.pl
Tue Dec 5 12:24:51 CET 2006


On Tue, 05 Dec 2006 21:43:32 +1100, Nikolas Hagelstein <hagelstein at shr.cc>  
wrote:

> BTW: Hopefully most of these ugly xml/db stuff can be discarded using
> the upcoming IRRE feature.

Yeap, I'll have a look into it.

For now I figured out the best way for my case, it's semi-manual  
generation of flex XML structure [without initializing much of core libs].  
Basically if one need to got an array like:

$arr[data][sDEF][lDEF][###customFieldName###][vDEF] = ###fieldValue###;

You need to initialize the following things:

$GLOBALS['LANG']->charSet = 'utf-8';
require_once (PATH_t3lib . 'class.t3lib_flexformtools.php');
$flexObj = t3lib_div :: makeInstance('t3lib_flexformtools');
$fieldXML = $flexObj->flexArray2Xml($arr, true);

HTH

-- 

regards, Cyprian
http://pi2.pl design project




More information about the TYPO3-dev mailing list