‪TYPO3CMS  10.4
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

array addData (array $result)
 

Protected Member Functions

array getDatabaseRow (string $tableName, int $uid, string $fieldName)
 

Detailed Description

Determine the final TCA type value

Definition at line 25 of file DatabaseRecordTypeValue.php.

Member Function Documentation

◆ addData()

array 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 38 of file DatabaseRecordTypeValue.php.

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

◆ getDatabaseRow()

array TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRecordTypeValue::getDatabaseRow ( string  $tableName,
int  $uid,
string  $fieldName 
)
protected

Retrieve the requested row from the database

Parameters
string$tableName
int$uid
string$fieldName
Returns
‪array

Definition at line 149 of file DatabaseRecordTypeValue.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

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