[TYPO3-dev] BE lib

Steffen Kamper steffen at dislabs.de
Mon May 14 20:10:04 CEST 2007


Hi,

thx for that. I will check it.
I found also an example in the spellchecker from htmlarea, which should work 
.

vg   Steffen

"Popy" <popy.dev at gmail.com> schrieb im Newsbeitrag 
news:mailman.223341.1179164903.21067.typo3-dev at lists.netfielders.de...
> The main difficulty to have the TS or a cObject is that you must 
> initialise
> a TSFE
>
>    function buildTSFE() {
>        /* Declare */
>        $temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
>
>        /* Begin */
>        if (!is_object($GLOBALS['TT'])) {
>            $GLOBALS['TT'] = new t3lib_timeTrack;
>            $GLOBALS['TT']->start();
>        }
>
>        if (!is_object($GLOBALS['TSFE']) && $this->pid) {
>            //*** Builds TSFE object
>            $GLOBALS['TSFE'] = new
> $temp_TSFEclassName($GLOBALS['TYPO3_CONF_VARS'],$this->pid,0,0,0,0,0,0);
>
>            //*** Builds sub objects
>            $GLOBALS['TSFE']->tmpl =
> t3lib_div::makeInstance('t3lib_tsparser_ext');
>            $GLOBALS['TSFE']->sys_page =
> t3lib_div::makeInstance('t3lib_pageSelect');
>
>            //*** init template
>            $GLOBALS['TSFE']->tmpl->tt_track = 0;// Do not log
> time-performance information
>            $GLOBALS['TSFE']->tmpl->init();
>
>            $rootLine = 
> $GLOBALS['TSFE']->sys_page->getRootLine($this->pid);
>
>            //*** This generates the constants/config + hierarchy info for
> the template.
>
> $GLOBALS['TSFE']->tmpl->runThroughTemplates($rootLine,$template_uid);
>            $GLOBALS['TSFE']->tmpl->generateConfig();
>            $GLOBALS['TSFE']->tmpl->loaded=1;
>
>            //*** Get config array and other init from pagegen
>            $GLOBALS['TSFE']->getConfigArray();
>            $GLOBALS['TSFE']->linkVars =
> ''.$GLOBALS['TSFE']->config['config']['linkVars'];
>
>            if
> ($GLOBALS['TSFE']->config['config']['simulateStaticDocuments_pEnc_onlyP'])
> {
>                foreach
> (t3lib_div::trimExplode(',',$GLOBALS['TSFE']->config['config']['simulateStaticDocuments_pEnc_onlyP'],1)
> as $temp_p)    {
>                    $GLOBALS['TSFE']->pEncAllowedParamNames[$temp_p]=1;
>                }
>            }
>
>            //*** Builds a cObj
>            $GLOBALS['TSFE']->newCObj();
>        }
>
>    }
>
>
> 2007/5/14, Steffen Kamper <steffen at dislabs.de>:
>>
>> Hi devs,
>>
>> for writing BE modules i would like to compile a library as an extension
>> with functions like
>> - TS from page
>> - fe cObj
>> - some html output formatters
>>
>> Does anybody has done part of that or does anybody has ideas what he's
>> missing most for that ?
>> May be there is something simular out or somebody has a solution on his
>> computer, i don't want to reinvent wheel.
>> If anybody also has a usefull function, it would be nice to create with
>> teamwork
>>
>> vg  Steffen
>>
>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>>
>
>
>
> -- 
> Popy
>
> Vulnerant omnes, ultima necat.
>
> http://popy.sytes.net 






More information about the TYPO3-dev mailing list