/** * 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(); }
/** * 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'; }
/** * 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'; }
/** * Calls the 'main' function inside the "Function menu module" if present * * @return void */ public function extObjContent() { if ($this->extObj === null) { $flashMessage = GeneralUtility::makeInstance(FlashMessage::class, $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang.xlf:no_modules_registered'), $this->getLanguageService()->getLL('title'), FlashMessage::ERROR); /** @var $flashMessageService \TYPO3\CMS\Core\Messaging\FlashMessageService */ $flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class); /** @var $defaultFlashMessageQueue \TYPO3\CMS\Core\Messaging\FlashMessageQueue */ $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier(); $defaultFlashMessageQueue->enqueue($flashMessage); } else { $this->extObj->pObj = $this; if (is_callable(array($this->extObj, 'main'))) { $this->content .= $this->extObj->main(); } } }
/** * 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(); }
/** * Calls the 'main' function inside the "Function menu module" if present * * @return void */ public function extObjContent() { if ($this->extObj === null) { $flashMessage = GeneralUtility::makeInstance(FlashMessage::class, $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang.xlf:no_modules_registered'), $this->getLanguageService()->getLL('title'), FlashMessage::ERROR); $this->content .= $flashMessage->render(); } else { $this->extObj->pObj = $this; if (is_callable(array($this->extObj, 'main'))) { $this->content .= $this->extObj->main(); } } }
/** * 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'; }