[TYPO3-dev] The "Object TypoScript library" in the TYPO3 core?

Ingmar Schlecht ingmar at typo3.org
Sat Jul 11 15:05:55 CEST 2009


Hi Benni,

that call is from a no longer supported extension ObjectTyposcript by
Dan Frost.

I think it can be removed from future versions. If in doubt, just drop a
mail to Dan Frost (dan AT 3ev.com).

cheers
Ingmar


Benjamin Mack schrieb:
> Hey,
> 
> I was browsing through the code of the TYPO3 core, and found some
> strange "obts" stuff, an extension I have never installed in my life.
> Here is some code from tslib_content:
> 
> =============
>     // Application defined cObjects
> foreach ($this->cObjHookObjectsArr as $cObjName => $hookObj)    {
>     if (($name===$cObjName) && method_exists($hookObj,
> 'cObjGetSingleExt')) {
>         $content.= $hookObj->cObjGetSingleExt($name, $conf, $TSkey, $this);
>         $hooked = true;
>     }
> }
> if (!$hooked && isset($GLOBALS['OBTS']['tso_list'][$name]) &&
> t3lib_extMgm::isLoaded('obts')) {
>     $content.= obts_dtutil::renderDatatypeContent($name,
> $GLOBALS['OBTS']['tso_list'][$name], $conf, $this);
> } elseif (!$hooked) {
> 
>     // Object TypoScript library included:
> if(t3lib_extMgm::isLoaded('obts')) {
> require_once(t3lib_extMgm::extPath('obts').'_tsobject/_tso.php');
> }
> =============
> 
> well, this check is done with every call to a TypoScript object. My
> questions are here:
> 
>  * Why is the obts getting  a separate call although there is a hook
> request right above there?
>  * Why is this obts hardcoded but not included in the core?
>  * Should I create a patch to remove the OBTS stuff so the framework
> should hook into the real hook and not its own way?
> 
> I'd appreciate any answer.
> 
> All the best,
> Benni.




More information about the TYPO3-dev mailing list