DataMapFactory implements SingletonInterface
A factory for a data map to map a single table configured in $TCA on a domain object.
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.
- resolveTableName() : string
- Resolve the table name for the given class name
Properties
$baseCacheIdentifier
protected
string
$baseCacheIdentifier
$cacheManager
protected
CacheManager
$cacheManager
$configurationManager
protected
ConfigurationManagerInterface
$configurationManager
$dataMapCache
protected
FrontendInterface
$dataMapCache
$dataMaps
Runtime cache for data maps, to reduce number of calls to cache backend.
protected
array<string|int, mixed>
$dataMaps
= []
$reflectionService
protected
ReflectionService
$reflectionService
Methods
__construct()
public
__construct(ReflectionService $reflectionService, ConfigurationManagerInterface $configurationManager, CacheManager $cacheManager, ClassesConfiguration $classesConfiguration, ColumnMapFactory $columnMapFactory, TcaSchemaFactory $tcaSchemaFactory, string $baseCacheIdentifier) : mixed
Parameters
- $reflectionService : ReflectionService
- $configurationManager : ConfigurationManagerInterface
- $cacheManager : CacheManager
- $classesConfiguration : ClassesConfiguration
- $columnMapFactory : ColumnMapFactory
- $tcaSchemaFactory : TcaSchemaFactory
- $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
addMetaDataColumnNames()
protected
addMetaDataColumnNames(DataMap $dataMap, TcaSchema $schema) : DataMap
Parameters
Return values
DataMapbuildDataMapInternal()
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
Return values
DataMap —The data map
resolveTableName()
Resolve the table name for the given class name
protected
resolveTableName(string $className) : string
Parameters
- $className : string
Return values
string —The table name