‪TYPO3CMS  10.4
DataMap.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
23 {
29  protected ‪$className;
30 
36  protected ‪$tableName;
37 
43  protected ‪$recordType;
44 
50  protected ‪$subclasses = [];
51 
57  protected ‪$columnMaps = [];
58 
62  protected ‪$pageIdColumnName;
63 
67  protected ‪$languageIdColumnName;
68 
73 
78 
83 
88 
93 
97  protected ‪$deletedFlagColumnName;
98 
102  protected ‪$disabledFlagColumnName;
103 
107  protected ‪$startTimeColumnName;
108 
113 
118 
123 
127  protected ‪$isStatic = false;
128 
132  protected ‪$rootLevel = false;
133 
142  public function ‪__construct(‪$className, ‪$tableName, ‪$recordType = null, array ‪$subclasses = [])
143  {
148  }
149 
156  {
157  $this->className = ‪$className;
158  }
159 
165  public function ‪getClassName()
166  {
167  return ‪$this->className;
168  }
169 
176  {
177  $this->tableName = ‪$tableName;
178  }
179 
185  public function ‪getTableName()
186  {
187  return ‪$this->tableName;
188  }
189 
196  {
197  $this->recordType = ‪$recordType;
198  }
199 
205  public function ‪getRecordType()
206  {
207  return ‪$this->recordType;
208  }
209 
215  public function ‪setSubclasses(array ‪$subclasses)
216  {
217  $this->subclasses = ‪$subclasses;
218  }
219 
225  public function ‪getSubclasses()
226  {
227  return ‪$this->subclasses;
228  }
229 
235  public function ‪addColumnMap(‪ColumnMap $columnMap)
236  {
237  $this->columnMaps[$columnMap->‪getPropertyName()] = $columnMap;
238  }
239 
246  public function ‪getColumnMap($propertyName)
247  {
248  return $this->columnMaps[$propertyName] ?? null;
249  }
250 
257  public function ‪isPersistableProperty($propertyName)
258  {
259  return isset($this->columnMaps[$propertyName]);
260  }
261 
268  {
269  $this->pageIdColumnName = ‪$pageIdColumnName;
270  }
271 
277  public function ‪getPageIdColumnName()
278  {
280  }
281 
288  {
289  $this->languageIdColumnName = ‪$languageIdColumnName;
290  }
291 
297  public function ‪getLanguageIdColumnName()
298  {
300  }
301 
308  {
309  $this->translationOriginColumnName = ‪$translationOriginColumnName;
310  }
311 
318  {
320  }
321 
328  {
329  $this->translationOriginDiffSourceName = ‪$translationOriginDiffSourceName;
330  }
331 
338  {
340  }
341 
348  {
349  $this->modificationDateColumnName = ‪$modificationDateColumnName;
350  }
351 
358  {
360  }
361 
368  {
369  $this->creationDateColumnName = ‪$creationDateColumnName;
370  }
371 
378  {
380  }
381 
388  {
389  $this->creatorColumnName = ‪$creatorColumnName;
390  }
391 
397  public function ‪getCreatorColumnName()
398  {
400  }
401 
408  {
409  $this->deletedFlagColumnName = ‪$deletedFlagColumnName;
410  }
411 
417  public function ‪getDeletedFlagColumnName()
418  {
420  }
421 
428  {
429  $this->disabledFlagColumnName = ‪$disabledFlagColumnName;
430  }
431 
438  {
440  }
441 
448  {
449  $this->startTimeColumnName = ‪$startTimeColumnName;
450  }
451 
457  public function ‪getStartTimeColumnName()
458  {
460  }
461 
468  {
469  $this->endTimeColumnName = ‪$endTimeColumnName;
470  }
471 
477  public function ‪getEndTimeColumnName()
478  {
480  }
481 
488  {
489  $this->frontendUserGroupColumnName = ‪$frontendUserGroupColumnName;
490  }
491 
498  {
500  }
501 
508  {
509  $this->recordTypeColumnName = ‪$recordTypeColumnName;
510  }
511 
517  public function ‪getRecordTypeColumnName()
518  {
520  }
521 
525  public function ‪setIsStatic(‪$isStatic)
526  {
527  $this->isStatic = ‪$isStatic;
528  }
529 
533  public function ‪getIsStatic()
534  {
535  return ‪$this->isStatic;
536  }
537 
541  public function ‪setRootLevel(‪$rootLevel)
542  {
543  $this->rootLevel = ‪$rootLevel;
544  }
545 
549  public function ‪getRootLevel()
550  {
551  return ‪$this->rootLevel;
552  }
553 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setDeletedFlagColumnName
‪setDeletedFlagColumnName($deletedFlagColumnName)
Definition: DataMap.php:387
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getDeletedFlagColumnName
‪string getDeletedFlagColumnName()
Definition: DataMap.php:397
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$rootLevel
‪bool $rootLevel
Definition: DataMap.php:112
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$isStatic
‪bool $isStatic
Definition: DataMap.php:108
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getColumnMap
‪TYPO3 CMS Extbase Persistence Generic Mapper ColumnMap null getColumnMap($propertyName)
Definition: DataMap.php:226
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$languageIdColumnName
‪string $languageIdColumnName
Definition: DataMap.php:60
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getRecordTypeColumnName
‪string getRecordTypeColumnName()
Definition: DataMap.php:497
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\addColumnMap
‪addColumnMap(ColumnMap $columnMap)
Definition: DataMap.php:215
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getLanguageIdColumnName
‪string getLanguageIdColumnName()
Definition: DataMap.php:277
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap
Definition: DataMap.php:23
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getTranslationOriginDiffSourceName
‪string getTranslationOriginDiffSourceName()
Definition: DataMap.php:317
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getRootLevel
‪bool getRootLevel()
Definition: DataMap.php:529
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setPageIdColumnName
‪setPageIdColumnName($pageIdColumnName)
Definition: DataMap.php:247
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$columnMaps
‪array $columnMaps
Definition: DataMap.php:52
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getTableName
‪string getTableName()
Definition: DataMap.php:165
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getFrontEndUserGroupColumnName
‪string getFrontEndUserGroupColumnName()
Definition: DataMap.php:477
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getRecordType
‪string null getRecordType()
Definition: DataMap.php:185
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$subclasses
‪array $subclasses
Definition: DataMap.php:46
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap
Definition: ColumnMap.php:28
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$translationOriginColumnName
‪string $translationOriginColumnName
Definition: DataMap.php:64
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setTableName
‪setTableName($tableName)
Definition: DataMap.php:155
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getCreationDateColumnName
‪string getCreationDateColumnName()
Definition: DataMap.php:357
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$frontendUserGroupColumnName
‪string $frontendUserGroupColumnName
Definition: DataMap.php:100
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$disabledFlagColumnName
‪string $disabledFlagColumnName
Definition: DataMap.php:88
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setDisabledFlagColumnName
‪setDisabledFlagColumnName($disabledFlagColumnName)
Definition: DataMap.php:407
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getClassName
‪string getClassName()
Definition: DataMap.php:145
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getStartTimeColumnName
‪string getStartTimeColumnName()
Definition: DataMap.php:437
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setIsStatic
‪setIsStatic($isStatic)
Definition: DataMap.php:505
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$endTimeColumnName
‪string $endTimeColumnName
Definition: DataMap.php:96
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getEndTimeColumnName
‪string getEndTimeColumnName()
Definition: DataMap.php:457
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$deletedFlagColumnName
‪string $deletedFlagColumnName
Definition: DataMap.php:84
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setSubclasses
‪setSubclasses(array $subclasses)
Definition: DataMap.php:195
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\isPersistableProperty
‪bool isPersistableProperty($propertyName)
Definition: DataMap.php:237
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getSubclasses
‪array getSubclasses()
Definition: DataMap.php:205
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$tableName
‪string $tableName
Definition: DataMap.php:34
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setClassName
‪setClassName($className)
Definition: DataMap.php:135
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setStartTimeColumnName
‪setStartTimeColumnName($startTimeColumnName)
Definition: DataMap.php:427
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getPageIdColumnName
‪string getPageIdColumnName()
Definition: DataMap.php:257
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setFrontEndUserGroupColumnName
‪setFrontEndUserGroupColumnName($frontendUserGroupColumnName)
Definition: DataMap.php:467
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getDisabledFlagColumnName
‪string getDisabledFlagColumnName()
Definition: DataMap.php:417
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$creationDateColumnName
‪string $creationDateColumnName
Definition: DataMap.php:76
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setCreatorColumnName
‪setCreatorColumnName($creatorColumnName)
Definition: DataMap.php:367
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$modificationDateColumnName
‪string $modificationDateColumnName
Definition: DataMap.php:72
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setRecordType
‪setRecordType($recordType)
Definition: DataMap.php:175
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setEndTimeColumnName
‪setEndTimeColumnName($endTimeColumnName)
Definition: DataMap.php:447
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$creatorColumnName
‪string $creatorColumnName
Definition: DataMap.php:80
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getModificationDateColumnName
‪string getModificationDateColumnName()
Definition: DataMap.php:337
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$recordType
‪string null $recordType
Definition: DataMap.php:40
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setRecordTypeColumnName
‪setRecordTypeColumnName($recordTypeColumnName)
Definition: DataMap.php:487
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getPropertyName
‪string getPropertyName()
Definition: ColumnMap.php:207
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$recordTypeColumnName
‪string $recordTypeColumnName
Definition: DataMap.php:104
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setTranslationOriginColumnName
‪setTranslationOriginColumnName($translationOriginColumnName)
Definition: DataMap.php:287
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getTranslationOriginColumnName
‪string getTranslationOriginColumnName()
Definition: DataMap.php:297
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setModificationDateColumnName
‪setModificationDateColumnName($modificationDateColumnName)
Definition: DataMap.php:327
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$pageIdColumnName
‪string $pageIdColumnName
Definition: DataMap.php:56
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$translationOriginDiffSourceName
‪string $translationOriginDiffSourceName
Definition: DataMap.php:68
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setCreationDateColumnName
‪setCreationDateColumnName($creationDateColumnName)
Definition: DataMap.php:347
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setTranslationOriginDiffSourceName
‪setTranslationOriginDiffSourceName($translationOriginDiffSourceName)
Definition: DataMap.php:307
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper
Definition: ColumnMap.php:18
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setLanguageIdColumnName
‪setLanguageIdColumnName($languageIdColumnName)
Definition: DataMap.php:267
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getIsStatic
‪bool getIsStatic()
Definition: DataMap.php:513
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setRootLevel
‪setRootLevel($rootLevel)
Definition: DataMap.php:521
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$className
‪string $className
Definition: DataMap.php:28
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\__construct
‪__construct($className, $tableName, $recordType=null, array $subclasses=[])
Definition: DataMap.php:122
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$startTimeColumnName
‪string $startTimeColumnName
Definition: DataMap.php:92
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getCreatorColumnName
‪string getCreatorColumnName()
Definition: DataMap.php:377