/** * Initializes the current action * * @return void */ protected function initializeAction() { $this->div = t3lib_div::makeInstance('Tx_Powermail_Utility_Div'); Tx_Powermail_Utility_Div::mergeTypoScript2FlexForm($this->settings, 'Pi2'); // merge typoscript to flexform $this->piVars = $this->request->getArguments(); // check if ts is included if (!isset($this->settings['staticTemplate'])) { $this->flashMessageContainer->add(Tx_Extbase_Utility_Localization::translate('error_no_typoscript_pi2', 'powermail')); } }
/** * Initializes the current action * * @return void */ protected function initializeAction() { $this->cObj = $this->configurationManager->getContentObject(); $typoScriptSetup = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); $this->conf = $typoScriptSetup['plugin.']['tx_powermail.']['settings.']['setup.']; $this->div = t3lib_div::makeInstance('Tx_Powermail_Utility_Div'); Tx_Powermail_Utility_Div::mergeTypoScript2FlexForm($this->settings); // merge typoscript to flexform (if flexform field also exists and is empty, take typoscript part) $this->signalSlotDispatcher->dispatch(__CLASS__, __FUNCTION__ . 'Settings', array($this)); // check if ts is included if (!isset($this->settings['staticTemplate'])) { $this->flashMessageContainer->add(Tx_Extbase_Utility_Localization::translate('error_no_typoscript', 'powermail')); } // Debug Output if ($this->settings['debug']['settings']) { t3lib_utility_Debug::debug($this->settings, 'powermail debug: Show Settings'); } }