LocalizationController

class \TYPO3\CMS\Backend\Controller\Page\LocalizationController

LocalizationController handles the AJAX requests for record localization

Table of Contents

Constants

ACTION_COPY  : string = 'copyFromLanguage'
ACTION_LOCALIZE  : string = '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
Gets all possible UIDs of a page, colPos and language that might be processed and removes invalid UIDs that might be smuggled in.
getBackendUser()  : BackendUserAuthentication
getPageColumns()  : array
hasPageAccess()  : bool
Whether the current backend user may see the page the records to localize live on.
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 $transmittedUidList) : array

Parameters

$pageId : int
$destLanguageId : int
$srcLanguageId : int
$transmittedUidList : array

Return values

array

hasPageAccess()

Whether the current backend user may see the page the records to localize live on.

protected hasPageAccess(int $pageId) : bool

For localizeRecords() this is a second barrier only, DataHandler remains the authority for the write itself.

Parameters

$pageId : int

Return values

bool

process()

Processes the localization actions

protected process(array $params) : void

Parameters

$params : array
On this page