TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
DatabaseRecordTypeValue Class Reference
Inheritance diagram for DatabaseRecordTypeValue:
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 ( 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
\UnexpectedValueException

Implements FormDataProviderInterface.

Definition at line 37 of file DatabaseRecordTypeValue.php.

References MathUtility\canBeInterpretedAsInteger(), BackendUtility\getRecord(), and DatabaseRecordTypeValue\getValueFromDefaultLanguageRecordIfConfigured().

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 DatabaseRecordTypeValue\addData().