‪TYPO3CMS  9.5
DataMap.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 {
28  protected ‪$className;
29 
35  protected ‪$tableName;
36 
42  protected ‪$recordType;
43 
49  protected ‪$subclasses = [];
50 
56  protected ‪$columnMaps = [];
57 
61  protected ‪$pageIdColumnName;
62 
66  protected ‪$languageIdColumnName;
67 
72 
77 
82 
87 
92 
96  protected ‪$deletedFlagColumnName;
97 
101  protected ‪$disabledFlagColumnName;
102 
106  protected ‪$startTimeColumnName;
107 
112 
117 
122 
126  protected ‪$isStatic = false;
127 
131  protected ‪$rootLevel = false;
132 
141  public function ‪__construct(‪$className, ‪$tableName, ‪$recordType = null, array ‪$subclasses = [])
142  {
147  }
148 
155  {
156  $this->className = ‪$className;
157  }
158 
164  public function ‪getClassName()
165  {
166  return ‪$this->className;
167  }
168 
175  {
176  $this->tableName = ‪$tableName;
177  }
178 
184  public function ‪getTableName()
185  {
186  return ‪$this->tableName;
187  }
188 
195  {
196  $this->recordType = ‪$recordType;
197  }
198 
204  public function ‪getRecordType()
205  {
206  return ‪$this->recordType;
207  }
208 
214  public function ‪setSubclasses(array ‪$subclasses)
215  {
216  $this->subclasses = ‪$subclasses;
217  }
218 
224  public function ‪getSubclasses()
225  {
226  return ‪$this->subclasses;
227  }
228 
234  public function ‪addColumnMap(‪ColumnMap $columnMap)
235  {
236  $this->columnMaps[$columnMap->‪getPropertyName()] = $columnMap;
237  }
238 
245  public function ‪getColumnMap($propertyName)
246  {
247  return $this->columnMaps[$propertyName] ?? null;
248  }
249 
256  public function ‪isPersistableProperty($propertyName)
257  {
258  return isset($this->columnMaps[$propertyName]);
259  }
260 
267  {
268  $this->pageIdColumnName = ‪$pageIdColumnName;
269  }
270 
276  public function ‪getPageIdColumnName()
277  {
279  }
280 
287  {
288  $this->languageIdColumnName = ‪$languageIdColumnName;
289  }
290 
296  public function ‪getLanguageIdColumnName()
297  {
299  }
300 
307  {
308  $this->translationOriginColumnName = ‪$translationOriginColumnName;
309  }
310 
317  {
319  }
320 
327  {
328  $this->translationOriginDiffSourceName = ‪$translationOriginDiffSourceName;
329  }
330 
337  {
339  }
340 
347  {
348  $this->modificationDateColumnName = ‪$modificationDateColumnName;
349  }
350 
357  {
359  }
360 
367  {
368  $this->creationDateColumnName = ‪$creationDateColumnName;
369  }
370 
377  {
379  }
380 
387  {
388  $this->creatorColumnName = ‪$creatorColumnName;
389  }
390 
396  public function ‪getCreatorColumnName()
397  {
399  }
400 
407  {
408  $this->deletedFlagColumnName = ‪$deletedFlagColumnName;
409  }
410 
416  public function ‪getDeletedFlagColumnName()
417  {
419  }
420 
427  {
428  $this->disabledFlagColumnName = ‪$disabledFlagColumnName;
429  }
430 
437  {
439  }
440 
447  {
448  $this->startTimeColumnName = ‪$startTimeColumnName;
449  }
450 
456  public function ‪getStartTimeColumnName()
457  {
459  }
460 
467  {
468  $this->endTimeColumnName = ‪$endTimeColumnName;
469  }
470 
476  public function ‪getEndTimeColumnName()
477  {
479  }
480 
487  {
488  $this->frontendUserGroupColumnName = ‪$frontendUserGroupColumnName;
489  }
490 
497  {
499  }
500 
507  {
508  $this->recordTypeColumnName = ‪$recordTypeColumnName;
509  }
510 
516  public function ‪getRecordTypeColumnName()
517  {
519  }
520 
524  public function ‪setIsStatic(‪$isStatic)
525  {
526  $this->isStatic = ‪$isStatic;
527  }
528 
532  public function ‪getIsStatic()
533  {
534  return ‪$this->isStatic;
535  }
536 
540  public function ‪setRootLevel(‪$rootLevel)
541  {
542  $this->rootLevel = ‪$rootLevel;
543  }
544 
548  public function ‪getRootLevel()
549  {
550  return ‪$this->rootLevel;
551  }
552 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setDeletedFlagColumnName
‪setDeletedFlagColumnName($deletedFlagColumnName)
Definition: DataMap.php:386
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getDeletedFlagColumnName
‪string getDeletedFlagColumnName()
Definition: DataMap.php:396
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$rootLevel
‪bool $rootLevel
Definition: DataMap.php:111
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$isStatic
‪bool $isStatic
Definition: DataMap.php:107
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getColumnMap
‪TYPO3 CMS Extbase Persistence Generic Mapper ColumnMap null getColumnMap($propertyName)
Definition: DataMap.php:225
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$languageIdColumnName
‪string $languageIdColumnName
Definition: DataMap.php:59
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getRecordTypeColumnName
‪string getRecordTypeColumnName()
Definition: DataMap.php:496
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\addColumnMap
‪addColumnMap(ColumnMap $columnMap)
Definition: DataMap.php:214
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getLanguageIdColumnName
‪string getLanguageIdColumnName()
Definition: DataMap.php:276
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap
Definition: DataMap.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getTranslationOriginDiffSourceName
‪string getTranslationOriginDiffSourceName()
Definition: DataMap.php:316
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getRootLevel
‪bool getRootLevel()
Definition: DataMap.php:528
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setPageIdColumnName
‪setPageIdColumnName($pageIdColumnName)
Definition: DataMap.php:246
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$columnMaps
‪array $columnMaps
Definition: DataMap.php:51
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getTableName
‪string getTableName()
Definition: DataMap.php:164
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getFrontEndUserGroupColumnName
‪string getFrontEndUserGroupColumnName()
Definition: DataMap.php:476
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$subclasses
‪array $subclasses
Definition: DataMap.php:45
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap
Definition: ColumnMap.php:22
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$translationOriginColumnName
‪string $translationOriginColumnName
Definition: DataMap.php:63
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setTableName
‪setTableName($tableName)
Definition: DataMap.php:154
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getCreationDateColumnName
‪string getCreationDateColumnName()
Definition: DataMap.php:356
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$frontendUserGroupColumnName
‪string $frontendUserGroupColumnName
Definition: DataMap.php:99
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$disabledFlagColumnName
‪string $disabledFlagColumnName
Definition: DataMap.php:87
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setDisabledFlagColumnName
‪setDisabledFlagColumnName($disabledFlagColumnName)
Definition: DataMap.php:406
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getClassName
‪string getClassName()
Definition: DataMap.php:144
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getStartTimeColumnName
‪string getStartTimeColumnName()
Definition: DataMap.php:436
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setIsStatic
‪setIsStatic($isStatic)
Definition: DataMap.php:504
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$endTimeColumnName
‪string $endTimeColumnName
Definition: DataMap.php:95
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getEndTimeColumnName
‪string getEndTimeColumnName()
Definition: DataMap.php:456
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$deletedFlagColumnName
‪string $deletedFlagColumnName
Definition: DataMap.php:83
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setSubclasses
‪setSubclasses(array $subclasses)
Definition: DataMap.php:194
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\isPersistableProperty
‪bool isPersistableProperty($propertyName)
Definition: DataMap.php:236
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getSubclasses
‪array getSubclasses()
Definition: DataMap.php:204
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$tableName
‪string $tableName
Definition: DataMap.php:33
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getRecordType
‪string getRecordType()
Definition: DataMap.php:184
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setClassName
‪setClassName($className)
Definition: DataMap.php:134
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setStartTimeColumnName
‪setStartTimeColumnName($startTimeColumnName)
Definition: DataMap.php:426
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getPageIdColumnName
‪string getPageIdColumnName()
Definition: DataMap.php:256
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setFrontEndUserGroupColumnName
‪setFrontEndUserGroupColumnName($frontendUserGroupColumnName)
Definition: DataMap.php:466
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getDisabledFlagColumnName
‪string getDisabledFlagColumnName()
Definition: DataMap.php:416
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$creationDateColumnName
‪string $creationDateColumnName
Definition: DataMap.php:75
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setCreatorColumnName
‪setCreatorColumnName($creatorColumnName)
Definition: DataMap.php:366
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$modificationDateColumnName
‪string $modificationDateColumnName
Definition: DataMap.php:71
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setRecordType
‪setRecordType($recordType)
Definition: DataMap.php:174
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setEndTimeColumnName
‪setEndTimeColumnName($endTimeColumnName)
Definition: DataMap.php:446
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$creatorColumnName
‪string $creatorColumnName
Definition: DataMap.php:79
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getModificationDateColumnName
‪string getModificationDateColumnName()
Definition: DataMap.php:336
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setRecordTypeColumnName
‪setRecordTypeColumnName($recordTypeColumnName)
Definition: DataMap.php:486
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap\getPropertyName
‪string getPropertyName()
Definition: ColumnMap.php:193
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$recordTypeColumnName
‪string $recordTypeColumnName
Definition: DataMap.php:103
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setTranslationOriginColumnName
‪setTranslationOriginColumnName($translationOriginColumnName)
Definition: DataMap.php:286
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getTranslationOriginColumnName
‪string getTranslationOriginColumnName()
Definition: DataMap.php:296
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$recordType
‪string $recordType
Definition: DataMap.php:39
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setModificationDateColumnName
‪setModificationDateColumnName($modificationDateColumnName)
Definition: DataMap.php:326
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$pageIdColumnName
‪string $pageIdColumnName
Definition: DataMap.php:55
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$translationOriginDiffSourceName
‪string $translationOriginDiffSourceName
Definition: DataMap.php:67
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setCreationDateColumnName
‪setCreationDateColumnName($creationDateColumnName)
Definition: DataMap.php:346
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setTranslationOriginDiffSourceName
‪setTranslationOriginDiffSourceName($translationOriginDiffSourceName)
Definition: DataMap.php:306
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper
Definition: ColumnMap.php:2
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setLanguageIdColumnName
‪setLanguageIdColumnName($languageIdColumnName)
Definition: DataMap.php:266
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getIsStatic
‪bool getIsStatic()
Definition: DataMap.php:512
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\setRootLevel
‪setRootLevel($rootLevel)
Definition: DataMap.php:520
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$className
‪string $className
Definition: DataMap.php:27
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\__construct
‪__construct($className, $tableName, $recordType=null, array $subclasses=[])
Definition: DataMap.php:121
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\$startTimeColumnName
‪string $startTimeColumnName
Definition: DataMap.php:91
‪TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap\getCreatorColumnName
‪string getCreatorColumnName()
Definition: DataMap.php:376