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

Ingo Renner ingo at typo3.org
Fri Nov 7 17:30:25 CET 2008


Martin Holtz wrote:

Hi Martin,

> What is the recommended way to do so?

as Dmitry already said: it depends on the function you want to call. If 
it's declared static you're fine calling it without an instance.
Especially when using the templating functions you can also directly use 
the "original" functions in t3lib_parsehtml. They are declared static in 
4.3, but aren't in 4.2 though.

Any other function that is not declared static shouldn't be called 
without an instance.


HTH
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2




More information about the TYPO3-dev mailing list