ReviewController
This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Properties
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $stagesService : StagesService
- $translationConfigurationProvider : TranslationConfigurationProvider
- $uriBuilder : UriBuilder
- $workspaceService : WorkspaceService
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- Renders the review module user dependent with all workspaces.
- addEditWorkspaceRecordButton() : void
- addPreviewLink() : void
- addShortcutButton() : void
- addWorkspaceSelector() : void
- Create the workspace selection drop-down menu.
- customWorkspaceExists() : bool
- Returns true if at least one custom workspace next to live workspace exists.
- getAvailableSelectStages() : array<string|int, mixed>
- Get stages to be used in the review filter. This basically adds -99 (all stages) and removes -20 (publish).
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getModuleUri() : string
- 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
$workspaceService read-only
protected
WorkspaceService
$workspaceService
Methods
__construct()
public
__construct(WorkspaceService $workspaceService, StagesService $stagesService, IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, TranslationConfigurationProvider $translationConfigurationProvider) : mixed
Parameters
- $workspaceService : WorkspaceService
- $stagesService : StagesService
- $iconFactory : IconFactory
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $moduleTemplateFactory : ModuleTemplateFactory
- $translationConfigurationProvider : TranslationConfigurationProvider
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
addWorkspaceSelector()
Create the workspace selection drop-down menu.
protected
addWorkspaceSelector(ModuleTemplate $view, array<string|int, mixed> $availableWorkspaces, int $activeWorkspace, int $pageUid) : void
Parameters
- $view : ModuleTemplate
- $availableWorkspaces : array<string|int, mixed>
- $activeWorkspace : int
- $pageUid : int
customWorkspaceExists()
Returns true if at least one custom workspace next to live workspace exists.
protected
customWorkspaceExists(array<string|int, mixed> $workspaceList) : bool
Parameters
- $workspaceList : array<string|int, mixed>
Return values
boolgetAvailableSelectStages()
Get stages to be used in the review filter. This basically adds -99 (all stages) and removes -20 (publish).
protected
getAvailableSelectStages() : array<string|int, mixed>
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetModuleUri()
protected
getModuleUri(int $pageUid[, int|null $workspaceId = null ]) : string
Parameters
- $pageUid : int
- $workspaceId : int|null = null
Return values
stringgetStageActions()
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