TYPO3 CMS  TYPO3_6-2
DataMap.php
Go to the documentation of this file.
1 <?php
3 
19 class DataMap {
20 
26  protected $className;
27 
33  protected $tableName;
34 
40  protected $recordType;
41 
47  protected $subclasses = array();
48 
54  protected $columnMaps = array();
55 
59  protected $pageIdColumnName;
60 
65 
70 
75 
80 
84  protected $creatorColumnName;
85 
90 
95 
100 
105 
110 
115 
119  protected $isStatic = FALSE;
120 
124  protected $rootLevel = FALSE;
125 
134  public function __construct($className, $tableName, $recordType = NULL, array $subclasses = array()) {
135  $this->setClassName($className);
136  $this->setTableName($tableName);
137  $this->setRecordType($recordType);
138  $this->setSubclasses($subclasses);
139  }
140 
147  public function setClassName($className) {
148  $this->className = $className;
149  }
150 
156  public function getClassName() {
157  return $this->className;
158  }
159 
166  public function setTableName($tableName) {
167  $this->tableName = $tableName;
168  }
169 
175  public function getTableName() {
176  return $this->tableName;
177  }
178 
185  public function setRecordType($recordType) {
186  $this->recordType = $recordType;
187  }
188 
194  public function getRecordType() {
195  return $this->recordType;
196  }
197 
204  public function setSubclasses(array $subclasses) {
205  $this->subclasses = $subclasses;
206  }
207 
213  public function getSubclasses() {
214  return $this->subclasses;
215  }
216 
223  public function addColumnMap(ColumnMap $columnMap) {
224  $this->columnMaps[$columnMap->getPropertyName()] = $columnMap;
225  }
226 
233  public function getColumnMap($propertyName) {
234  return $this->columnMaps[$propertyName];
235  }
236 
243  public function isPersistableProperty($propertyName) {
244  return isset($this->columnMaps[$propertyName]);
245  }
246 
254  $this->pageIdColumnName = $pageIdColumnName;
255  }
256 
262  public function getPageIdColumnName() {
264  }
265 
273  $this->languageIdColumnName = $languageIdColumnName;
274  }
275 
281  public function getLanguageIdColumnName() {
283  }
284 
292  $this->translationOriginColumnName = $translationOriginColumnName;
293  }
294 
300  public function getTranslationOriginColumnName() {
302  }
303 
311  $this->modificationDateColumnName = $modificationDateColumnName;
312  }
313 
319  public function getModificationDateColumnName() {
321  }
322 
330  $this->creationDateColumnName = $creationDateColumnName;
331  }
332 
338  public function getCreationDateColumnName() {
340  }
341 
349  $this->creatorColumnName = $creatorColumnName;
350  }
351 
357  public function getCreatorColumnName() {
359  }
360 
368  $this->deletedFlagColumnName = $deletedFlagColumnName;
369  }
370 
376  public function getDeletedFlagColumnName() {
378  }
379 
387  $this->disabledFlagColumnName = $disabledFlagColumnName;
388  }
389 
395  public function getDisabledFlagColumnName() {
397  }
398 
406  $this->startTimeColumnName = $startTimeColumnName;
407  }
408 
414  public function getStartTimeColumnName() {
416  }
417 
425  $this->endTimeColumnName = $endTimeColumnName;
426  }
427 
433  public function getEndTimeColumnName() {
435  }
436 
444  $this->frontendUserGroupColumnName = $frontendUserGroupColumnName;
445  }
446 
452  public function getFrontEndUserGroupColumnName() {
454  }
455 
463  $this->recordTypeColumnName = $recordTypeColumnName;
464  }
465 
471  public function getRecordTypeColumnName() {
473  }
474 
478  public function setIsStatic($isStatic) {
479  $this->isStatic = $isStatic;
480  }
481 
485  public function getIsStatic() {
486  return $this->isStatic;
487  }
488 
492  public function setRootLevel($rootLevel) {
493  $this->rootLevel = $rootLevel;
494  }
495 
499  public function getRootLevel() {
500  return $this->rootLevel;
501  }
502 }
__construct($className, $tableName, $recordType=NULL, array $subclasses=array())
Definition: DataMap.php:134
setDisabledFlagColumnName($disabledFlagColumnName)
Definition: DataMap.php:386
setFrontEndUserGroupColumnName($frontendUserGroupColumnName)
Definition: DataMap.php:443
setTranslationOriginColumnName($translationOriginColumnName)
Definition: DataMap.php:291
setModificationDateColumnName($modificationDateColumnName)
Definition: DataMap.php:310
setCreationDateColumnName($creationDateColumnName)
Definition: DataMap.php:329