TYPO3 CMS  TYPO3_8-7
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 
20 class DataMap
21 {
27  protected $className;
28 
34  protected $tableName;
35 
41  protected $recordType;
42 
48  protected $subclasses = [];
49 
55  protected $columnMaps = [];
56 
60  protected $pageIdColumnName;
61 
66 
71 
76 
81 
86 
90  protected $creatorColumnName;
91 
96 
101 
106 
111 
116 
121 
125  protected $isStatic = false;
126 
130  protected $rootLevel = false;
131 
140  public function __construct($className, $tableName, $recordType = null, array $subclasses = [])
141  {
142  $this->setClassName($className);
143  $this->setTableName($tableName);
144  $this->setRecordType($recordType);
145  $this->setSubclasses($subclasses);
146  }
147 
153  public function setClassName($className)
154  {
155  $this->className = $className;
156  }
157 
163  public function getClassName()
164  {
165  return $this->className;
166  }
167 
173  public function setTableName($tableName)
174  {
175  $this->tableName = $tableName;
176  }
177 
183  public function getTableName()
184  {
185  return $this->tableName;
186  }
187 
193  public function setRecordType($recordType)
194  {
195  $this->recordType = $recordType;
196  }
197 
203  public function getRecordType()
204  {
205  return $this->recordType;
206  }
207 
213  public function setSubclasses(array $subclasses)
214  {
215  $this->subclasses = $subclasses;
216  }
217 
223  public function getSubclasses()
224  {
225  return $this->subclasses;
226  }
227 
233  public function addColumnMap(ColumnMap $columnMap)
234  {
235  $this->columnMaps[$columnMap->getPropertyName()] = $columnMap;
236  }
237 
244  public function getColumnMap($propertyName)
245  {
246  return $this->columnMaps[$propertyName];
247  }
248 
255  public function isPersistableProperty($propertyName)
256  {
257  return isset($this->columnMaps[$propertyName]);
258  }
259 
266  {
267  $this->pageIdColumnName = $pageIdColumnName;
268  }
269 
275  public function getPageIdColumnName()
276  {
278  }
279 
286  {
287  $this->languageIdColumnName = $languageIdColumnName;
288  }
289 
295  public function getLanguageIdColumnName()
296  {
298  }
299 
306  {
307  $this->translationOriginColumnName = $translationOriginColumnName;
308  }
309 
316  {
318  }
319 
326  {
327  $this->translationOriginDiffSourceName = $translationOriginDiffSourceName;
328  }
329 
336  {
338  }
339 
346  {
347  $this->modificationDateColumnName = $modificationDateColumnName;
348  }
349 
356  {
358  }
359 
366  {
367  $this->creationDateColumnName = $creationDateColumnName;
368  }
369 
375  public function getCreationDateColumnName()
376  {
378  }
379 
386  {
387  $this->creatorColumnName = $creatorColumnName;
388  }
389 
395  public function getCreatorColumnName()
396  {
398  }
399 
406  {
407  $this->deletedFlagColumnName = $deletedFlagColumnName;
408  }
409 
415  public function getDeletedFlagColumnName()
416  {
418  }
419 
426  {
427  $this->disabledFlagColumnName = $disabledFlagColumnName;
428  }
429 
435  public function getDisabledFlagColumnName()
436  {
438  }
439 
446  {
447  $this->startTimeColumnName = $startTimeColumnName;
448  }
449 
455  public function getStartTimeColumnName()
456  {
458  }
459 
466  {
467  $this->endTimeColumnName = $endTimeColumnName;
468  }
469 
475  public function getEndTimeColumnName()
476  {
478  }
479 
486  {
487  $this->frontendUserGroupColumnName = $frontendUserGroupColumnName;
488  }
489 
496  {
498  }
499 
506  {
507  $this->recordTypeColumnName = $recordTypeColumnName;
508  }
509 
515  public function getRecordTypeColumnName()
516  {
518  }
519 
523  public function setIsStatic($isStatic)
524  {
525  $this->isStatic = $isStatic;
526  }
527 
531  public function getIsStatic()
532  {
533  return $this->isStatic;
534  }
535 
539  public function setRootLevel($rootLevel)
540  {
541  $this->rootLevel = $rootLevel;
542  }
543 
547  public function getRootLevel()
548  {
549  return $this->rootLevel;
550  }
551 }
__construct($className, $tableName, $recordType=null, array $subclasses=[])
Definition: DataMap.php:140
setDisabledFlagColumnName($disabledFlagColumnName)
Definition: DataMap.php:425
setFrontEndUserGroupColumnName($frontendUserGroupColumnName)
Definition: DataMap.php:485
setTranslationOriginColumnName($translationOriginColumnName)
Definition: DataMap.php:305
setModificationDateColumnName($modificationDateColumnName)
Definition: DataMap.php:345
setCreationDateColumnName($creationDateColumnName)
Definition: DataMap.php:365
setTranslationOriginDiffSourceName($translationOriginDiffSourceName)
Definition: DataMap.php:325