‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap Class Reference

Public Types

enum  Relation { HAS_AND_BELONGS_TO_MANY }
 

Public Member Functions

 __construct (string $columnName)
 
 setTypeOfRelation (ColumnMap\Relation $typeOfRelation)
 
 getTypeOfRelation ()
 
 getColumnName ()
 
 setChildTableName (?string $childTableName)
 
 getChildTableName ()
 
 setChildTableDefaultSortings (?string $childTableDefaultSortings)
 
 getChildTableDefaultSortings ()
 
 setChildSortByFieldName (?string $childSortByFieldName)
 
 getChildSortByFieldName ()
 
 setRelationTableName (?string $relationTableName)
 
 getRelationTableName ()
 
 setRelationTableMatchFields (?array $relationTableMatchFields)
 
 getRelationTableMatchFields ()
 
 setParentKeyFieldName (?string $parentKeyFieldName)
 
 getParentKeyFieldName ()
 
 setParentTableFieldName (?string $parentTableFieldName)
 
 getParentTableFieldName ()
 
 setChildKeyFieldName (string $childKeyFieldName)
 
 getChildKeyFieldName ()
 
 setDateTimeStorageFormat (?string $dateTimeStorageFormat)
 
 getDateTimeStorageFormat ()
 
 setType (TableColumnType $type)
 
 getType ()
 

Private Attributes

string $columnName
 
ColumnMap Relation $typeOfRelation = ColumnMap\Relation::NONE
 
string null $childTableName
 
string $childTableDefaultSortings = null
 
string null $childSortByFieldName
 
string null $relationTableName
 
array null $relationTableMatchFields
 
string null $parentKeyFieldName
 
string null $parentTableFieldName
 
string null $childKeyFieldName
 
string null $dateTimeStorageFormat
 
TableColumnType $type = TableColumnType::INPUT
 

Detailed Description

A column map to map a column configured in $TCA on a property of a domain object.

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

Definition at line 26 of file ColumnMap.php.

Member Enumeration Documentation

◆ Relation

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

Enumerator
HAS_AND_BELONGS_TO_MANY 

Definition at line 23 of file Relation.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::__construct ( string  $columnName)

Constructs a Column Map

Parameters
string$columnName‪The column name

Definition at line 116 of file ColumnMap.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$columnName.

Member Function Documentation

◆ getChildKeyFieldName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getChildKeyFieldName ( )

◆ getChildSortByFieldName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getChildSortByFieldName ( )

◆ getChildTableDefaultSortings()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getChildTableDefaultSortings ( )

◆ getChildTableName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getChildTableName ( )

◆ getColumnName()

◆ getDateTimeStorageFormat()

◆ getParentKeyFieldName()

◆ getParentTableFieldName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getParentTableFieldName ( )

◆ getRelationTableMatchFields()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getRelationTableMatchFields ( )

◆ getRelationTableName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getRelationTableName ( )

◆ getType()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::getType ( )

◆ getTypeOfRelation()

◆ setChildKeyFieldName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::setChildKeyFieldName ( string  $childKeyFieldName)

◆ setChildSortByFieldName()

◆ setChildTableDefaultSortings()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::setChildTableDefaultSortings ( ?string  $childTableDefaultSortings)

◆ setChildTableName()

◆ setDateTimeStorageFormat()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::setDateTimeStorageFormat ( ?string  $dateTimeStorageFormat)

◆ setParentKeyFieldName()

◆ setParentTableFieldName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::setParentTableFieldName ( ?string  $parentTableFieldName)

◆ setRelationTableMatchFields()

◆ setRelationTableName()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::setRelationTableName ( ?string  $relationTableName)

◆ setType()

TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::setType ( TableColumnType  $type)

◆ setTypeOfRelation()

Member Data Documentation

◆ $childKeyFieldName

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$childKeyFieldName
private

todo: Check if this property should support null. If not, set default value. The name of the field holding the children key

Definition at line 97 of file ColumnMap.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildKeyFieldName(), and TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildKeyFieldName().

◆ $childSortByFieldName

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$childSortByFieldName
private

todo: Check if this property should support null. If not, set default value. The name of the field the results from the child's table are sorted by

See also
https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Inline/Properties/ForeignSortby.html

Definition at line 57 of file ColumnMap.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildSortByFieldName(), and TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildSortByFieldName().

◆ $childTableDefaultSortings

string TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$childTableDefaultSortings = null
private

◆ $childTableName

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$childTableName
private

◆ $columnName

string TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$columnName
private

◆ $dateTimeStorageFormat

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$dateTimeStorageFormat
private

todo: Check if this property should support null. If not, set default value. Alternative format for storing DataTime formats (instead of using unix-time stamps). Allowed values are 'date', 'datetime' and 'time'

See also
https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Datetime/Properties/DbType.html

Definition at line 107 of file ColumnMap.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getDateTimeStorageFormat(), and TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setDateTimeStorageFormat().

◆ $parentKeyFieldName

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$parentKeyFieldName
private

todo: Check if this property should support null. If not, set default value. The name of the field holding the parents key

See also
https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Inline/Properties/ForeignField.html

Definition at line 82 of file ColumnMap.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getParentKeyFieldName(), and TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setParentKeyFieldName().

◆ $parentTableFieldName

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$parentTableFieldName
private

todo: Check if this property should support null. If not, set default value. The name of the field holding the name of the table of the parent's records

See also
https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Inline/Properties/ForeignTableField.html

Definition at line 90 of file ColumnMap.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getParentTableFieldName(), and TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setParentTableFieldName().

◆ $relationTableMatchFields

array null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$relationTableMatchFields
private

◆ $relationTableName

string null TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$relationTableName
private

◆ $type

TableColumnType TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$type = TableColumnType::INPUT
private

◆ $typeOfRelation

ColumnMap Relation TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::$typeOfRelation = ColumnMap\Relation::NONE
private