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

 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.

Returns
‪array
Exceptions

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 37 of file DatabaseRecordTypeValue.php.

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

◆ getDatabaseRow()

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

Retrieve the requested row from the database

Definition at line 143 of file DatabaseRecordTypeValue.php.

References TYPO3\CMS\Webhooks\Message\$uid.

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