‪TYPO3CMS  10.4
ColumnMap.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
28 {
32  public const ‪RELATION_NONE = 'RELATION_NONE';
33 
37  public const ‪RELATION_HAS_ONE = 'RELATION_HAS_ONE';
38 
42  public const ‪RELATION_HAS_MANY = 'RELATION_HAS_MANY';
43 
47  public const ‪RELATION_BELONGS_TO_MANY = 'RELATION_BELONGS_TO_MANY';
48 
52  public const ‪RELATION_HAS_AND_BELONGS_TO_MANY = 'RELATION_HAS_AND_BELONGS_TO_MANY';
53 
59  private ‪$propertyName;
60 
66  private ‪$columnName;
67 
74  private ‪$typeOfRelation;
75 
83  private ‪$childTableName;
84 
93 
101  private ‪$relationTableName;
102 
110 
120 
129 
141 
149  private ‪$parentKeyFieldName;
150 
158  private ‪$parentTableFieldName;
159 
166  private ‪$childKeyFieldName;
167 
178 
183  private ‪$type;
184 
189  private ‪$internalType;
190 
197  public function ‪__construct(string ‪$columnName, string ‪$propertyName)
198  {
199  // @todo Enable aliases (tx_anotherextension_addedcolumn -> theAddedColumn)
200  $this->columnName = ‪$columnName;
201  $this->propertyName = ‪$propertyName;
202  }
203 
207  public function ‪setTypeOfRelation(string ‪$typeOfRelation): void
208  {
209  $this->typeOfRelation = ‪$typeOfRelation;
210  }
211 
215  public function ‪getTypeOfRelation(): string
216  {
218  }
219 
223  public function ‪getPropertyName(): string
224  {
225  return ‪$this->propertyName;
226  }
227 
231  public function ‪getColumnName(): string
232  {
233  return ‪$this->columnName;
234  }
235 
239  public function ‪setChildTableName(?string ‪$childTableName): void
240  {
241  $this->childTableName = ‪$childTableName;
242  }
243 
247  public function ‪getChildTableName(): ?string
248  {
250  }
251 
256  {
257  $this->childSortByFieldName = ‪$childSortByFieldName;
258  }
259 
263  public function ‪getChildSortByFieldName(): ?string
264  {
266  }
267 
271  public function ‪setRelationTableName(?string ‪$relationTableName): void
272  {
273  $this->relationTableName = ‪$relationTableName;
274  }
275 
279  public function ‪getRelationTableName(): ?string
280  {
282  }
283 
288  {
289  $this->relationTablePageIdColumnName = ‪$relationTablePageIdColumnName;
290  }
291 
295  public function ‪getRelationTablePageIdColumnName(): ?string
296  {
298  }
299 
304  {
305  $this->relationTableMatchFields = ‪$relationTableMatchFields;
306  }
307 
311  public function ‪getRelationTableMatchFields(): ?array
312  {
314  }
315 
320  {
321  $this->relationTableInsertFields = ‪$relationTableInsertFields;
322  }
323 
327  public function ‪getRelationTableInsertFields(): ?array
328  {
330  }
331 
335  public function ‪setParentKeyFieldName(?string ‪$parentKeyFieldName): void
336  {
337  $this->parentKeyFieldName = ‪$parentKeyFieldName;
338  }
339 
343  public function ‪getParentKeyFieldName(): ?string
344  {
346  }
347 
352  {
353  $this->parentTableFieldName = ‪$parentTableFieldName;
354  }
355 
359  public function ‪getParentTableFieldName(): ?string
360  {
362  }
363 
367  public function ‪setChildKeyFieldName(string ‪$childKeyFieldName): void
368  {
369  $this->childKeyFieldName = ‪$childKeyFieldName;
370  }
371 
375  public function ‪getChildKeyFieldName(): ?string
376  {
378  }
379 
384  {
385  $this->dateTimeStorageFormat = ‪$dateTimeStorageFormat;
386  }
387 
391  public function ‪getDateTimeStorageFormat(): ?string
392  {
394  }
395 
400  {
401  $this->internalType = ‪$internalType;
402  }
403 
408  {
409  return ‪$this->internalType;
410  }
411 
415  public function ‪setType(‪TableColumnType ‪$type): void
416  {
417  $this->type = ‪$type;
418  }
419 
423  public function ‪getType(): ?TableColumnType
424  {
425  return ‪$this->type;
426  }
427 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_BELONGS_TO_MANY
‪const RELATION_BELONGS_TO_MANY
Definition: ColumnMap.php:47
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$internalType
‪TableColumnSubType null $internalType
Definition: ColumnMap.php:173
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setParentKeyFieldName
‪setParentKeyFieldName(?string $parentKeyFieldName)
Definition: ColumnMap.php:319
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$parentKeyFieldName
‪string null $parentKeyFieldName
Definition: ColumnMap.php:138
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap
Definition: ColumnMap.php:28
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$typeOfRelation
‪string null $typeOfRelation
Definition: ColumnMap.php:71
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getDateTimeStorageFormat
‪string null getDateTimeStorageFormat()
Definition: ColumnMap.php:375
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_HAS_AND_BELONGS_TO_MANY
‪const RELATION_HAS_AND_BELONGS_TO_MANY
Definition: ColumnMap.php:52
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setDateTimeStorageFormat
‪setDateTimeStorageFormat(?string $dateTimeStorageFormat)
Definition: ColumnMap.php:367
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getColumnName
‪string getColumnName()
Definition: ColumnMap.php:215
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildTableName
‪setChildTableName(?string $childTableName)
Definition: ColumnMap.php:223
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setTypeOfRelation
‪setTypeOfRelation(string $typeOfRelation)
Definition: ColumnMap.php:191
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_HAS_MANY
‪const RELATION_HAS_MANY
Definition: ColumnMap.php:42
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableInsertFields
‪array null getRelationTableInsertFields()
Definition: ColumnMap.php:311
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableMatchFields
‪array null getRelationTableMatchFields()
Definition: ColumnMap.php:295
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\__construct
‪__construct(string $columnName, string $propertyName)
Definition: ColumnMap.php:181
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildSortByFieldName
‪string null getChildSortByFieldName()
Definition: ColumnMap.php:247
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_HAS_ONE
‪const RELATION_HAS_ONE
Definition: ColumnMap.php:37
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableWhereStatement
‪string null $relationTableWhereStatement
Definition: ColumnMap.php:130
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableInsertFields
‪array null $relationTableInsertFields
Definition: ColumnMap.php:119
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildKeyFieldName
‪string null getChildKeyFieldName()
Definition: ColumnMap.php:359
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$type
‪TableColumnType null $type
Definition: ColumnMap.php:168
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_NONE
‪const RELATION_NONE
Definition: ColumnMap.php:32
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getParentKeyFieldName
‪string null getParentKeyFieldName()
Definition: ColumnMap.php:327
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setType
‪setType(TableColumnType $type)
Definition: ColumnMap.php:399
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childTableName
‪string null $childTableName
Definition: ColumnMap.php:79
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTablePageIdColumnName
‪setRelationTablePageIdColumnName(string $relationTablePageIdColumnName)
Definition: ColumnMap.php:271
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childSortByFieldName
‪string null $childSortByFieldName
Definition: ColumnMap.php:87
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTablePageIdColumnName
‪string null $relationTablePageIdColumnName
Definition: ColumnMap.php:102
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$parentTableFieldName
‪string null $parentTableFieldName
Definition: ColumnMap.php:146
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setInternalType
‪setInternalType(TableColumnSubType $internalType)
Definition: ColumnMap.php:383
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getType
‪TableColumnType null getType()
Definition: ColumnMap.php:407
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$dateTimeStorageFormat
‪string null $dateTimeStorageFormat
Definition: ColumnMap.php:163
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getParentTableFieldName
‪string null getParentTableFieldName()
Definition: ColumnMap.php:343
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getPropertyName
‪string getPropertyName()
Definition: ColumnMap.php:207
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildKeyFieldName
‪setChildKeyFieldName(string $childKeyFieldName)
Definition: ColumnMap.php:351
‪TYPO3\CMS\Core\DataHandling\TableColumnSubType
Definition: TableColumnSubType.php:24
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableName
‪string null $relationTableName
Definition: ColumnMap.php:95
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$propertyName
‪string $propertyName
Definition: ColumnMap.php:58
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childKeyFieldName
‪string null $childKeyFieldName
Definition: ColumnMap.php:153
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$columnName
‪string $columnName
Definition: ColumnMap.php:64
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper
Definition: ColumnMap.php:18
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTablePageIdColumnName
‪string null getRelationTablePageIdColumnName()
Definition: ColumnMap.php:279
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildTableName
‪string null getChildTableName()
Definition: ColumnMap.php:231
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildSortByFieldName
‪setChildSortByFieldName(?string $childSortByFieldName)
Definition: ColumnMap.php:239
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getTypeOfRelation
‪string getTypeOfRelation()
Definition: ColumnMap.php:199
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getInternalType
‪TableColumnSubType null getInternalType()
Definition: ColumnMap.php:391
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableInsertFields
‪setRelationTableInsertFields(array $relationTableInsertFields)
Definition: ColumnMap.php:303
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableName
‪string null getRelationTableName()
Definition: ColumnMap.php:263
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setParentTableFieldName
‪setParentTableFieldName(?string $parentTableFieldName)
Definition: ColumnMap.php:335
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableMatchFields
‪array null $relationTableMatchFields
Definition: ColumnMap.php:111
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableMatchFields
‪setRelationTableMatchFields(?array $relationTableMatchFields)
Definition: ColumnMap.php:287
‪TYPO3\CMS\Core\DataHandling\TableColumnType
Definition: TableColumnType.php:24
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableName
‪setRelationTableName(?string $relationTableName)
Definition: ColumnMap.php:255