‪TYPO3CMS  10.4
TYPO3\CMS\Core\Preparations\TcaPreparation Class Reference

Public Member Functions

array prepare (array $tca)
 

Protected Member Functions

array prepareQuotingOfTableNamesAndColumnNames (array $tca)
 

Detailed Description

Prepare TCA. Used in bootstrap and Flex Form Data Structures.

Class and API may change any time.

Definition at line 29 of file TcaPreparation.php.

Member Function Documentation

◆ prepare()

array TYPO3\CMS\Core\Preparations\TcaPreparation::prepare ( array  $tca)

Prepare TCA

This class is typically called within bootstrap with empty caches after all TCA files from extensions have been loaded. The preparation is then applied and the prepared result is cached. For flex form TCA, this class is called dynamically if opening a record in the backend.

See unit tests for details.

Parameters
array$tca
Returns
‪array

Definition at line 45 of file TcaPreparation.php.

References $tca, and TYPO3\CMS\Core\Preparations\TcaPreparation\prepareQuotingOfTableNamesAndColumnNames().

◆ prepareQuotingOfTableNamesAndColumnNames()

array TYPO3\CMS\Core\Preparations\TcaPreparation::prepareQuotingOfTableNamesAndColumnNames ( array  $tca)
protected

Quote all table and field names in definitions known to possibly have quoted identifiers like '{#tablename}.{#columnname}='

Parameters
array$tca‪Incoming TCA
Returns
‪array Prepared TCA

Definition at line 57 of file TcaPreparation.php.

References $tca, and TYPO3\CMS\Core\Database\Query\QueryHelper\quoteDatabaseIdentifiers().

Referenced by TYPO3\CMS\Core\Preparations\TcaPreparation\prepare().