[TYPO3-dev] processDatamapClass issue

Dmitry Dulepov [typo3] dmitry at typo3.org
Thu Jun 19 14:20:06 CEST 2008


Hi!

Steffen Kamper wrote:
> but it looks for the classname (not the file), so classname is expected
> $hookObjectsArr[] = &t3lib_div::getUserObj($classRef);

Look what t3lib_div::getUserObj() does. It understands ":" syntax.

> later there is the call:
> if (method_exists($hookObj, 'processDatamap_preProcessFieldArray')) {
>      $hookObj->processDatamap_preProcessFieldArray($incomingFieldArray, 
> $table, $id, $this);
> }

If you are in doubt, here is an example from TV:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain';


-- 
Dmitry Dulepov
E-mail: dmitry at typo3.org
Skype: callto:liels_bugs
TYPO3 technical: http://typo3bloke.net/




More information about the TYPO3-dev mailing list