TYPO3 CMS  TYPO3_7-6
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 
154  public function setClassName($className)
155  {
156  $this->className = $className;
157  }
158 
164  public function getClassName()
165  {
166  return $this->className;
167  }
168 
175  public function setTableName($tableName)
176  {
177  $this->tableName = $tableName;
178  }
179 
185  public function getTableName()
186  {
187  return $this->tableName;
188  }
189 
196  public function setRecordType($recordType)
197  {
198  $this->recordType = $recordType;
199  }
200 
206  public function getRecordType()
207  {
208  return $this->recordType;
209  }
210 
217  public function setSubclasses(array $subclasses)
218  {
219  $this->subclasses = $subclasses;
220  }
221 
227  public function getSubclasses()
228  {
229  return $this->subclasses;
230  }
231 
238  public function addColumnMap(ColumnMap $columnMap)
239  {
240  $this->columnMaps[$columnMap->getPropertyName()] = $columnMap;
241  }
242 
249  public function getColumnMap($propertyName)
250  {
251  return $this->columnMaps[$propertyName];
252  }
253 
260  public function isPersistableProperty($propertyName)
261  {
262  return isset($this->columnMaps[$propertyName]);
263  }
264 
272  {
273  $this->pageIdColumnName = $pageIdColumnName;
274  }
275 
281  public function getPageIdColumnName()
282  {
284  }
285 
293  {
294  $this->languageIdColumnName = $languageIdColumnName;
295  }
296 
302  public function getLanguageIdColumnName()
303  {
305  }
306 
314  {
315  $this->translationOriginColumnName = $translationOriginColumnName;
316  }
317 
324  {
326  }
327 
335  {
336  $this->translationOriginDiffSourceName = $translationOriginDiffSourceName;
337  }
338 
345  {
347  }
348 
356  {
357  $this->modificationDateColumnName = $modificationDateColumnName;
358  }
359 
366  {
368  }
369 
377  {
378  $this->creationDateColumnName = $creationDateColumnName;
379  }
380 
386  public function getCreationDateColumnName()
387  {
389  }
390 
398  {
399  $this->creatorColumnName = $creatorColumnName;
400  }
401 
407  public function getCreatorColumnName()
408  {
410  }
411 
419  {
420  $this->deletedFlagColumnName = $deletedFlagColumnName;
421  }
422 
428  public function getDeletedFlagColumnName()
429  {
431  }
432 
440  {
441  $this->disabledFlagColumnName = $disabledFlagColumnName;
442  }
443 
449  public function getDisabledFlagColumnName()
450  {
452  }
453 
461  {
462  $this->startTimeColumnName = $startTimeColumnName;
463  }
464 
470  public function getStartTimeColumnName()
471  {
473  }
474 
482  {
483  $this->endTimeColumnName = $endTimeColumnName;
484  }
485 
491  public function getEndTimeColumnName()
492  {
494  }
495 
503  {
504  $this->frontendUserGroupColumnName = $frontendUserGroupColumnName;
505  }
506 
513  {
515  }
516 
524  {
525  $this->recordTypeColumnName = $recordTypeColumnName;
526  }
527 
533  public function getRecordTypeColumnName()
534  {
536  }
537 
541  public function setIsStatic($isStatic)
542  {
543  $this->isStatic = $isStatic;
544  }
545 
549  public function getIsStatic()
550  {
551  return $this->isStatic;
552  }
553 
557  public function setRootLevel($rootLevel)
558  {
559  $this->rootLevel = $rootLevel;
560  }
561 
565  public function getRootLevel()
566  {
567  return $this->rootLevel;
568  }
569 }
__construct($className, $tableName, $recordType=null, array $subclasses=[])
Definition: DataMap.php:140
setDisabledFlagColumnName($disabledFlagColumnName)
Definition: DataMap.php:439
setFrontEndUserGroupColumnName($frontendUserGroupColumnName)
Definition: DataMap.php:502
setTranslationOriginColumnName($translationOriginColumnName)
Definition: DataMap.php:313
setModificationDateColumnName($modificationDateColumnName)
Definition: DataMap.php:355
setCreationDateColumnName($creationDateColumnName)
Definition: DataMap.php:376
setTranslationOriginDiffSourceName($translationOriginDiffSourceName)
Definition: DataMap.php:334