TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Workspaces\Controller\PreviewController Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Controller\PreviewController:
TYPO3\CMS\Workspaces\Controller\AbstractController TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\AbstractController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Protected Member Functions

 initializeAction ()
 
 isInvalidStage ($stageArray)
 
 generateJavascript ()
 
- Protected Member Functions inherited from TYPO3\CMS\Workspaces\Controller\AbstractController
 initializeAction ()
 
 assignExtensionSettings ()
 
 getLanguageSelection ()
 
 getAdditionalColumnService ()
 
 getAdditionalResourceService ()
 
 getBackendUser ()
 
 getPageRenderer ()
 
- Protected Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeActionMethodArguments ()
 
 resolveActionMethodName ()
 
 emitBeforeCallActionMethodSignal (array $preparedArguments)
 
 setViewConfiguration (ViewInterface $view)
 
 getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
 resolveViewObjectName ()
 
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
 errorAction ()
 
 clearCacheOnError ()
 
 addErrorFlashMessage ()
 
 getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
 getFlattenedValidationErrorMessage ()
 
- Protected Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $delay=0, $statusCode=303)
 
 redirectToUri ($uri, $delay=0, $statusCode=303)
 
 addBaseUriIfNecessary ($uri)
 

Protected Attributes

 $stageService
 
 $workspaceService
 
- Protected Attributes inherited from TYPO3\CMS\Workspaces\Controller\AbstractController
 $defaultViewObjectName = BackendTemplateView::class
 
 $view
 
 $extensionName = 'Workspaces'
 
 $pageRenderer
 
 $pageId
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 $reflectionService
 
 $cacheService
 
 $view = null
 
 $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
 $viewFormatToObjectNameMap = []
 
 $defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class
 
 $actionMethodName = 'indexAction'
 
 $errorMethodName = 'errorAction'
 
 $mvcPropertyMappingConfigurationService
 
 $request
 
 $response
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 $signalSlotDispatcher
 
 $objectManager
 
 $uriBuilder
 
 $extensionName
 
 $settings
 
 $request
 
 $response
 
 $validatorResolver
 
 $arguments
 
 $supportedRequestTypes = [\TYPO3\CMS\Extbase\Mvc\Request::class]
 
 $controllerContext
 
 $configurationManager
 

Additional Inherited Members

- Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 injectCacheService (\TYPO3\CMS\Extbase\Service\CacheService $cacheService)
 
 injectMvcPropertyMappingConfigurationService (\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (\TYPO3\CMS\Extbase\Validation\ValidatorResolver $validatorResolver)
 
 getControllerContext ()
 
 __construct ()
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=\TYPO3\CMS\Core\Messaging\AbstractMessage::OK, $storeInSession=true)
 
 canProcessRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
 forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
 throwStatus ($statusCode, $statusMessage=null, $content=null)
 
- Static Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
static getActionMethodParameters ($objectManager)
 

Detailed Description

Implements the preview controller of the workspace module.

Definition at line 26 of file PreviewController.php.

Member Function Documentation

◆ generateJavascript()

TYPO3\CMS\Workspaces\Controller\PreviewController::generateJavascript ( )
protected

Generates the JavaScript code for the backend, and since we're loading a backend module outside of the actual backend this copies parts of the index.php?M=main module

Returns
string

Definition at line 212 of file PreviewController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\dirname(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Backend\Utility\BackendUtility\isModuleSetInTBE_MODULES(), and TYPO3\CMS\Core\Utility\GeneralUtility\shortMD5().

Referenced by TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction().

◆ initializeAction()

◆ isInvalidStage()

TYPO3\CMS\Workspaces\Controller\PreviewController::isInvalidStage (   $stageArray)
protected

Evaluate the activate state based on given $stageArray.

Parameters
array$stageArray
Returns
bool

Definition at line 187 of file PreviewController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Workspaces\Controller\PreviewController\initializeAction().

Member Data Documentation

◆ $stageService

TYPO3\CMS\Workspaces\Controller\PreviewController::$stageService
protected

Definition at line 31 of file PreviewController.php.

◆ $workspaceService

TYPO3\CMS\Workspaces\Controller\PreviewController::$workspaceService
protected

Definition at line 36 of file PreviewController.php.