‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

array addData (array $result)
 

Protected Member Functions

array overrideTypes (array $result)
 
array overrideColumns (array $result)
 
array generateFieldBlackList (array $result)
 

Protected Attributes

array $notSettableFields
 
array $configurationKeysForNotSettableFields
 

Detailed Description

Override child TCA in an inline parent child relation.

This basically merges the inline property ['overrideChildTca'] from parent TCA over given child TCA.

Definition at line 28 of file InlineOverrideChildTca.php.

Member Function Documentation

◆ addData()

array TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca::addData ( array  $result)

Inline parent TCA may override some TCA of children.

Parameters
array$result‪Main result array
Returns
‪array Modified result array

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 65 of file InlineOverrideChildTca.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\overrideColumns(), and TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\overrideTypes().

◆ generateFieldBlackList()

array TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca::generateFieldBlackList ( array  $result)
protected

Add field names defined in ctrl section of child table to black list

Parameters
array$result‪Main result array
Returns
‪array Column field names which can not be changed by parent TCA

Definition at line 125 of file InlineOverrideChildTca.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\$notSettableFields.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\overrideColumns().

◆ overrideColumns()

array TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca::overrideColumns ( array  $result)
protected

Override ['columns'] configuration in child TCA. Sanitizes that various hard dependencies can not be changed.

Parameters
array$result‪Main result array
Returns
‪array Modified result array
Exceptions

Definition at line 97 of file InlineOverrideChildTca.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\generateFieldBlackList().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\addData().

◆ overrideTypes()

array TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca::overrideTypes ( array  $result)
protected

Override ['types'] configuration in child TCA

Parameters
array$result‪Main result array
Returns
‪array Modified result array

Definition at line 77 of file InlineOverrideChildTca.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\addData().

Member Data Documentation

◆ $configurationKeysForNotSettableFields

array TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca::$configurationKeysForNotSettableFields
protected
Initial value:
= array(
'crdate',
'delete',
'origUid',
'transOrigDiffSourceField',
'transOrigPointerField',
'tstamp',
)

Configuration fields in ctrl section. Their values are field names and if the keys are set in ['ctrl'] section, they are added to the $notSettableFields list and can not be overridden, too.

Definition at line 50 of file InlineOverrideChildTca.php.

◆ $notSettableFields

array TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca::$notSettableFields
protected
Initial value:
= array(
'uid',
'pid',
't3ver_oid',
't3ver_wsid',
't3ver_state',
't3ver_stage',
)

['columns'] section child TCA field names that can not be overridden by overrideChildTca from parent.

Definition at line 35 of file InlineOverrideChildTca.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\InlineOverrideChildTca\generateFieldBlackList().