TYPO3 CMS  TYPO3_6-2
ColumnMap.php
Go to the documentation of this file.
1 <?php
3 
19 class ColumnMap {
23  const RELATION_NONE = 'RELATION_NONE';
24  const RELATION_HAS_ONE = 'RELATION_HAS_ONE';
25  const RELATION_HAS_MANY = 'RELATION_HAS_MANY';
26  const RELATION_BELONGS_TO_MANY = 'RELATION_BELONGS_TO_MANY';
27  const RELATION_HAS_AND_BELONGS_TO_MANY = 'RELATION_HAS_AND_BELONGS_TO_MANY';
28 
32  const RELATION_PARENT_FOREIGN_KEY = 'RELATION_PARENT_FOREIGN_KEY';
33  const RELATION_CHILD_FOREIGN_KEY = 'RELATION_CHILD_FOREIGN_KEY';
34  const RELATION_PARENT_CSV = 'RELATION_PARENT_CSV';
35  const RELATION_INTERMEDIATE_TABLE = 'RELATION_INTERMEDIATE_TABLE';
36 
40  const STRATEGY_EAGER = 'eager';
41  const STRATEGY_LAZY_PROXY = 'proxy';
42  const STRATEGY_LAZY_STORAGE = 'storage';
43 
49  protected $propertyName;
50 
56  protected $columnName;
57 
63  protected $typeOfRelation;
64 
70  protected $childClassName;
71 
77  protected $childTableName;
78 
85 
92 
98  protected $relationTableName;
99 
106 
113 
120 
127 
134 
141 
148 
157 
161  protected $type;
162 
166  protected $internalType;
167 
176  // TODO Enable aliases (tx_anotherextension_addedcolumn -> theAddedColumn)
177  $this->setColumnName($columnName);
179  }
180 
185  $this->typeOfRelation = $typeOfRelation;
186  }
187 
191  public function getTypeOfRelation() {
192  return $this->typeOfRelation;
193  }
194 
198  public function setPropertyName($propertyName) {
199  $this->propertyName = $propertyName;
200  }
201 
205  public function getPropertyName() {
206  return $this->propertyName;
207  }
208 
212  public function setColumnName($columnName) {
213  $this->columnName = $columnName;
214  }
215 
219  public function getColumnName() {
220  return $this->columnName;
221  }
222 
227  $this->childTableName = $childTableName;
228  }
229 
233  public function getChildTableName() {
234  return $this->childTableName;
235  }
236 
241  $this->childTableWhereStatement = $childTableWhereStatement;
242  }
243 
247  public function getChildTableWhereStatement() {
249  }
250 
255  $this->childSortByFieldName = $childSortByFieldName;
256  }
257 
261  public function getChildSortByFieldName() {
263  }
264 
269  $this->relationTableName = $relationTableName;
270  }
271 
275  public function getRelationTableName() {
277  }
278 
283  $this->relationTablePageIdColumnName = $relationTablePageIdColumnName;
284  }
285 
291  }
292 
297  $this->relationTableMatchFields = $relationTableMatchFields;
298  }
299 
303  public function getRelationTableMatchFields() {
305  }
306 
311  $this->relationTableInsertFields = $relationTableInsertFields;
312  }
313 
317  public function getRelationTableInsertFields() {
319  }
320 
325  $this->relationTableWhereStatement = $relationTableWhereStatement;
326  }
327 
331  public function getRelationTableWhereStatement() {
333  }
334 
339  $this->parentKeyFieldName = $parentKeyFieldName;
340  }
341 
345  public function getParentKeyFieldName() {
347  }
348 
353  $this->parentTableFieldName = $parentTableFieldName;
354  }
355 
359  public function getParentTableFieldName() {
361  }
362 
367  $this->childKeyFieldName = $childKeyFieldName;
368  }
369 
373  public function getChildKeyFieldName() {
375  }
376 
381  $this->dateTimeStorageFormat = $dateTimeStorageFormat;
382  }
383 
387  public function getDateTimeStorageFormat() {
389  }
390 
394  public function setInternalType($internalType) {
395  $this->internalType = $internalType;
396  }
397 
401  public function getInternalType() {
402  return $this->internalType;
403  }
404 
408  public function setType($type) {
409  $this->type = $type;
410  }
411 
415  public function getType() {
416  return $this->type;
417  }
418 }
setRelationTablePageIdColumnName($relationTablePageIdColumnName)
Definition: ColumnMap.php:282
setRelationTableMatchFields(array $relationTableMatchFields)
Definition: ColumnMap.php:296
setRelationTableWhereStatement($relationTableWhereStatement)
Definition: ColumnMap.php:324
setRelationTableInsertFields(array $relationTableInsertFields)
Definition: ColumnMap.php:310
setChildTableWhereStatement($childTableWhereStatement)
Definition: ColumnMap.php:240