[TYPO3-dev] itemsProcFunc datamap?

Brian Bendtsen bb at bellevuevej.dk
Tue Jul 1 21:55:51 CEST 2008


Brian Bendtsen skrev:
> Steffen Kamper skrev:
>> Brian Bendtsen schrieb:
>>> Steffen Kamper skrev:
>>>> Brian Bendtsen schrieb:
>>>>> Hi
>>>>>
>>>>> Im using IRRE in an extension of mine and need a select box in 
>>>>> child element to show special values. Therefore im using the 
>>>>> itemsProcFunc option.
>>>>>
>>>>> The problem is, that the items in the selectbox has to generated by 
>>>>> using a value from the parent record. Im just not sure how to fetch 
>>>>> a value from the parent record. When using hooks like 
>>>>> processDatamap_afterDatabaseOperations its possible to access a 
>>>>> complete datamap. Is this possible with a function called from 
>>>>> itemsProcFunc?
>>>>>
>>>>> Any hints?
>>>>>
>>>>> /Brian
>>>>
>>>> sure, you need to declare the function with the params
>>>>  function doTheItemsProcFunc($params, $conf) { ... }
>>>>
>>>> vg Steffen
>>> Hi
>>>
>>> Yeah, Im with you this far, but I have tried to fetch the datamap 
>>> like this:
>>>
>>> $conf->datamap - but it returns nothing
>>>
>>> /Brian
>>
>> look at the arrays, it's all in
>> t3lib_div::debug(array($params,$conf),'show me');
>>
>> the arrays are plaiin arrays, there are no objects in.
>>
>> vg Steffen
> I use this:
> 
> t3lib_div::devlog('myFunction','extName',0,array($params, $conf));
> 
> The $conf returns a "unknown object"
> 
> /Brian
Am I misunderstanding something?

/Brian




More information about the TYPO3-dev mailing list