LocalizationController

LocalizationController handles the AJAX requests for record localization

Internal

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

Table of Contents

Constants

ACTION_COPY  = 'copyFromLanguage'
ACTION_LOCALIZE  = 'localize'

Properties

$eventDispatcher  : EventDispatcherInterface
$iconFactory  : IconFactory
$localizationRepository  : LocalizationRepository

Methods

__construct()  : mixed
Constructor
getRecordLocalizeSummary()  : ResponseInterface
Get a prepared summary of records being translated
getUsedLanguagesInPage()  : ResponseInterface
Get used languages in a page
localizeRecords()  : ResponseInterface
filterInvalidUids()  : array<string|int, mixed>
Gets all possible UIDs of a page, colPos and language that might be processed and removes invalid UIDs that might be smuggled in.
getPageColumns()  : array<string|int, mixed>
process()  : void
Processes the localization actions

Constants

ACTION_COPY

public string ACTION_COPY = 'copyFromLanguage'

ACTION_LOCALIZE

public string ACTION_LOCALIZE = 'localize'

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

Methods

__construct()

Constructor

public __construct() : mixed

getRecordLocalizeSummary()

Get a prepared summary of records being translated

public getRecordLocalizeSummary(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getUsedLanguagesInPage()

Get used languages in a page

public getUsedLanguagesInPage(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

localizeRecords()

public localizeRecords(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

filterInvalidUids()

Gets all possible UIDs of a page, colPos and language that might be processed and removes invalid UIDs that might be smuggled in.

protected filterInvalidUids(int $pageId, int $destLanguageId, int $srcLanguageId, array<string|int, mixed> $transmittedUidList) : array<string|int, mixed>
Parameters
$pageId : int
$destLanguageId : int
$srcLanguageId : int
$transmittedUidList : array<string|int, mixed>
Return values
array<string|int, mixed>

getPageColumns()

protected getPageColumns(int $pageId, array<string|int, mixed> $flatRecords, array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$pageId : int
$flatRecords : array<string|int, mixed>
$params : array<string|int, mixed>
Return values
array<string|int, mixed>

process()

Processes the localization actions

protected process(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>

        
On this page

Search results