ReviewController
This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $stagesService : StagesService
- $translationConfigurationProvider : TranslationConfigurationProvider
- $uriBuilder : UriBuilder
- $workspacePublishGate : WorkspacePublishGate
- $workspaceRepository : WorkspaceRepository
- $workspaceService : WorkspaceService
- $workspaceStageRepository : WorkspaceStageRepository
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- Renders the review module user dependent with all workspaces.
- addEditWorkspaceRecordButton() : void
- addPreviewLink() : void
- addShortcutButton() : void
- getAvailableSelectStages() : array<string|int, mixed>
- Get stages to be used in the review filter. This basically adds -99 (all stages) and removes the publishing stage (-20).
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getStageActions() : array<string|int, mixed>
- Get list of available mass workspace actions.
- getSystemLanguages() : array<string|int, mixed>
- Gets all available system languages.
Properties
$iconFactory read-only
protected
IconFactory
$iconFactory
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer read-only
protected
PageRenderer
$pageRenderer
$stagesService read-only
protected
StagesService
$stagesService
$translationConfigurationProvider read-only
protected
TranslationConfigurationProvider
$translationConfigurationProvider
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
$workspacePublishGate read-only
protected
WorkspacePublishGate
$workspacePublishGate
$workspaceRepository read-only
protected
WorkspaceRepository
$workspaceRepository
$workspaceService read-only
protected
WorkspaceService
$workspaceService
$workspaceStageRepository read-only
protected
WorkspaceStageRepository
$workspaceStageRepository
Methods
__construct()
public
__construct(WorkspaceService $workspaceService, StagesService $stagesService, IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, WorkspacePublishGate $workspacePublishGate, TranslationConfigurationProvider $translationConfigurationProvider, WorkspaceRepository $workspaceRepository, WorkspaceStageRepository $workspaceStageRepository) : mixed
Parameters
- $workspaceService : WorkspaceService
- $stagesService : StagesService
- $iconFactory : IconFactory
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $moduleTemplateFactory : ModuleTemplateFactory
- $workspacePublishGate : WorkspacePublishGate
- $translationConfigurationProvider : TranslationConfigurationProvider
- $workspaceRepository : WorkspaceRepository
- $workspaceStageRepository : WorkspaceStageRepository
handleRequest()
Renders the review module user dependent with all workspaces.
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
The module will show all records of one workspace.
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddEditWorkspaceRecordButton()
protected
addEditWorkspaceRecordButton(ModuleTemplate $view, int $pageUid, int $activeWorkspace) : void
Parameters
- $view : ModuleTemplate
- $pageUid : int
- $activeWorkspace : int
addPreviewLink()
protected
addPreviewLink(ModuleTemplate $view, int $pageUid, int $activeWorkspace) : void
Parameters
- $view : ModuleTemplate
- $pageUid : int
- $activeWorkspace : int
addShortcutButton()
protected
addShortcutButton(ModuleTemplate $view, string $activeWorkspaceTitle, string $pageTitle, int $pageId) : void
Parameters
- $view : ModuleTemplate
- $activeWorkspaceTitle : string
- $pageTitle : string
- $pageId : int
getAvailableSelectStages()
Get stages to be used in the review filter. This basically adds -99 (all stages) and removes the publishing stage (-20).
protected
getAvailableSelectStages(array<string|int, WorkspaceStage> $stages) : array<string|int, mixed>
Parameters
- $stages : array<string|int, WorkspaceStage>
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetStageActions()
Get list of available mass workspace actions.
protected
getStageActions() : array<string|int, mixed>
Return values
array<string|int, mixed>getSystemLanguages()
Gets all available system languages.
protected
getSystemLanguages(int $pageId, string $selectedLanguage) : array<string|int, mixed>
Parameters
- $pageId : int
- $selectedLanguage : string