‪TYPO3CMS  11.5
TYPO3\CMS\Workspaces\Controller\PreviewController Class Reference

Public Member Functions

 __construct (StagesService $stageService, WorkspaceService $workspaceService, PageRenderer $pageRenderer, UriBuilder $uriBuilder, SiteFinder $siteFinder, ModuleTemplateFactory $moduleTemplateFactory)
 
ResponseInterface handleRequest (ServerRequestInterface $request)
 

Protected Member Functions

 initializeView (string $templateName)
 
bool isValidStage ($stageArray)
 
BackendUserAuthentication getBackendUser ()
 
 generateUrl (Site $site, int $pageUid, array $parameters)
 

Protected Attributes

int $pageId
 
ModuleTemplate $moduleTemplate
 
ViewInterface $view
 
StagesService $stageService
 
WorkspaceService $workspaceService
 
PageRenderer $pageRenderer
 
UriBuilder $uriBuilder
 
SiteFinder $siteFinder
 
ModuleTemplateFactory $moduleTemplateFactory
 

Detailed Description

Implements the preview controller of the workspace module.

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 45 of file PreviewController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ generateUrl()

TYPO3\CMS\Workspaces\Controller\PreviewController::generateUrl ( Site  $site,
int  $pageUid,
array  $parameters 
)
protected

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Workspaces\Controller\PreviewController::getBackendUser ( )
protected
Returns
‪BackendUserAuthentication

Definition at line 228 of file PreviewController.php.

References $GLOBALS.

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

◆ handleRequest()

ResponseInterface TYPO3\CMS\Workspaces\Controller\PreviewController::handleRequest ( ServerRequestInterface  $request)

◆ initializeView()

TYPO3\CMS\Workspaces\Controller\PreviewController::initializeView ( string  $templateName)
protected

Sets up the view

Parameters
string$templateName

Definition at line 89 of file PreviewController.php.

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

◆ isValidStage()

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

Evaluate the activate state based on given $stageArray.

Parameters
array$stageArray
Returns
‪bool

Definition at line 220 of file PreviewController.php.

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

Member Data Documentation

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Workspaces\Controller\PreviewController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 55 of file PreviewController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Workspaces\Controller\PreviewController::$moduleTemplateFactory
protected

◆ $pageId

int TYPO3\CMS\Workspaces\Controller\PreviewController::$pageId
protected

Definition at line 49 of file PreviewController.php.

◆ $pageRenderer

PageRenderer TYPO3\CMS\Workspaces\Controller\PreviewController::$pageRenderer
protected

◆ $siteFinder

SiteFinder TYPO3\CMS\Workspaces\Controller\PreviewController::$siteFinder
protected

◆ $stageService

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

◆ $uriBuilder

UriBuilder TYPO3\CMS\Workspaces\Controller\PreviewController::$uriBuilder
protected

◆ $view

ViewInterface TYPO3\CMS\Workspaces\Controller\PreviewController::$view
protected

Definition at line 59 of file PreviewController.php.

◆ $workspaceService

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