TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LocalizationController Class Reference

Public Member Functions

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

Protected Member Functions

 getRecordsToCopyDatabaseResult ($pageId, $colPos, $languageId, $fields= '*')
 
 getBackendUser ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $iconFactory
 

Detailed Description

LocalizationController handles the AJAX requests for record localization

Definition at line 29 of file LocalizationController.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 39 of file LocalizationController.php.

References GeneralUtility\makeInstance().

Member Function Documentation

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 286 of file LocalizationController.php.

References $GLOBALS.

getDatabaseConnection ( )
protected
getRecordLocalizeSummary ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Get a prepared summary of records being translated

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 133 of file LocalizationController.php.

References $GLOBALS, $response, MessageInterface\getBody(), LocalizationController\getDatabaseConnection(), ServerRequestInterface\getQueryParams(), LocalizationController\getRecordsToCopyDatabaseResult(), Icon\SIZE_SMALL, and ResponseInterface\withStatus().

getRecordsToCopyDatabaseResult (   $pageId,
  $colPos,
  $languageId,
  $fields = '*' 
)
protected

Get records for copy process

Parameters
int$pageId
int$colPos
int$languageId
string$fields
Returns
bool||object

Definition at line 266 of file LocalizationController.php.

References BackendUtility\deleteClause(), LocalizationController\getDatabaseConnection(), and BackendUtility\versioningPlaceholderClause().

Referenced by LocalizationController\getRecordLocalizeSummary(), and LocalizationController\getRecordUidsToCopy().

getRecordUidsToCopy ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Member Data Documentation

$iconFactory
protected

Definition at line 34 of file LocalizationController.php.