TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\Page\LocalizationController Class Reference

Public Member Functions

 __construct ()
 
 getRecordLocalizeSummary (ServerRequestInterface $request, ResponseInterface $response)
 
 getRecordUidsToCopy (ServerRequestInterface $request, ResponseInterface $response)
 
 localizeRecords (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

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

Protected Member Functions

 process ($params)
 
 getDatabaseConnection ()
 

Protected Attributes

 $iconFactory
 
 $localizationRepository
 

Detailed Description

LocalizationController handles the AJAX requests for record localization

Definition at line 29 of file LocalizationController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getDatabaseConnection()

TYPO3\CMS\Backend\Controller\Page\LocalizationController::getDatabaseConnection ( )
protected

◆ getRecordLocalizeSummary()

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

Get a prepared summary of records being translated

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 122 of file LocalizationController.php.

References $GLOBALS, $params, TYPO3\CMS\Backend\Controller\Page\LocalizationController\getDatabaseConnection(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

◆ getRecordUidsToCopy()

TYPO3\CMS\Backend\Controller\Page\LocalizationController::getRecordUidsToCopy ( ServerRequestInterface  $request,
ResponseInterface  $response 
)
Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 151 of file LocalizationController.php.

References $params, and TYPO3\CMS\Backend\Controller\Page\LocalizationController\getDatabaseConnection().

◆ localizeRecords()

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

Definition at line 180 of file LocalizationController.php.

References $params, 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 205 of file LocalizationController.php.

References $params, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

Member Data Documentation

◆ $iconFactory

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

Definition at line 44 of file LocalizationController.php.

◆ $localizationRepository

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

Definition at line 49 of file LocalizationController.php.

◆ ACTION_COPY

◆ ACTION_LOCALIZE