‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Controller\Page\LocalizationController Class Reference

Public Member Functions

 __construct ()
 
ResponseInterface getUsedLanguagesInPage (ServerRequestInterface $request)
 
ResponseInterface getRecordLocalizeSummary (ServerRequestInterface $request)
 
ResponseInterface localizeRecords (ServerRequestInterface $request)
 

Public Attributes

const ACTION_COPY = 'copyFromLanguage'
 
const ACTION_LOCALIZE = 'localize'
 

Protected Member Functions

array filterInvalidUids (int $pageId, int $destLanguageId, int $srcLanguageId, array $transmittedUidList)
 
 process ($params)
 
array getPageColumns (int $pageId, array $flatRecords, array $params)
 

Protected Attributes

IconFactory $iconFactory
 
LocalizationRepository $localizationRepository
 
EventDispatcherInterface $eventDispatcher
 

Detailed Description

LocalizationController handles the AJAX requests for record localization

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

Definition at line 41 of file LocalizationController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Page\LocalizationController::__construct ( )

Constructor

Definition at line 68 of file LocalizationController.php.

Member Function Documentation

◆ filterInvalidUids()

array TYPO3\CMS\Backend\Controller\Page\LocalizationController::filterInvalidUids ( int  $pageId,
int  $destLanguageId,
int  $srcLanguageId,
array  $transmittedUidList 
)
protected

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

Parameters
int$pageId
int$destLanguageId
int$srcLanguageId
array$transmittedUidList
Returns
‪array

Definition at line 219 of file LocalizationController.php.

Referenced by TYPO3\CMS\Backend\Controller\Page\LocalizationController\localizeRecords().

◆ getPageColumns()

array TYPO3\CMS\Backend\Controller\Page\LocalizationController::getPageColumns ( int  $pageId,
array  $flatRecords,
array  $params 
)
protected
Parameters
int$pageId
array$flatRecords
array$params
Returns
‪array

Definition at line 275 of file LocalizationController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\Page\LocalizationController\getRecordLocalizeSummary().

◆ getRecordLocalizeSummary()

ResponseInterface TYPO3\CMS\Backend\Controller\Page\LocalizationController::getRecordLocalizeSummary ( ServerRequestInterface  $request)

◆ getUsedLanguagesInPage()

ResponseInterface TYPO3\CMS\Backend\Controller\Page\LocalizationController::getUsedLanguagesInPage ( ServerRequestInterface  $request)

Get used languages in a page

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 81 of file LocalizationController.php.

References TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

◆ localizeRecords()

ResponseInterface TYPO3\CMS\Backend\Controller\Page\LocalizationController::localizeRecords ( ServerRequestInterface  $request)
Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 183 of file LocalizationController.php.

References TYPO3\CMS\Backend\Controller\Page\LocalizationController\filterInvalidUids(), and TYPO3\CMS\Backend\Controller\Page\LocalizationController\process().

◆ process()

TYPO3\CMS\Backend\Controller\Page\LocalizationController::process (   $params)
protected

Processes the localization actions

Parameters
array$params

Definition at line 241 of file LocalizationController.php.

Referenced by TYPO3\CMS\Backend\Controller\Page\LocalizationController\localizeRecords().

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Backend\Controller\Page\LocalizationController::$eventDispatcher
protected

Definition at line 63 of file LocalizationController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\Controller\Page\LocalizationController::$iconFactory
protected

Definition at line 55 of file LocalizationController.php.

◆ $localizationRepository

LocalizationRepository TYPO3\CMS\Backend\Controller\Page\LocalizationController::$localizationRepository
protected

Definition at line 59 of file LocalizationController.php.

◆ ACTION_COPY

◆ ACTION_LOCALIZE