‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceMovePlaceholderRemovalMigration Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceMovePlaceholderRemovalMigration:
TYPO3\CMS\Install\Updates\RowUpdater\RowUpdaterInterface

Public Member Functions

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

Detailed Description

Removes all records of type MOVE_PLACEHOLDER (t3ver_state = 3) from the system. Also makes sure that the important values (that is: pid and sorting) are migrated into the connected MOVE_POINTER (t3ver_state=4).

move placeholder (t3ver_state=3) contains t3ver_move_id = UID of live version move pointer (t3ver_state=4) contains t3ver_oid = UID of live version

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

Definition at line 37 of file WorkspaceMovePlaceholderRemovalMigration.php.

Member Function Documentation

◆ getTitle()

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

Get a description of this single row updater

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

Definition at line 41 of file WorkspaceMovePlaceholderRemovalMigration.php.

◆ hasPotentialUpdateForTable()

bool TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceMovePlaceholderRemovalMigration::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 50 of file WorkspaceMovePlaceholderRemovalMigration.php.

◆ updateTableRow()

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

Update "pid" field and delete the move placeholder 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 62 of file WorkspaceMovePlaceholderRemovalMigration.php.

References $GLOBALS, and TYPO3\CMS\Core\Versioning\VersionState\MOVE_POINTER.