ReviewController

class \TYPO3\CMS\Workspaces\Controller\ReviewController

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
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
Get list of available mass workspace actions.
getSystemLanguages()  : array
Gets all available system languages.

Properties

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

ResponseInterface

addEditWorkspaceRecordButton()

protected addEditWorkspaceRecordButton(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 $availableWorkspaces, int $activeWorkspace, int $pageUid) : void

Parameters

$view : ModuleTemplate
$availableWorkspaces : array
$activeWorkspace : int
$pageUid : int

customWorkspaceExists()

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

protected customWorkspaceExists(array $workspaceList) : bool

Parameters

$workspaceList : array

Return values

bool

getAvailableSelectStages()

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

protected getAvailableSelectStages() : array

Return values

array

getModuleUri()

protected getModuleUri(int $pageUid[, int|null $workspaceId = null ]) : string

Parameters

$pageUid : int
$workspaceId : int|null = null

Return values

string

getStageActions()

Get list of available mass workspace actions.

protected getStageActions() : array

Return values

array

getSystemLanguages()

Gets all available system languages.

protected getSystemLanguages(int $pageId, string $selectedLanguage) : array

Parameters

$pageId : int
$selectedLanguage : string

Return values

array
On this page