‪TYPO3CMS  10.4
TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver Class Reference

Public Member Functions

 __construct (string $tableName, array $tableConfiguration)
 
string[] forNewPlaceholder (int $flags=null)
 
string[] forMovePlaceholder (int $flags=null)
 

Protected Member Functions

 forTable (string $shadowColumnsList, int $flags=null)
 

Protected Attributes

const CONTROL_COLUMNS
 
const FLAG_NONE = 0
 
const FLAG_APPLY_SYSTEM_COLUMNS = 1
 
const FLAG_APPLY_SLUG_COLUMNS = 2
 
string $tableName
 
array $tableConfiguration
 
int null $flags
 

Detailed Description

Resolver for placeholder shadow columns to be used in workspace aware environments.

Certain fields need to be "shadowed" - NEW and MOVE placeholder need to have values kept in sync that are modified, like the "hidden" field (enable fields, slug fields etc).

This class resolves the columns for a TCA table record that should be kept in sync.

See also
‪\TYPO3\CMS\Core\DataHandling\DataHandler::placeholderShadowing()
‪\TYPO3\CMS\Workspaces\Hook\DataHandlerHook::moveRecord_wsPlaceholders()

Definition at line 34 of file PlaceholderShadowColumnsResolver.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::__construct ( string  $tableName,
array  $tableConfiguration 
)
Parameters
string$tableName‪Name of the database table
array$tableConfiguration‪TCA configuration for $tableName
Exceptions
Exception

Definition at line 65 of file PlaceholderShadowColumnsResolver.php.

References TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\$tableConfiguration, and TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\$tableName.

Member Function Documentation

◆ forMovePlaceholder()

string [] TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::forMovePlaceholder ( int  $flags = null)
Parameters
int | null$flags‪Custom flags to adjust resolving behavior
Returns
‪string[] Placeholder shadow column names

Definition at line 90 of file PlaceholderShadowColumnsResolver.php.

References TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\$flags, and TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\forTable().

◆ forNewPlaceholder()

string [] TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::forNewPlaceholder ( int  $flags = null)
Parameters
int | null$flags‪Custom flags to adjust resolving behavior
Returns
‪string[] Placeholder shadow column names

Definition at line 79 of file PlaceholderShadowColumnsResolver.php.

References TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\$flags, TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\FLAG_APPLY_SLUG_COLUMNS, and TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver\forTable().

◆ forTable()

Member Data Documentation

◆ $flags

◆ $tableConfiguration

array TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::$tableConfiguration
protected

◆ $tableName

string TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::$tableName
protected

◆ CONTROL_COLUMNS

const TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::CONTROL_COLUMNS
protected
Initial value:
= [
'languageField',
'transOrigPointerField',
'translationSource',
'type',
'label'
]

Definition at line 36 of file PlaceholderShadowColumnsResolver.php.

◆ FLAG_APPLY_SLUG_COLUMNS

const TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::FLAG_APPLY_SLUG_COLUMNS = 2
protected

◆ FLAG_APPLY_SYSTEM_COLUMNS

const TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::FLAG_APPLY_SYSTEM_COLUMNS = 1
protected

Definition at line 45 of file PlaceholderShadowColumnsResolver.php.

◆ FLAG_NONE

const TYPO3\CMS\Core\DataHandling\PlaceholderShadowColumnsResolver::FLAG_NONE = 0
protected