[TYPO3-core] RFC: Bug #7203: Hook cObjTypeAndClassDefault in tslib_content somtimes fails
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Tue Feb 5 13:54:20 CET 2008
Hi Dmitry,
Dmitry Dulepov [typo3] schrieb:
> ...
> This is not official yet. Basically if you obtain object instance from
> "new" operator, it is clear for IDEs what object type is and they can
> propose methods and attributes in code assist. If you obtain instance
> from another function (like t3lib_div::makeInstance), IDEs have no idea
> what it is and code assist does not work. So we do this:
>
> $obj = t3lib_div::makeInstance('tx_myClass');
> /* @var $obj tx_myClass */
> $obj->.....
Do you know, how to do this with $this->obj ?
Or does this simply not work with PDT ?
$this->obj = t3lib_div::makeInstance('tx_myClass');
/* @var $this->obj tx_myClass */
$this->obj->.....
-
Stefan
More information about the TYPO3-team-core
mailing list