/** * Init * * @param TypoScriptTemplateModuleController $pObj * @param array $conf * @return void */ public function init(&$pObj, $conf) { parent::init($pObj, $conf); $this->pObj->modMenu_dontValidateList .= ',ts_browser_toplevel_setup,ts_browser_toplevel_const,ts_browser_TLKeys_setup,ts_browser_TLKeys_const'; $this->pObj->modMenu_setDefaultList .= ',ts_browser_fixedLgd,ts_browser_showComments'; $this->localLanguageFilePath = 'EXT:tstemplate/Resources/Private/Language/locallang_objbrowser.xlf'; }
/** * Initialize. * Calls parent init function and then the handleExternalFunctionValue() function from the parent class * * @param object $pObj A reference to the parent (calling) object (which is probably an instance of an extension class to t3lib_SCbase) * @param array $conf The configuration set for this module - from global array TBE_MODULES_EXT * @return void * @see t3lib_extobjbase::handleExternalFunctionValue(), t3lib_extobjbase::init() * @todo Define visibility */ public function init(&$pObj, $conf) { // OK, handles ordinary init. This includes setting up the menu array with ->modMenu parent::init($pObj, $conf); // Making sure that any further external classes are added to the include_once array. Notice that inclusion happens twice in the main script because of this!!! $this->handleExternalFunctionValue(); }
/** * Does some initial work for the page * * @return array */ public function init($pObj, $conf) { // load languages $trans = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TranslationConfigurationProvider'); $this->sysLanguages = $trans->getSystemLanguages($pObj->id, $GLOBALS['BACK_PATH']); // see if multiple languages exist in the system (array includes more than "0" (default) and "-1" (all)) $this->hasAvailableLanguages = count($this->sysLanguages) > 2; parent::init($pObj, $conf); }
/** * Init * * @param object $pObj * @param array $conf * @return void * @todo Define visibility */ public function init(&$pObj, $conf) { parent::init($pObj, $conf); $this->pObj->modMenu_dontValidateList .= ',ts_browser_toplevel_setup,ts_browser_toplevel_const,ts_browser_TLKeys_setup,ts_browser_TLKeys_const'; $this->pObj->modMenu_setDefaultList .= ',ts_browser_fixedLgd,ts_browser_showComments'; }
/** * Init * * @param object $pObj * @param array $conf * @return void * @todo Define visibility */ public function init(&$pObj, $conf) { parent::init($pObj, $conf); $GLOBALS['LANG']->includeLLFile('EXT:tstemplate/Resources/Private/Language/locallang_analyzer.xlf'); $this->pObj->modMenu_setDefaultList .= ',ts_analyzer_checkLinenum,ts_analyzer_checkSyntax'; }
/** * Creates an instance of the class found in $this->extClassConf['name'] in $this->extObj if any (this should hold three keys, "name", "path" and "title" if a "Function menu module" tries to connect...) * This value in extClassConf might be set by an extension (in an ext_tables/ext_localconf file) which thus "connects" to a module. * The array $this->extClassConf is set in handleExternalFunctionValue() based on the value of MOD_SETTINGS[function] * If an instance is created it is initiated with $this passed as value and $this->extClassConf as second argument. Further the $this->MOD_SETTING is cleaned up again after calling the init function. * * @return void * @see handleExternalFunctionValue(), \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(), $extObj */ public function checkExtObj() { if (is_array($this->extClassConf) && $this->extClassConf['name']) { $this->extObj = GeneralUtility::makeInstance($this->extClassConf['name']); $this->extObj->init($this, $this->extClassConf); // Re-write: $this->MOD_SETTINGS = BackendUtility::getModuleData($this->MOD_MENU, GeneralUtility::_GP('SET'), $this->MCONF['name'], $this->modMenu_type, $this->modMenu_dontValidateList, $this->modMenu_setDefaultList); } }
/** * Initialize. * Calls parent init function and then the handleExternalFunctionValue() function from the parent class * * @param BaseScriptClass $pObj A reference to the parent (calling) object (which is probably an instance of an extension class to \TYPO3\CMS\Backend\Module\BaseScriptClass) * @param array $conf The configuration set for this module - from global array TBE_MODULES_EXT * @return void */ public function init(&$pObj, $conf) { // OK, handles ordinary init. This includes setting up the menu array with ->modMenu parent::init($pObj, $conf); $this->handleExternalFunctionValue(); }
/** * Init * * @param object $pObj * @param array $conf * @return void * @todo Define visibility */ public function init(&$pObj, $conf) { parent::init($pObj, $conf); $this->pObj->modMenu_setDefaultList .= ',ts_analyzer_checkLinenum,ts_analyzer_checkSyntax'; }
/** * Init * * @param TypoScriptTemplateModuleController $pObj * @param array $conf * @return void */ public function init(&$pObj, $conf) { parent::init($pObj, $conf); $this->localLanguageFilePath = 'EXT:tstemplate/Resources/Private/Language/locallang_analyzer.xlf'; $this->pObj->modMenu_setDefaultList .= ',ts_analyzer_checkLinenum,ts_analyzer_checkSyntax'; }