TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRecordTypeValue Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRecordTypeValue:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 addData (array $result)
 

Protected Member Functions

 getValueFromDefaultLanguageRecordIfConfigured ($result, $field)
 

Detailed Description

Determine the final TCA type value

Definition at line 24 of file DatabaseRecordTypeValue.php.

Member Function Documentation

◆ addData()

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

TCA type value depends on several parameters. The simple case is a direct lookup in the database row, which then just needs handling in case the row is a localization overlay. More complex is the field:field syntax that can look up the actual value in a different table.

Parameters
array$result
Returns
array
Exceptions

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 37 of file DatabaseRecordTypeValue.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), and TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRecordTypeValue\getValueFromDefaultLanguageRecordIfConfigured().

◆ getValueFromDefaultLanguageRecordIfConfigured()

TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRecordTypeValue::getValueFromDefaultLanguageRecordIfConfigured (   $result,
  $field 
)
protected

If a localized row is handled, the field value of the default language record is used instead if tca is configured as "exclude" or "mergeIfNotBlank" with empty localized value.

Parameters
array$resultMain "$result" data array
string$fieldField name to fetch value for
Returns
string field value

Definition at line 145 of file DatabaseRecordTypeValue.php.

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