‪TYPO3CMS  9.5
TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater:
TYPO3\CMS\Install\Updates\RowUpdater\RowUpdaterInterface

Public Member Functions

string getTitle ()
 
bool hasPotentialUpdateForTable (string $tableName)
 
array updateTableRow (string $tableName, array $inputRow)
 

Protected Member Functions

array getL10nModePayloadForTable (string $tableName)
 
array getRow (string $tableName, int $id)
 

Protected Attributes

array $payload = array( )
 

Detailed Description

Migrate values for database records having columns using "l10n_mode" set to "mergeIfNotBlank" or "exclude".

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 31 of file L10nModeUpdater.php.

Member Function Documentation

◆ getL10nModePayloadForTable()

array TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater::getL10nModePayloadForTable ( string  $tableName)
protected

Retrieves field names grouped per table name having "l10n_mode" set to a relevant value that shall be migrated in database records.

Resulting array is structured like this:

  • ‪fields: [field a, field b, ...]
  • ‪sources
    • ‪source uid: [localization uid, localization uid, ...]
Parameters
string$tableName‪Table name
Returns
‪array Payload information for this table
Exceptions

Definition at line 183 of file L10nModeUpdater.php.

References $GLOBALS, TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater\$payload, TYPO3\CMS\Core\Versioning\VersionState\DEFAULT_STATE, TYPO3\CMS\Core\Versioning\VersionState\MOVE_POINTER, and TYPO3\CMS\Core\Versioning\VersionState\NEW_PLACEHOLDER_VERSION.

Referenced by TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater\hasPotentialUpdateForTable().

◆ getRow()

array TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater::getRow ( string  $tableName,
int  $id 
)
protected
Parameters
string$tableName
int$id
Returns
‪array

Definition at line 294 of file L10nModeUpdater.php.

Referenced by TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater\updateTableRow().

◆ getTitle()

string TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater::getTitle ( )

Get title

Returns
‪string

Implements TYPO3\CMS\Install\Updates\RowUpdater\RowUpdaterInterface.

Definition at line 45 of file L10nModeUpdater.php.

◆ hasPotentialUpdateForTable()

bool TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater::hasPotentialUpdateForTable ( string  $tableName)

Return true if a table needs modifications.

Parameters
string$tableName‪Table name to check
Returns
‪bool True if this table has fields to migrate

Implements TYPO3\CMS\Install\Updates\RowUpdater\RowUpdaterInterface.

Definition at line 57 of file L10nModeUpdater.php.

References TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater\getL10nModePayloadForTable().

◆ updateTableRow()

Member Data Documentation

◆ $payload

array TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater::$payload = array( )
protected

List of tables with information about to migrate fields. Created during hasPotentialUpdateForTable(), used in updateTableRow()

Definition at line 38 of file L10nModeUpdater.php.

Referenced by TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater\getL10nModePayloadForTable().