‪TYPO3CMS  9.5
ColumnMap.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
22 {
26  const ‪RELATION_NONE = 'RELATION_NONE';
27  const ‪RELATION_HAS_ONE = 'RELATION_HAS_ONE';
28  const ‪RELATION_HAS_MANY = 'RELATION_HAS_MANY';
29  const ‪RELATION_BELONGS_TO_MANY = 'RELATION_BELONGS_TO_MANY';
30  const ‪RELATION_HAS_AND_BELONGS_TO_MANY = 'RELATION_HAS_AND_BELONGS_TO_MANY';
31 
35  const ‪RELATION_PARENT_FOREIGN_KEY = 'RELATION_PARENT_FOREIGN_KEY';
36  const ‪RELATION_CHILD_FOREIGN_KEY = 'RELATION_CHILD_FOREIGN_KEY';
37  const ‪RELATION_PARENT_CSV = 'RELATION_PARENT_CSV';
38  const ‪RELATION_INTERMEDIATE_TABLE = 'RELATION_INTERMEDIATE_TABLE';
39 
43  const ‪STRATEGY_EAGER = 'eager';
44  const ‪STRATEGY_LAZY_PROXY = 'proxy';
45  const ‪STRATEGY_LAZY_STORAGE = 'storage';
46 
52  protected ‪$propertyName;
53 
59  protected ‪$columnName;
60 
66  protected ‪$typeOfRelation;
67 
73  protected ‪$childClassName;
74 
80  protected ‪$childTableName;
81 
88 
94  protected ‪$childSortByFieldName;
95 
101  protected ‪$relationTableName;
102 
109 
116 
123 
130 
136  protected ‪$parentKeyFieldName;
137 
144 
150  protected ‪$childKeyFieldName;
151 
160 
164  protected ‪$type;
165 
169  protected ‪$internalType;
170 
178  {
179  // @todo Enable aliases (tx_anotherextension_addedcolumn -> theAddedColumn)
182  }
183 
188  {
189  $this->typeOfRelation = ‪$typeOfRelation;
190  }
191 
195  public function ‪getTypeOfRelation()
196  {
198  }
199 
203  public function ‪setPropertyName(‪$propertyName)
204  {
205  $this->propertyName = ‪$propertyName;
206  }
207 
211  public function ‪getPropertyName()
212  {
213  return ‪$this->propertyName;
214  }
215 
219  public function ‪setColumnName(‪$columnName)
220  {
221  $this->columnName = ‪$columnName;
222  }
223 
227  public function ‪getColumnName()
228  {
229  return ‪$this->columnName;
230  }
231 
236  {
237  $this->childTableName = ‪$childTableName;
238  }
239 
243  public function ‪getChildTableName()
244  {
246  }
247 
252  {
253  $this->childTableWhereStatement = ‪$childTableWhereStatement;
254  }
255 
259  public function ‪getChildTableWhereStatement()
260  {
262  }
263 
268  {
269  $this->childSortByFieldName = ‪$childSortByFieldName;
270  }
271 
275  public function ‪getChildSortByFieldName()
276  {
278  }
279 
284  {
285  $this->relationTableName = ‪$relationTableName;
286  }
287 
291  public function ‪getRelationTableName()
292  {
294  }
295 
300  {
301  $this->relationTablePageIdColumnName = ‪$relationTablePageIdColumnName;
302  }
303 
307  public function ‪getRelationTablePageIdColumnName()
308  {
310  }
311 
316  {
317  $this->relationTableMatchFields = ‪$relationTableMatchFields;
318  }
319 
323  public function ‪getRelationTableMatchFields()
324  {
326  }
327 
332  {
333  $this->relationTableInsertFields = ‪$relationTableInsertFields;
334  }
335 
339  public function ‪getRelationTableInsertFields()
340  {
342  }
343 
348  {
349  $this->relationTableWhereStatement = ‪$relationTableWhereStatement;
350  }
351 
355  public function ‪getRelationTableWhereStatement()
356  {
358  }
359 
364  {
365  $this->parentKeyFieldName = ‪$parentKeyFieldName;
366  }
367 
371  public function ‪getParentKeyFieldName()
372  {
374  }
375 
380  {
381  $this->parentTableFieldName = ‪$parentTableFieldName;
382  }
383 
387  public function ‪getParentTableFieldName()
388  {
390  }
391 
396  {
397  $this->childKeyFieldName = ‪$childKeyFieldName;
398  }
399 
403  public function ‪getChildKeyFieldName()
404  {
406  }
407 
412  {
413  $this->dateTimeStorageFormat = ‪$dateTimeStorageFormat;
414  }
415 
419  public function ‪getDateTimeStorageFormat()
420  {
422  }
423 
427  public function ‪setInternalType(‪$internalType)
428  {
429  $this->internalType = ‪$internalType;
430  }
431 
435  public function ‪getInternalType()
436  {
437  return ‪$this->internalType;
438  }
439 
443  public function ‪setType(‪$type)
444  {
445  $this->type = ‪$type;
446  }
447 
451  public function ‪getType()
452  {
453  return ‪$this->type;
454  }
455 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_BELONGS_TO_MANY
‪const RELATION_BELONGS_TO_MANY
Definition: ColumnMap.php:29
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setParentTableFieldName
‪setParentTableFieldName($parentTableFieldName)
Definition: ColumnMap.php:361
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableInsertFields
‪array $relationTableInsertFields
Definition: ColumnMap.php:111
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setInternalType
‪setInternalType($internalType)
Definition: ColumnMap.php:409
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getDateTimeStorageFormat
‪string getDateTimeStorageFormat()
Definition: ColumnMap.php:401
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildSortByFieldName
‪setChildSortByFieldName($childSortByFieldName)
Definition: ColumnMap.php:249
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$parentKeyFieldName
‪string $parentKeyFieldName
Definition: ColumnMap.php:123
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableMatchFields
‪setRelationTableMatchFields(array $relationTableMatchFields)
Definition: ColumnMap.php:297
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childTableWhereStatement
‪string $childTableWhereStatement
Definition: ColumnMap.php:81
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$parentTableFieldName
‪string $parentTableFieldName
Definition: ColumnMap.php:129
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$dateTimeStorageFormat
‪string $dateTimeStorageFormat
Definition: ColumnMap.php:143
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildTableName
‪setChildTableName($childTableName)
Definition: ColumnMap.php:217
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_INTERMEDIATE_TABLE
‪const RELATION_INTERMEDIATE_TABLE
Definition: ColumnMap.php:38
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setColumnName
‪setColumnName($columnName)
Definition: ColumnMap.php:201
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap
Definition: ColumnMap.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTablePageIdColumnName
‪setRelationTablePageIdColumnName($relationTablePageIdColumnName)
Definition: ColumnMap.php:281
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_HAS_AND_BELONGS_TO_MANY
‪const RELATION_HAS_AND_BELONGS_TO_MANY
Definition: ColumnMap.php:30
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setTypeOfRelation
‪setTypeOfRelation($typeOfRelation)
Definition: ColumnMap.php:169
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableWhereStatement
‪setRelationTableWhereStatement($relationTableWhereStatement)
Definition: ColumnMap.php:329
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getColumnName
‪string getColumnName()
Definition: ColumnMap.php:209
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\STRATEGY_EAGER
‪const STRATEGY_EAGER
Definition: ColumnMap.php:43
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildTableWhereStatement
‪setChildTableWhereStatement($childTableWhereStatement)
Definition: ColumnMap.php:233
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_HAS_MANY
‪const RELATION_HAS_MANY
Definition: ColumnMap.php:28
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildSortByFieldName
‪string getChildSortByFieldName()
Definition: ColumnMap.php:257
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_PARENT_FOREIGN_KEY
‪const RELATION_PARENT_FOREIGN_KEY
Definition: ColumnMap.php:35
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableWhereStatement
‪string $relationTableWhereStatement
Definition: ColumnMap.php:117
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_HAS_ONE
‪const RELATION_HAS_ONE
Definition: ColumnMap.php:27
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getType
‪TYPO3 CMS Core DataHandling TableColumnType getType()
Definition: ColumnMap.php:433
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableName
‪setRelationTableName($relationTableName)
Definition: ColumnMap.php:265
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setPropertyName
‪setPropertyName($propertyName)
Definition: ColumnMap.php:185
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setChildKeyFieldName
‪setChildKeyFieldName($childKeyFieldName)
Definition: ColumnMap.php:377
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childClassName
‪string $childClassName
Definition: ColumnMap.php:69
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_NONE
‪const RELATION_NONE
Definition: ColumnMap.php:26
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_CHILD_FOREIGN_KEY
‪const RELATION_CHILD_FOREIGN_KEY
Definition: ColumnMap.php:36
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getParentTableFieldName
‪string getParentTableFieldName()
Definition: ColumnMap.php:369
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$internalType
‪TYPO3 CMS Core DataHandling TableColumnSubType $internalType
Definition: ColumnMap.php:151
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childTableName
‪string $childTableName
Definition: ColumnMap.php:75
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildKeyFieldName
‪string getChildKeyFieldName()
Definition: ColumnMap.php:385
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildTableName
‪string getChildTableName()
Definition: ColumnMap.php:225
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTablePageIdColumnName
‪string getRelationTablePageIdColumnName()
Definition: ColumnMap.php:289
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableMatchFields
‪array $relationTableMatchFields
Definition: ColumnMap.php:105
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTableName
‪string $relationTableName
Definition: ColumnMap.php:93
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableInsertFields
‪array getRelationTableInsertFields()
Definition: ColumnMap.php:321
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\RELATION_PARENT_CSV
‪const RELATION_PARENT_CSV
Definition: ColumnMap.php:37
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\STRATEGY_LAZY_STORAGE
‪const STRATEGY_LAZY_STORAGE
Definition: ColumnMap.php:45
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$type
‪TYPO3 CMS Core DataHandling TableColumnType $type
Definition: ColumnMap.php:147
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableName
‪string getRelationTableName()
Definition: ColumnMap.php:273
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\__construct
‪__construct($columnName, $propertyName)
Definition: ColumnMap.php:159
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getPropertyName
‪string getPropertyName()
Definition: ColumnMap.php:193
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childKeyFieldName
‪string $childKeyFieldName
Definition: ColumnMap.php:135
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\STRATEGY_LAZY_PROXY
‪const STRATEGY_LAZY_PROXY
Definition: ColumnMap.php:44
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setParentKeyFieldName
‪setParentKeyFieldName($parentKeyFieldName)
Definition: ColumnMap.php:345
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$propertyName
‪string $propertyName
Definition: ColumnMap.php:51
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$relationTablePageIdColumnName
‪string $relationTablePageIdColumnName
Definition: ColumnMap.php:99
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$columnName
‪string $columnName
Definition: ColumnMap.php:57
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper
Definition: ColumnMap.php:2
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getInternalType
‪TYPO3 CMS Core DataHandling TableColumnSubType getInternalType()
Definition: ColumnMap.php:417
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableWhereStatement
‪string getRelationTableWhereStatement()
Definition: ColumnMap.php:337
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getTypeOfRelation
‪string getTypeOfRelation()
Definition: ColumnMap.php:177
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setType
‪setType($type)
Definition: ColumnMap.php:425
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setRelationTableInsertFields
‪setRelationTableInsertFields(array $relationTableInsertFields)
Definition: ColumnMap.php:313
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$typeOfRelation
‪string $typeOfRelation
Definition: ColumnMap.php:63
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\$childSortByFieldName
‪string $childSortByFieldName
Definition: ColumnMap.php:87
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getRelationTableMatchFields
‪array getRelationTableMatchFields()
Definition: ColumnMap.php:305
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getChildTableWhereStatement
‪string getChildTableWhereStatement()
Definition: ColumnMap.php:241
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getParentKeyFieldName
‪string getParentKeyFieldName()
Definition: ColumnMap.php:353
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\setDateTimeStorageFormat
‪setDateTimeStorageFormat($dateTimeStorageFormat)
Definition: ColumnMap.php:393