TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ColumnMap.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Extbase\Persistence\Generic\Mapper;
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 ColumnMap
21 {
25  const RELATION_NONE = 'RELATION_NONE';
26  const RELATION_HAS_ONE = 'RELATION_HAS_ONE';
27  const RELATION_HAS_MANY = 'RELATION_HAS_MANY';
28  const RELATION_BELONGS_TO_MANY = 'RELATION_BELONGS_TO_MANY';
29  const RELATION_HAS_AND_BELONGS_TO_MANY = 'RELATION_HAS_AND_BELONGS_TO_MANY';
30 
34  const RELATION_PARENT_FOREIGN_KEY = 'RELATION_PARENT_FOREIGN_KEY';
35  const RELATION_CHILD_FOREIGN_KEY = 'RELATION_CHILD_FOREIGN_KEY';
36  const RELATION_PARENT_CSV = 'RELATION_PARENT_CSV';
37  const RELATION_INTERMEDIATE_TABLE = 'RELATION_INTERMEDIATE_TABLE';
38 
42  const STRATEGY_EAGER = 'eager';
43  const STRATEGY_LAZY_PROXY = 'proxy';
44  const STRATEGY_LAZY_STORAGE = 'storage';
45 
51  protected $propertyName;
52 
58  protected $columnName;
59 
65  protected $typeOfRelation;
66 
72  protected $childClassName;
73 
79  protected $childTableName;
80 
87 
94 
101 
108 
115 
122 
129 
136 
143 
150 
159 
163  protected $type;
164 
168  protected $internalType;
169 
178  {
179  // @todo Enable aliases (tx_anotherextension_addedcolumn -> theAddedColumn)
180  $this->setColumnName($columnName);
182  }
183 
188  {
189  $this->typeOfRelation = $typeOfRelation;
190  }
191 
195  public function getTypeOfRelation()
196  {
197  return $this->typeOfRelation;
198  }
199 
204  {
205  $this->propertyName = $propertyName;
206  }
207 
211  public function getPropertyName()
212  {
213  return $this->propertyName;
214  }
215 
219  public function setColumnName($columnName)
220  {
221  $this->columnName = $columnName;
222  }
223 
227  public function getColumnName()
228  {
229  return $this->columnName;
230  }
231 
236  {
237  $this->childTableName = $childTableName;
238  }
239 
243  public function getChildTableName()
244  {
245  return $this->childTableName;
246  }
247 
252  {
253  $this->childTableWhereStatement = $childTableWhereStatement;
254  }
255 
259  public function getChildTableWhereStatement()
260  {
262  }
263 
268  {
269  $this->childSortByFieldName = $childSortByFieldName;
270  }
271 
275  public function getChildSortByFieldName()
276  {
278  }
279 
284  {
285  $this->relationTableName = $relationTableName;
286  }
287 
291  public function getRelationTableName()
292  {
294  }
295 
300  {
301  $this->relationTablePageIdColumnName = $relationTablePageIdColumnName;
302  }
303 
308  {
310  }
311 
316  {
317  $this->relationTableMatchFields = $relationTableMatchFields;
318  }
319 
323  public function getRelationTableMatchFields()
324  {
326  }
327 
332  {
333  $this->relationTableInsertFields = $relationTableInsertFields;
334  }
335 
340  {
342  }
343 
348  {
349  $this->relationTableWhereStatement = $relationTableWhereStatement;
350  }
351 
356  {
358  }
359 
364  {
365  $this->parentKeyFieldName = $parentKeyFieldName;
366  }
367 
371  public function getParentKeyFieldName()
372  {
374  }
375 
380  {
381  $this->parentTableFieldName = $parentTableFieldName;
382  }
383 
387  public function getParentTableFieldName()
388  {
390  }
391 
396  {
397  $this->childKeyFieldName = $childKeyFieldName;
398  }
399 
403  public function getChildKeyFieldName()
404  {
406  }
407 
412  {
413  $this->dateTimeStorageFormat = $dateTimeStorageFormat;
414  }
415 
419  public function getDateTimeStorageFormat()
420  {
422  }
423 
428  {
429  $this->internalType = $internalType;
430  }
431 
435  public function getInternalType()
436  {
437  return $this->internalType;
438  }
439 
443  public function setType($type)
444  {
445  $this->type = $type;
446  }
447 
451  public function getType()
452  {
453  return $this->type;
454  }
455 }
setRelationTablePageIdColumnName($relationTablePageIdColumnName)
Definition: ColumnMap.php:299
setChildTableWhereStatement($childTableWhereStatement)
Definition: ColumnMap.php:251
setRelationTableMatchFields(array $relationTableMatchFields)
Definition: ColumnMap.php:315
setRelationTableInsertFields(array $relationTableInsertFields)
Definition: ColumnMap.php:331
setRelationTableWhereStatement($relationTableWhereStatement)
Definition: ColumnMap.php:347