DataMapFactory implements SingletonInterface

A factory for a data map to map a single table configured in $TCA on a domain object.

Internal

only to be used within Extbase, not part of TYPO3 Core API.

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$baseCacheIdentifier  : string
$cacheManager  : CacheManager
$configurationManager  : ConfigurationManagerInterface
$dataMapCache  : FrontendInterface
$dataMaps  : array<string|int, mixed>
Runtime cache for data maps, to reduce number of calls to cache backend.
$reflectionService  : ReflectionService

Methods

__construct()  : mixed
buildDataMap()  : DataMap
Builds a data map by adding column maps for all the configured columns in the $TCA.
addMetaDataColumnNames()  : DataMap
buildDataMapInternal()  : DataMap
Builds a data map by adding column maps for all the configured columns in the $TCA.
getColumnsDefinition()  : array<string|int, mixed>
Returns the TCA columns array of the specified table
resolveTableName()  : string
Resolve the table name for the given class name

Properties

$baseCacheIdentifier

protected string $baseCacheIdentifier

$dataMaps

Runtime cache for data maps, to reduce number of calls to cache backend.

protected array<string|int, mixed> $dataMaps = []

Methods

__construct()

public __construct(ReflectionService $reflectionService, ConfigurationManagerInterface $configurationManager, CacheManager $cacheManager, ClassesConfiguration $classesConfiguration, ColumnMapFactory $columnMapFactory, string $baseCacheIdentifier) : mixed
Parameters
$reflectionService : ReflectionService
$configurationManager : ConfigurationManagerInterface
$cacheManager : CacheManager
$classesConfiguration : ClassesConfiguration
$columnMapFactory : ColumnMapFactory
$baseCacheIdentifier : string

buildDataMap()

Builds a data map by adding column maps for all the configured columns in the $TCA.

public buildDataMap(string $className) : DataMap

It also resolves the type of values the column is holding and the typo of relation the column represents.

Parameters
$className : string

The class name you want to fetch the Data Map for

Return values
DataMap

The data map

buildDataMapInternal()

Builds a data map by adding column maps for all the configured columns in the $TCA.

protected buildDataMapInternal(string $className) : DataMap

It also resolves the type of values the column is holding and the typo of relation the column represents.

Parameters
$className : string

The class name you want to fetch the Data Map for

Tags
throws
InvalidClassException
Return values
DataMap

The data map

getColumnsDefinition()

Returns the TCA columns array of the specified table

protected getColumnsDefinition(string $tableName) : array<string|int, mixed>
Parameters
$tableName : string

An optional table name to fetch the columns definition from

Return values
array<string|int, mixed>

The TCA columns definition

resolveTableName()

Resolve the table name for the given class name

protected resolveTableName(string $className) : string
Parameters
$className : string
Return values
string

The table name


        
On this page

Search results