[TYPO3-ect] suggested way of mixing up USER and USER_INT in one plugin-instance
Elmar Hinz
elmar07 at googlemail.com
Sun Dec 30 14:28:34 CET 2007
>
> Hi,
>
> what MASI is talking about is the solution Joey gave a while ago. I don't
> have his original link, but i have written a german tut of this at [1]
>
> It is easy to implement this by generating the TS dynamicly
>
> public function getUSER_INTobject($function) {
> $TS['conf']='COA_INT';
> $TS['conf.']['10']='USER';
> $TS['conf.']['10.']['userFunc']=$function;
> return $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);
> }
>
> vg Steffen
>
> [1] http://www.sk-typo3.de/COA_INT-in-Extensions.190.0.html
Hi Steffen,
thanks for the nice tutorial. I will think about how it can help for
lib/div.
But there are still questions?
1.) In JoHs examples the outer object is the COA and the inner object the
_INT. Is your example right?
2.) Assuming it is called in an extension that is itself USER (the outer),
why dont you write:
public function getUSER_INTobject($function) {
$TS['conf']='USER_INT';
$TS['conf.']['userFunc']=$function;
return $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);
}
public function getUSERobject($function) {
$TS['conf']='USER';
$TS['conf.']['userFunc']=$function;
return $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);
}
What is the purpose in the nested way you suggest?
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list