/** * Get the typoscript loaded on the current page * * @param $pid integer * @return array */ protected function getTyposcriptSettings($pid) { $typoScript = Tx_PtExtbase_Div::returnTyposcriptSetup($pid, 'module.tx_yag.settings.'); if (!is_array($typoScript) || empty($typoScript)) { $configuration = array('extensionName' => self::EXTENSION_NAME, 'pluginName' => self::PLUGIN_NAME, 'controller' => 'Backend', 'action' => 'settingsNotAvailable', 'switchableControllerActions' => array('Backend' => array('settingsNotAvailable'))); echo $this->bootstrap->run('', $configuration); die; } return GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Service\\TypoScriptService')->convertTypoScriptArrayToPlainArray($typoScript); }
/** * @return mixed */ public function render() { $extensionConfiguration = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, $this->arguments['extension'], $this->arguments['plugin']); $configuration = array('extensionName' => $this->arguments['extension'], 'pluginName' => $this->arguments['plugin'], 'controllerName' => $this->arguments['controller'], 'action' => $this->arguments['action']); if ($this->arguments['vendor']) { $configuration['vendorName'] = $this->arguments['vendor']; } if (is_array($this->arguments['arguments'])) { $configuration = \array_merge($this->arguments['arguments'], $configuration); } $configuration = array_merge($extensionConfiguration, $configuration); ksort($configuration); return $this->bootstrap->run('', $configuration); }
/** * Bootstrap Extbase * * @return string */ public function run() { return $this->bootstrap->run('', $this->pluginConfiguration); }
/** * Dispatches a request. * @return string */ public function dispatch() { return $this->extbaseBootstap->run('', array('extensionName' => $this->extensionKey, 'pluginName' => 'Ajax')); }