TYPO3  7.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
ColumnMap Class Reference

Public Member Functions

 __construct ($columnName, $propertyName)
 
 setTypeOfRelation ($typeOfRelation)
 
 getTypeOfRelation ()
 
 setPropertyName ($propertyName)
 
 getPropertyName ()
 
 setColumnName ($columnName)
 
 getColumnName ()
 
 setChildTableName ($childTableName)
 
 getChildTableName ()
 
 setChildTableWhereStatement ($childTableWhereStatement)
 
 getChildTableWhereStatement ()
 
 setChildSortByFieldName ($childSortByFieldName)
 
 getChildSortByFieldName ()
 
 setRelationTableName ($relationTableName)
 
 getRelationTableName ()
 
 setRelationTablePageIdColumnName ($relationTablePageIdColumnName)
 
 getRelationTablePageIdColumnName ()
 
 setRelationTableMatchFields (array $relationTableMatchFields)
 
 getRelationTableMatchFields ()
 
 setRelationTableInsertFields (array $relationTableInsertFields)
 
 getRelationTableInsertFields ()
 
 setRelationTableWhereStatement ($relationTableWhereStatement)
 
 getRelationTableWhereStatement ()
 
 setParentKeyFieldName ($parentKeyFieldName)
 
 getParentKeyFieldName ()
 
 setParentTableFieldName ($parentTableFieldName)
 
 getParentTableFieldName ()
 
 setChildKeyFieldName ($childKeyFieldName)
 
 getChildKeyFieldName ()
 
 setDateTimeStorageFormat ($dateTimeStorageFormat)
 
 getDateTimeStorageFormat ()
 
 setInternalType ($internalType)
 
 getInternalType ()
 
 setType ($type)
 
 getType ()
 

Public Attributes

const RELATION_NONE = 'RELATION_NONE'
 
const RELATION_HAS_ONE = 'RELATION_HAS_ONE'
 
const RELATION_HAS_MANY = 'RELATION_HAS_MANY'
 
const RELATION_BELONGS_TO_MANY = 'RELATION_BELONGS_TO_MANY'
 
const RELATION_HAS_AND_BELONGS_TO_MANY = 'RELATION_HAS_AND_BELONGS_TO_MANY'
 
const RELATION_PARENT_FOREIGN_KEY = 'RELATION_PARENT_FOREIGN_KEY'
 
const RELATION_CHILD_FOREIGN_KEY = 'RELATION_CHILD_FOREIGN_KEY'
 
const RELATION_PARENT_CSV = 'RELATION_PARENT_CSV'
 
const RELATION_INTERMEDIATE_TABLE = 'RELATION_INTERMEDIATE_TABLE'
 
const STRATEGY_EAGER = 'eager'
 
const STRATEGY_LAZY_PROXY = 'proxy'
 
const STRATEGY_LAZY_STORAGE = 'storage'
 

Protected Attributes

 $propertyName
 
 $columnName
 
 $typeOfRelation
 
 $childClassName
 
 $childTableName
 
 $childTableWhereStatement
 
 $childSortByFieldName
 
 $relationTableName
 
 $relationTablePageIdColumnName
 
 $relationTableMatchFields
 
 $relationTableInsertFields
 
 $relationTableWhereStatement
 
 $parentKeyFieldName
 
 $parentTableFieldName
 
 $childKeyFieldName
 
 $dateTimeStorageFormat
 
 $type
 
 $internalType
 

Detailed Description

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

Definition at line 20 of file ColumnMap.php.

Constructor & Destructor Documentation

__construct (   $columnName,
  $propertyName 
)

Constructs a Column Map

Parameters
string$columnNameThe column name
string$propertyNameThe property name
Returns

Definition at line 177 of file ColumnMap.php.

References ColumnMap\$columnName, ColumnMap\$propertyName, ColumnMap\setColumnName(), and ColumnMap\setPropertyName().

Member Function Documentation

getChildKeyFieldName ( )
Returns
string

Definition at line 403 of file ColumnMap.php.

References ColumnMap\$childKeyFieldName.

getChildSortByFieldName ( )
Returns
string

Definition at line 275 of file ColumnMap.php.

References ColumnMap\$childSortByFieldName.

getChildTableName ( )
Returns
string

Definition at line 243 of file ColumnMap.php.

References ColumnMap\$childTableName.

getChildTableWhereStatement ( )
Returns
string

Definition at line 259 of file ColumnMap.php.

References ColumnMap\$childTableWhereStatement.

getColumnName ( )
Returns
string

Definition at line 227 of file ColumnMap.php.

References ColumnMap\$columnName.

getDateTimeStorageFormat ( )
Returns
string

Definition at line 419 of file ColumnMap.php.

References ColumnMap\$dateTimeStorageFormat.

getInternalType ( )
Returns

Definition at line 435 of file ColumnMap.php.

References ColumnMap\$internalType.

getParentKeyFieldName ( )
Returns
string

Definition at line 371 of file ColumnMap.php.

References ColumnMap\$parentKeyFieldName.

getParentTableFieldName ( )
Returns
string

Definition at line 387 of file ColumnMap.php.

References ColumnMap\$parentTableFieldName.

getPropertyName ( )
Returns
string

Definition at line 211 of file ColumnMap.php.

References ColumnMap\$propertyName.

Referenced by DataMap\addColumnMap().

getRelationTableInsertFields ( )
Returns
array

Definition at line 339 of file ColumnMap.php.

References ColumnMap\$relationTableInsertFields.

getRelationTableMatchFields ( )
Returns
array

Definition at line 323 of file ColumnMap.php.

References ColumnMap\$relationTableMatchFields.

getRelationTableName ( )
Returns
string

Definition at line 291 of file ColumnMap.php.

References ColumnMap\$relationTableName.

Referenced by DataMapFactory\setManyToManyRelation().

getRelationTablePageIdColumnName ( )
Returns
string

Definition at line 307 of file ColumnMap.php.

References ColumnMap\$relationTablePageIdColumnName.

getRelationTableWhereStatement ( )
Returns
string

Definition at line 355 of file ColumnMap.php.

References ColumnMap\$relationTableWhereStatement.

getType ( )
Returns

Definition at line 451 of file ColumnMap.php.

References ColumnMap\$type.

getTypeOfRelation ( )
Returns
string

Definition at line 195 of file ColumnMap.php.

References ColumnMap\$typeOfRelation.

Referenced by Typo3DbQueryParser\parseComparison().

setChildKeyFieldName (   $childKeyFieldName)
Parameters
string$childKeyFieldName

Definition at line 395 of file ColumnMap.php.

References ColumnMap\$childKeyFieldName.

Referenced by DataMapFactory\setManyToManyRelation().

setChildSortByFieldName (   $childSortByFieldName)
Parameters
string$childSortByFieldName

Definition at line 267 of file ColumnMap.php.

References ColumnMap\$childSortByFieldName.

Referenced by DataMapFactory\setManyToManyRelation(), DataMapFactory\setOneToManyRelation(), and DataMapFactory\setOneToOneRelation().

setChildTableName (   $childTableName)
setChildTableWhereStatement (   $childTableWhereStatement)
Parameters
string$childTableWhereStatement

Definition at line 251 of file ColumnMap.php.

References ColumnMap\$childTableWhereStatement.

Referenced by DataMapFactory\setManyToManyRelation(), DataMapFactory\setOneToManyRelation(), and DataMapFactory\setOneToOneRelation().

setColumnName (   $columnName)
Parameters
string$columnName

Definition at line 219 of file ColumnMap.php.

References ColumnMap\$columnName.

Referenced by ColumnMap\__construct().

setDateTimeStorageFormat (   $dateTimeStorageFormat)
Parameters
string$dateTimeStorageFormat

Definition at line 411 of file ColumnMap.php.

References ColumnMap\$dateTimeStorageFormat.

Referenced by DataMapFactory\setFieldEvaluations().

setInternalType (   $internalType)
Parameters
\TYPO3\CMS\Core\DataHandling\TableColumnSubType$internalType

Definition at line 427 of file ColumnMap.php.

References ColumnMap\$internalType.

Referenced by DataMapFactory\setType().

setParentKeyFieldName (   $parentKeyFieldName)
Parameters
string$parentKeyFieldName

Definition at line 363 of file ColumnMap.php.

References ColumnMap\$parentKeyFieldName.

Referenced by DataMapFactory\setManyToManyRelation(), DataMapFactory\setOneToManyRelation(), and DataMapFactory\setOneToOneRelation().

setParentTableFieldName (   $parentTableFieldName)
Parameters
string$parentTableFieldName

Definition at line 379 of file ColumnMap.php.

References ColumnMap\$parentTableFieldName.

Referenced by DataMapFactory\setOneToManyRelation(), and DataMapFactory\setOneToOneRelation().

setPropertyName (   $propertyName)
Parameters
string$propertyName

Definition at line 203 of file ColumnMap.php.

References ColumnMap\$propertyName.

Referenced by ColumnMap\__construct().

setRelationTableInsertFields ( array  $relationTableInsertFields)
Parameters
array$relationTableInsertFields

Definition at line 331 of file ColumnMap.php.

References ColumnMap\$relationTableInsertFields.

Referenced by DataMapFactory\setManyToManyRelation().

setRelationTableMatchFields ( array  $relationTableMatchFields)
Parameters
array$relationTableMatchFields

Definition at line 315 of file ColumnMap.php.

References ColumnMap\$relationTableMatchFields.

Referenced by DataMapFactory\setManyToManyRelation(), DataMapFactory\setOneToManyRelation(), and DataMapFactory\setOneToOneRelation().

setRelationTableName (   $relationTableName)
Parameters
string$relationTableName

Definition at line 283 of file ColumnMap.php.

References ColumnMap\$relationTableName.

Referenced by DataMapFactory\setManyToManyRelation().

setRelationTablePageIdColumnName (   $relationTablePageIdColumnName)
Parameters
string$relationTablePageIdColumnName

Definition at line 299 of file ColumnMap.php.

References ColumnMap\$relationTablePageIdColumnName.

Referenced by DataMapFactory\setManyToManyRelation().

setRelationTableWhereStatement (   $relationTableWhereStatement)
Parameters
string$relationTableWhereStatement

Definition at line 347 of file ColumnMap.php.

References ColumnMap\$relationTableWhereStatement.

Referenced by DataMapFactory\setManyToManyRelation().

setType (   $type)
Parameters
\TYPO3\CMS\Core\DataHandling\TableColumnType$type

Definition at line 443 of file ColumnMap.php.

References ColumnMap\$type.

Referenced by DataMapFactory\setType().

setTypeOfRelation (   $typeOfRelation)

Member Data Documentation

$childClassName
protected

Definition at line 72 of file ColumnMap.php.

$childKeyFieldName
protected
$childSortByFieldName
protected
$childTableName
protected

Definition at line 79 of file ColumnMap.php.

Referenced by ColumnMap\getChildTableName(), and ColumnMap\setChildTableName().

$childTableWhereStatement
protected
$columnName
protected
$dateTimeStorageFormat
protected
$internalType
protected

Definition at line 168 of file ColumnMap.php.

Referenced by ColumnMap\getInternalType(), and ColumnMap\setInternalType().

$parentKeyFieldName
protected
$parentTableFieldName
protected
$propertyName
protected
$relationTableInsertFields
protected
$relationTableMatchFields
protected
$relationTableName
protected
$relationTablePageIdColumnName
protected
$relationTableWhereStatement
protected
$type
protected

Definition at line 163 of file ColumnMap.php.

Referenced by ColumnMap\getType(), and ColumnMap\setType().

$typeOfRelation
protected

Definition at line 65 of file ColumnMap.php.

Referenced by ColumnMap\getTypeOfRelation(), and ColumnMap\setTypeOfRelation().

const RELATION_BELONGS_TO_MANY = 'RELATION_BELONGS_TO_MANY'

Definition at line 28 of file ColumnMap.php.

const RELATION_CHILD_FOREIGN_KEY = 'RELATION_CHILD_FOREIGN_KEY'

Definition at line 35 of file ColumnMap.php.

const RELATION_HAS_AND_BELONGS_TO_MANY = 'RELATION_HAS_AND_BELONGS_TO_MANY'
const RELATION_HAS_MANY = 'RELATION_HAS_MANY'
const RELATION_HAS_ONE = 'RELATION_HAS_ONE'
const RELATION_INTERMEDIATE_TABLE = 'RELATION_INTERMEDIATE_TABLE'

Definition at line 37 of file ColumnMap.php.

const RELATION_NONE = 'RELATION_NONE'

Constants reflecting the type of relation

Definition at line 25 of file ColumnMap.php.

Referenced by Backend\insertObject(), and DataMapFactory\setRelations().

const RELATION_PARENT_CSV = 'RELATION_PARENT_CSV'

Definition at line 36 of file ColumnMap.php.

const RELATION_PARENT_FOREIGN_KEY = 'RELATION_PARENT_FOREIGN_KEY'

Constants reflecting how the relation information is stored

Definition at line 34 of file ColumnMap.php.

const STRATEGY_EAGER = 'eager'

Constants reflecting the loading strategy

Definition at line 42 of file ColumnMap.php.

const STRATEGY_LAZY_PROXY = 'proxy'

Definition at line 43 of file ColumnMap.php.

const STRATEGY_LAZY_STORAGE = 'storage'

Definition at line 44 of file ColumnMap.php.