‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Controller\ReviewController Class Reference

Public Member Functions

 __construct (protected readonly WorkspaceService $workspaceService, protected readonly StagesService $stagesService, protected readonly IconFactory $iconFactory, protected readonly PageRenderer $pageRenderer, protected readonly UriBuilder $uriBuilder, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly WorkspacePublishGate $workspacePublishGate, protected readonly TranslationConfigurationProvider $translationConfigurationProvider)
 
 handleRequest (ServerRequestInterface $request)
 

Protected Member Functions

 addWorkspaceSelector (ModuleTemplate $view, array $availableWorkspaces, int $activeWorkspace, int $pageUid)
 
 addShortcutButton (ModuleTemplate $view, string $activeWorkspaceTitle, string $pageTitle, int $pageId)
 
 addPreviewLink (ModuleTemplate $view, int $pageUid, int $activeWorkspace)
 
 addEditWorkspaceRecordButton (ModuleTemplate $view, int $pageUid, int $activeWorkspace)
 
 getModuleUri (int $pageUid, int $workspaceId=null)
 
 customWorkspaceExists (array $workspaceList)
 
 getSystemLanguages (int $pageId, string $selectedLanguage)
 
 getStageActions ()
 
 getAvailableSelectStages ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Detailed Description

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

Definition at line 44 of file ReviewController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Controller\ReviewController::__construct ( protected readonly WorkspaceService  $workspaceService,
protected readonly StagesService  $stagesService,
protected readonly IconFactory  $iconFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly UriBuilder  $uriBuilder,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly WorkspacePublishGate  $workspacePublishGate,
protected readonly TranslationConfigurationProvider  $translationConfigurationProvider 
)

Definition at line 46 of file ReviewController.php.

Member Function Documentation

◆ addEditWorkspaceRecordButton()

◆ addPreviewLink()

TYPO3\CMS\Workspaces\Controller\ReviewController::addPreviewLink ( ModuleTemplate  $view,
int  $pageUid,
int  $activeWorkspace 
)
protected

◆ addShortcutButton()

TYPO3\CMS\Workspaces\Controller\ReviewController::addShortcutButton ( ModuleTemplate  $view,
string  $activeWorkspaceTitle,
string  $pageTitle,
int  $pageId 
)
protected

◆ addWorkspaceSelector()

TYPO3\CMS\Workspaces\Controller\ReviewController::addWorkspaceSelector ( ModuleTemplate  $view,
array  $availableWorkspaces,
int  $activeWorkspace,
int  $pageUid 
)
protected

◆ customWorkspaceExists()

TYPO3\CMS\Workspaces\Controller\ReviewController::customWorkspaceExists ( array  $workspaceList)
protected

Returns true if at least one custom workspace next to live workspace exists.

Definition at line 254 of file ReviewController.php.

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

◆ getAvailableSelectStages()

TYPO3\CMS\Workspaces\Controller\ReviewController::getAvailableSelectStages ( )
protected

Get stages to be used in the review filter. This basically adds -99 (all stages) and removes the publishing stage (-20).

Definition at line 309 of file ReviewController.php.

References TYPO3\CMS\Workspaces\Controller\ReviewController\getLanguageService(), and TYPO3\CMS\Workspaces\Service\StagesService\STAGE_PUBLISH_EXECUTE_ID.

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

◆ getBackendUser()

◆ getLanguageService()

◆ getModuleUri()

TYPO3\CMS\Workspaces\Controller\ReviewController::getModuleUri ( int  $pageUid,
int  $workspaceId = null 
)
protected

◆ getStageActions()

◆ getSystemLanguages()

TYPO3\CMS\Workspaces\Controller\ReviewController::getSystemLanguages ( int  $pageId,
string  $selectedLanguage 
)
protected

Gets all available system languages.

Definition at line 267 of file ReviewController.php.

References $languages.

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

◆ handleRequest()