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

Public Member Functions

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

Public Attributes

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

Protected Member Functions

 filterInvalidUids (int $pageId, int $destLanguageId, int $srcLanguageId, array $transmittedUidList)
 
 process ($params)
 
 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 42 of file LocalizationController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Definition at line 69 of file LocalizationController.php.

Member Function Documentation

◆ filterInvalidUids()

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.

Definition at line 211 of file LocalizationController.php.

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

◆ getPageColumns()

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

◆ getRecordLocalizeSummary()

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

Get a prepared summary of records being translated

Definition at line 134 of file LocalizationController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\Page\LocalizationController\getPageColumns(), and TYPO3\CMS\Frontend\Content\tryFrom.

◆ getUsedLanguagesInPage()

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

Get used languages in a page

Definition at line 79 of file LocalizationController.php.

◆ localizeRecords()

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

◆ process()

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

Processes the localization actions

Parameters
array$params

Definition at line 233 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 64 of file LocalizationController.php.

◆ $iconFactory

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

Definition at line 56 of file LocalizationController.php.

◆ $localizationRepository

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

Definition at line 60 of file LocalizationController.php.

◆ ACTION_COPY

◆ ACTION_LOCALIZE