[TYPO3-dev] Problem with a hook definition
Tapio Markula
tapio.markula at xetpoint.fi
Fri Jan 4 09:12:37 CET 2008
Tapio Markula kirjoitti:
> Steffen Kamper
>> the definition expects an array containing the cObjType and the class.
>> have a look at Bernhard's explanation:
>> http://lists.netfielders.de/pipermail/typo3-team-core/2006-April/003989.html
>>
>>
>> vg Steffen
>
> I don't still fully understand it.
>
> array('COA_MINT',
>
> df_direct_mail_subscription plugin is a COA or COA_INT?
> - so COA or COA_INT required
If I define array('COA',...
that it applied only for 'COA'?
then inside hook method (function cObjGetSingleExt(...))
$content.=$this->COBJ_ARRAY($conf);
is only required and not swicth - case -structure:
switch($name) {
case 'COBJ_ARRAY':
case 'COA':
$content.=$this->COBJ_ARRAY($conf);
break;
case 'COA_INT':
$content.=$this->COBJ_ARRAY($conf,'INT');
...
More information about the TYPO3-dev
mailing list