‪TYPO3CMS  10.4
TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration:
TYPO3\CMS\Install\Updates\RowUpdater\RowUpdaterInterface

Public Member Functions

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

Protected Member Functions

 fetchPageId (string $tableName, int $id)
 

Detailed Description

Migrate all records that have "pid=-1" to their proper equivalents. t3_wsid=0 AND pid=-1 —> discarded records or archived records. Since we have no connection to the original anymore, we remove them (hard delete) t3_wsid>0 AND pid=-1 AND t3ver_oid>0 -> find the live version and take the PID from the live version, and replace the PID Since the move pointer (t3ver_state=3) is not affected, as it contains the future live PID, there is no need to touch these records.

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

Definition at line 33 of file WorkspaceVersionRecordsMigration.php.

Member Function Documentation

◆ fetchPageId()

TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration::fetchPageId ( string  $tableName,
int  $id 
)
protected

◆ getTitle()

TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration::getTitle ( )

Get a description of this single row updater

Returns
‪string

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

Definition at line 37 of file WorkspaceVersionRecordsMigration.php.

◆ hasPotentialUpdateForTable()

bool TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration::hasPotentialUpdateForTable ( string  $tableName)
Parameters
string$tableName‪Table name to check
Returns
‪bool Return true if a table has workspace enabled

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

Definition at line 46 of file WorkspaceVersionRecordsMigration.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\isTableWorkspaceEnabled().

◆ updateTableRow()

array TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration::updateTableRow ( string  $tableName,
array  $row 
)

Update "pid" field or delete record completely

Parameters
string$tableName‪Table name
array$row‪Given row data
Returns
‪array Modified row data

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

Definition at line 58 of file WorkspaceVersionRecordsMigration.php.

References $GLOBALS, TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration\fetchPageId(), and TYPO3\CMS\Core\Versioning\VersionState\MOVE_PLACEHOLDER.