TYPO3
7.6
|
Public Member Functions | |
injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService) | |
injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager) | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) | |
injectCacheManager (\TYPO3\CMS\Core\Cache\CacheManager $cacheManager) | |
initializeObject () | |
buildDataMap ($className) | |
Protected Member Functions | |
resolveTableName ($className) | |
resolveSubclassesRecursive (array $classesConfiguration, array $subclasses) | |
getControlSection ($tableName) | |
getColumnsDefinition ($tableName) | |
addMetaDataColumnNames (\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap $dataMap, $tableName) | |
setType (ColumnMap $columnMap, $columnConfiguration) | |
setRelations (ColumnMap $columnMap, $columnConfiguration, $propertyMetaData) | |
setFieldEvaluations (ColumnMap $columnMap, array $columnConfiguration=null) | |
setOneToOneRelation (ColumnMap $columnMap, $columnConfiguration) | |
setOneToManyRelation (ColumnMap $columnMap, $columnConfiguration) | |
setManyToManyRelation (ColumnMap $columnMap, $columnConfiguration) | |
createColumnMap ($columnName, $propertyName) | |
Protected Attributes | |
$reflectionService | |
$configurationManager | |
$objectManager | |
$cacheManager | |
$dataMapCache | |
A factory for a data map to map a single table configured in $TCA on a domain object.
Definition at line 20 of file DataMapFactory.php.
|
protected |
DataMap | $dataMap | |
string | $tableName |
Definition at line 248 of file DataMapFactory.php.
References $GLOBALS.
buildDataMap | ( | $className | ) |
Builds a data map by adding column maps for all the configured columns in the $TCA. It also resolves the type of values the column is holding and the typo of relation the column represents.
string | $className | The class name you want to fetch the Data Map for |
Definition at line 97 of file DataMapFactory.php.
|
protected |
Creates the ColumnMap object for the given columnName and propertyName
string | $columnName | |
string | $propertyName |
Definition at line 457 of file DataMapFactory.php.
|
protected |
Returns the TCA columns array of the specified table
string | $tableName | An optional table name to fetch the columns definition from |
Definition at line 238 of file DataMapFactory.php.
References $GLOBALS.
|
protected |
Returns the TCA ctrl section of the specified table; or NULL if not set
string | $tableName | An optional table name to fetch the columns definition from |
Definition at line 227 of file DataMapFactory.php.
References $GLOBALS.
Referenced by DataMapFactory\setManyToManyRelation().
initializeObject | ( | ) |
injectCacheManager | ( | \TYPO3\CMS\Core\Cache\CacheManager | $cacheManager | ) |
\TYPO3\CMS\Core\Cache\CacheManager | $cacheManager |
Definition at line 74 of file DataMapFactory.php.
References DataMapFactory\$cacheManager.
injectConfigurationManager | ( | \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | $configurationManager | ) |
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | $configurationManager |
Definition at line 58 of file DataMapFactory.php.
References DataMapFactory\$configurationManager.
injectObjectManager | ( | \TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager | ) |
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager |
Definition at line 66 of file DataMapFactory.php.
References DataMapFactory\$objectManager.
injectReflectionService | ( | \TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService | ) |
\TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService |
Definition at line 50 of file DataMapFactory.php.
References DataMapFactory\$reflectionService.
|
protected |
Resolves all subclasses for the given set of (sub-)classes. The whole classes configuration is used to determine all subclasses recursively.
array | $classesConfiguration | The framework configuration part [persistence][classes]. |
array | $subclasses | An array of subclasses defined via TypoScript |
Definition at line 208 of file DataMapFactory.php.
|
protected |
Resolve the table name for the given class name
string | $className |
Definition at line 182 of file DataMapFactory.php.
|
protected |
Sets field evaluations based on $TCA column configuration.
ColumnMap | $columnMap | The column map |
NULL | array | $columnConfiguration | The column configuration from $TCA |
Definition at line 350 of file DataMapFactory.php.
References ColumnMap\setDateTimeStorageFormat().
|
protected |
This method sets the configuration for a m:n relation based on the $TCA column configuration
string | ColumnMap | $columnMap | The column map |
string | $columnConfiguration | The column configuration from $TCA |
\TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnsupportedRelationException |
Definition at line 417 of file DataMapFactory.php.
References DataMapFactory\getControlSection(), ColumnMap\getRelationTableName(), ColumnMap\RELATION_HAS_AND_BELONGS_TO_MANY, ColumnMap\setChildKeyFieldName(), ColumnMap\setChildSortByFieldName(), ColumnMap\setChildTableName(), ColumnMap\setChildTableWhereStatement(), ColumnMap\setParentKeyFieldName(), ColumnMap\setRelationTableInsertFields(), ColumnMap\setRelationTableMatchFields(), ColumnMap\setRelationTableName(), ColumnMap\setRelationTablePageIdColumnName(), ColumnMap\setRelationTableWhereStatement(), and ColumnMap\setTypeOfRelation().
Referenced by DataMapFactory\setRelations().
|
protected |
This method sets the configuration for a 1:n relation based on the $TCA column configuration
string | ColumnMap | $columnMap | The column map |
string | $columnConfiguration | The column configuration from $TCA |
Definition at line 394 of file DataMapFactory.php.
References ColumnMap\RELATION_HAS_MANY, ColumnMap\setChildSortByFieldName(), ColumnMap\setChildTableName(), ColumnMap\setChildTableWhereStatement(), ColumnMap\setParentKeyFieldName(), ColumnMap\setParentTableFieldName(), ColumnMap\setRelationTableMatchFields(), and ColumnMap\setTypeOfRelation().
Referenced by DataMapFactory\setRelations().
|
protected |
This method sets the configuration for a 1:1 relation based on the $TCA column configuration
string | ColumnMap | $columnMap | The column map |
string | $columnConfiguration | The column configuration from $TCA |
Definition at line 372 of file DataMapFactory.php.
References ColumnMap\RELATION_HAS_ONE, ColumnMap\setChildSortByFieldName(), ColumnMap\setChildTableName(), ColumnMap\setChildTableWhereStatement(), ColumnMap\setParentKeyFieldName(), ColumnMap\setParentTableFieldName(), ColumnMap\setRelationTableMatchFields(), and ColumnMap\setTypeOfRelation().
Referenced by DataMapFactory\setRelations().
|
protected |
This method tries to determine the type of type of relation to other tables and sets it based on the $TCA column configuration
ColumnMap | $columnMap | The column map |
string | $columnConfiguration | The column configuration from $TCA |
array | $propertyMetaData | The property metadata as delivered by the reflection service |
Definition at line 323 of file DataMapFactory.php.
References elseif, ColumnMap\RELATION_HAS_MANY, ColumnMap\RELATION_NONE, DataMapFactory\setManyToManyRelation(), DataMapFactory\setOneToManyRelation(), DataMapFactory\setOneToOneRelation(), and ColumnMap\setTypeOfRelation().
|
protected |
Set the table column type
ColumnMap | $columnMap | |
array | $columnConfiguration |
Definition at line 304 of file DataMapFactory.php.
References ColumnMap\setInternalType(), and ColumnMap\setType().
|
protected |
Definition at line 40 of file DataMapFactory.php.
Referenced by DataMapFactory\injectCacheManager().
|
protected |
Definition at line 30 of file DataMapFactory.php.
Referenced by DataMapFactory\injectConfigurationManager().
|
protected |
Definition at line 45 of file DataMapFactory.php.
|
protected |
Definition at line 35 of file DataMapFactory.php.
Referenced by DataMapFactory\injectObjectManager().
|
protected |
Definition at line 25 of file DataMapFactory.php.
Referenced by DataMapFactory\injectReflectionService().