[TYPO3-dev] tsLib_CObj::getSubpart or $this->cObj->getSubpart

Martin Holtz typo3ng_2008 at martinholtz.de
Fri Nov 7 14:38:45 CET 2008


Hi,

i saw in some extensions, that they use

tsLib_CObj::functionName

instead of $this->cObj->functionName

What is the recommended way to do so?


And i want to set the $this->cObj->data - Array, so i could use it with
TypoScript Objects.

is that the correct way to handle that:

foreach (xy as $myData) {
	$this->cObj->setParent($myData,'mytable:'.$myData['uid']);
}


thanks,
martin

-- 
Martin Holtz
DocTeam: http://forge.typo3.org/projects/show/team-docteam

http://wiki.typo3.org/Ts45min - TypoScript in "45" minutes
http://wiki.typo3.org/De:ts45min - (auch in Deutsch)




More information about the TYPO3-dev mailing list