TYPO3  7.6
Protected Member Functions | Protected Attributes | List of all members
PreviewController Class Reference
Inheritance diagram for PreviewController:
AbstractController ActionController AbstractController ControllerInterface

Protected Member Functions

 initializeView (BackendTemplateView $view)
 
 initializeAction ()
 
 isInvalidStage ($stageArray)
 
 generateJavascript ()
 
- Protected Member Functions inherited from AbstractController
 initializeAction ()
 
 assignExtensionSettings ()
 
 getLanguageSelection ()
 
 getAdditionalColumnService ()
 
 getAdditionalResourceService ()
 
 getBackendUser ()
 
 getPageRenderer ()
 
- Protected Member Functions inherited from 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 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 AbstractController
 $defaultViewObjectName = BackendTemplateView::class
 
 $view
 
 $extensionName = 'Workspaces'
 
 $pageRenderer
 
 $pageId
 
- Protected Attributes inherited from ActionController
 $reflectionService
 
 $cacheService
 
 $view = null
 
 $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
 $viewFormatToObjectNameMap = array()
 
 $defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class
 
 $actionMethodName = 'indexAction'
 
 $errorMethodName = 'errorAction'
 
 $mvcPropertyMappingConfigurationService
 
 $request
 
 $response
 
- Protected Attributes inherited from AbstractController
 $signalSlotDispatcher
 
 $objectManager
 
 $uriBuilder
 
 $extensionName
 
 $settings
 
 $request
 
 $response
 
 $validatorResolver
 
 $arguments
 
 $supportedRequestTypes = array(\TYPO3\CMS\Extbase\Mvc\Request::class)
 
 $controllerContext
 
 $configurationManager
 

Additional Inherited Members

- Public Member Functions inherited from 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)
 
- Static Public Member Functions inherited from ActionController
static getActionMethodParameters ($objectManager)
 

Detailed Description

Implements the preview controller of the workspace module.

Definition at line 25 of file PreviewController.php.

Member Function Documentation

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 206 of file PreviewController.php.

References $GLOBALS, GeneralUtility\dirname(), ExtensionManagementUtility\extRelPath(), GeneralUtility\getIndpEnv(), BackendUtility\isModuleSetInTBE_MODULES(), and GeneralUtility\shortMD5().

Referenced by PreviewController\initializeAction().

initializeAction ( )
protected

Initializes the controller before invoking an action method.

Returns
void

Definition at line 54 of file PreviewController.php.

References $GLOBALS, ExtensionManagementUtility\extRelPath(), PreviewController\generateJavascript(), and GeneralUtility\makeInstance().

initializeView ( BackendTemplateView  $view)
protected

Set up the doc header properly here

Parameters
BackendTemplateView$view

Definition at line 42 of file PreviewController.php.

References BackendTemplateView\getModuleTemplate().

isInvalidStage (   $stageArray)
protected

Evaluate the activate state based on given $stageArray.

Parameters
array$stageArray
Returns
bool

Definition at line 181 of file PreviewController.php.

Member Data Documentation

$stageService
protected

Definition at line 30 of file PreviewController.php.

$workspaceService
protected

Definition at line 35 of file PreviewController.php.