00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00145 class t3lib_extobjbase {
00146
00153 var $pObj;
00154
00159 var $thisPath = '';
00160
00165 var $localLangFile = 'locallang.php';
00166
00172 var $extClassConf;
00173
00181 var $function_key = '';
00182
00183
00184
00185
00186
00187
00188
00189
00190
00199 function init(&$pObj,$conf) {
00200 global $LANG;
00201
00202 $this->pObj = &$pObj;
00203
00204
00205 $this->thisPath = dirname($conf['path']);
00206 if (!@is_dir($this->thisPath)) {
00207 die('Error: '.$this->thisPath.' was not a directory as expected...');
00208 }
00209
00210
00211 $this->incLocalLang();
00212
00213
00214 $this->pObj->MOD_MENU = array_merge($this->pObj->MOD_MENU,$this->modMenu());
00215 }
00216
00223 function handleExternalFunctionValue() {
00224
00225 $this->pObj->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->pObj->MOD_MENU, t3lib_div::_GP('SET'), $this->pObj->MCONF['name']);
00226 if ($this->function_key) {
00227 $this->extClassConf = $this->pObj->getExternalItemConfig($this->pObj->MCONF['name'],$this->function_key,$this->pObj->MOD_SETTINGS[$this->function_key]);
00228 if (is_array($this->extClassConf) && $this->extClassConf['path']) {
00229 $this->pObj->include_once[] = $this->extClassConf['path'];
00230 }
00231 }
00232 }
00233
00239 function incLocalLang() {
00240 global $LANG;
00241 #if ($this->localLangFile && @is_file($this->thisPath.'/'.$this->localLangFile)) {
00242 # include($this->thisPath.'/'.$this->localLangFile);
00243 if ($this->localLangFile && (@is_file($this->thisPath.'/'.$this->localLangFile) || @is_file($this->thisPath.'/'.substr($this->localLangFile,0,-4).'.xml'))) {
00244 $LOCAL_LANG = $LANG->includeLLFile($this->thisPath.'/'.$this->localLangFile, FALSE);
00245 if (is_array($LOCAL_LANG)) $GLOBALS['LOCAL_LANG'] = t3lib_div::array_merge_recursive_overrule($GLOBALS['LOCAL_LANG'],$LOCAL_LANG);
00246 }
00247 }
00248
00255 function checkExtObj() {
00256 if (is_array($this->extClassConf) && $this->extClassConf['name']) {
00257 $this->extObj = t3lib_div::makeInstance($this->extClassConf['name']);
00258 $this->extObj->init($this->pObj,$this->extClassConf);
00259
00260
00261 $this->pObj->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->pObj->MOD_MENU, t3lib_div::_GP('SET'), $this->pObj->MCONF['name']);
00262 }
00263 }
00264
00270 function extObjContent() {
00271 if (is_object($this->extObj)) return $this->extObj->main();
00272 }
00273
00281 function modMenu() {
00282 return array();
00283 }
00284 }
00285 ?>
This documentation has been generated automatically from TYPO3 source code using
Doxygen and is provided as is by
Cast Iron Coding
as a courtesy to other TYPO3 developers and users. Please consider
Cast Iron Coding — a full-service web development
agency in Portland, Oregon specializing in TYPO3 extension development — for all of your TYPO3 development and consulting needs!