/** * Constructs this view * * Defines the global variable SOBE. Normally this is used by the wizards * which are one file only. This view is now the class with the global * variable name SOBE. * * Defines the document template object. * * @param \TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository * @see \TYPO3\CMS\Backend\Template\DocumentTemplate */ public function __construct(\TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository) { parent::__construct($repository); $GLOBALS['SOBE'] = $this; // Define the document template object $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class); $this->doc->setModuleTemplate('EXT:form/Resources/Private/Templates/Wizard.html'); }
/** * Constructs this view * * Defines the global variable SOBE. Normally this is used by the wizards * which are one file only. This view is now the class with the global * variable name SOBE. * * Defines the document template object. * * @param \TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository * @see \TYPO3\CMS\Backend\Template\DocumentTemplate */ public function __construct(\TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository) { parent::__construct($repository); $GLOBALS['LANG']->includeLLFile('EXT:form/Resources/Private/Language/locallang_wizard.xlf'); $GLOBALS['SOBE'] = $this; // Define the document template object $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->setModuleTemplate('EXT:form/Resources/Private/Templates/Wizard.html'); $this->pageRenderer = $this->doc->getPageRenderer(); }
/** * Constructs this view * * Defines the global variable SOBE. Normally this is used by the wizards * which are one file only. This view is now the class with the global * variable name SOBE. * * Defines the document template object. * * @param \TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository * @see \TYPO3\CMS\Backend\Template\DocumentTemplate */ public function __construct(\TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository) { parent::__construct($repository); $GLOBALS['SOBE'] = $this; // Define the document template object $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->setModuleTemplate('EXT:form/Resources/Private/Templates/Wizard.html'); $this->pageRenderer = $this->doc->getPageRenderer(); $this->pageRenderer->enableConcatenateFiles(); $this->pageRenderer->enableCompressCss(); $this->pageRenderer->enableCompressJavascript(); }
/** * Constructs this view * * Defines the global variable SOBE. Normally this is used by the wizards * which are one file only. SOBE is used by typo3/template.php. This view is * now the class with the global variable name SOBE. * * Defines the document template object. * * @return void */ public function __construct(\TYPO3\CMS\Form\Domain\Repository\ContentRepository $repository) { parent::__construct($repository); $GLOBALS['LANG']->includeLLFile('EXT:form/Resources/Private/Language/locallang_wizard.xml'); $GLOBALS['SOBE'] = $this; // Define the document template object $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->setModuleTemplate('EXT:form/Resources/Private/Templates/Wizard.html'); $this->doc->JScode = $this->doc->wrapScriptTags(' function jumpToUrl(URL,formEl) { window.location.href = URL; } '); $this->pageRenderer = $this->doc->getPageRenderer(); $this->pageRenderer->enableConcatenateFiles(); $this->pageRenderer->enableCompressCss(); $this->pageRenderer->enableCompressJavascript(); }