[TYPO3-v4] Something for CGL?
Xavier Perseguers
typo3 at perseguers.ch
Fri Nov 26 19:37:06 CET 2010
Hi,
> i tried that in tslib_content
>
> /**
> * @var array with members of tslib_content_abstract
> */
> protected $contentObjects = array();
>
> How to do that correct so IDE knows if you type
>
> $this->contentObjects[0]-> ?
As proposed by Lieuwe, this should be written
/**
* @var tslib_content_abstract[] array of ...
*/
protected $contentObjects = array();
$this->contentObjects[0]->
should work but I did not test. What is sure is that the aforementioned
comment is correct.
I don't know for you, but I find it very difficult to read a doc where
the order of declaration and such examples are shown.
Xavier
More information about the TYPO3-project-v4
mailing list