TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
extbase
Classes
Persistence
Generic
Mapper
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
86
protected
$childTableWhereStatement
;
87
93
protected
$childSortByFieldName
;
94
100
protected
$relationTableName
;
101
107
protected
$relationTablePageIdColumnName
;
108
114
protected
$relationTableMatchFields
;
115
121
protected
$relationTableInsertFields
;
122
128
protected
$relationTableWhereStatement
;
129
135
protected
$parentKeyFieldName
;
136
142
protected
$parentTableFieldName
;
143
149
protected
$childKeyFieldName
;
150
158
protected
$dateTimeStorageFormat
;
159
163
protected
$type
;
164
168
protected
$internalType
;
169
177
public
function
__construct
(
$columnName
,
$propertyName
)
178
{
179
// @todo Enable aliases (tx_anotherextension_addedcolumn -> theAddedColumn)
180
$this->
setColumnName
(
$columnName
);
181
$this->
setPropertyName
(
$propertyName
);
182
}
183
187
public
function
setTypeOfRelation
(
$typeOfRelation
)
188
{
189
$this->typeOfRelation =
$typeOfRelation
;
190
}
191
195
public
function
getTypeOfRelation
()
196
{
197
return
$this->typeOfRelation
;
198
}
199
203
public
function
setPropertyName
(
$propertyName
)
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
235
public
function
setChildTableName
(
$childTableName
)
236
{
237
$this->childTableName =
$childTableName
;
238
}
239
243
public
function
getChildTableName
()
244
{
245
return
$this->childTableName
;
246
}
247
251
public
function
setChildTableWhereStatement
(
$childTableWhereStatement
)
252
{
253
$this->childTableWhereStatement =
$childTableWhereStatement
;
254
}
255
259
public
function
getChildTableWhereStatement
()
260
{
261
return
$this->childTableWhereStatement
;
262
}
263
267
public
function
setChildSortByFieldName
(
$childSortByFieldName
)
268
{
269
$this->childSortByFieldName =
$childSortByFieldName
;
270
}
271
275
public
function
getChildSortByFieldName
()
276
{
277
return
$this->childSortByFieldName
;
278
}
279
283
public
function
setRelationTableName
(
$relationTableName
)
284
{
285
$this->relationTableName =
$relationTableName
;
286
}
287
291
public
function
getRelationTableName
()
292
{
293
return
$this->relationTableName
;
294
}
295
299
public
function
setRelationTablePageIdColumnName
(
$relationTablePageIdColumnName
)
300
{
301
$this->relationTablePageIdColumnName =
$relationTablePageIdColumnName
;
302
}
303
307
public
function
getRelationTablePageIdColumnName
()
308
{
309
return
$this->relationTablePageIdColumnName
;
310
}
311
315
public
function
setRelationTableMatchFields
(array
$relationTableMatchFields
)
316
{
317
$this->relationTableMatchFields =
$relationTableMatchFields
;
318
}
319
323
public
function
getRelationTableMatchFields
()
324
{
325
return
$this->relationTableMatchFields
;
326
}
327
331
public
function
setRelationTableInsertFields
(array
$relationTableInsertFields
)
332
{
333
$this->relationTableInsertFields =
$relationTableInsertFields
;
334
}
335
339
public
function
getRelationTableInsertFields
()
340
{
341
return
$this->relationTableInsertFields
;
342
}
343
347
public
function
setRelationTableWhereStatement
(
$relationTableWhereStatement
)
348
{
349
$this->relationTableWhereStatement =
$relationTableWhereStatement
;
350
}
351
355
public
function
getRelationTableWhereStatement
()
356
{
357
return
$this->relationTableWhereStatement
;
358
}
359
363
public
function
setParentKeyFieldName
(
$parentKeyFieldName
)
364
{
365
$this->parentKeyFieldName =
$parentKeyFieldName
;
366
}
367
371
public
function
getParentKeyFieldName
()
372
{
373
return
$this->parentKeyFieldName
;
374
}
375
379
public
function
setParentTableFieldName
(
$parentTableFieldName
)
380
{
381
$this->parentTableFieldName =
$parentTableFieldName
;
382
}
383
387
public
function
getParentTableFieldName
()
388
{
389
return
$this->parentTableFieldName
;
390
}
391
395
public
function
setChildKeyFieldName
(
$childKeyFieldName
)
396
{
397
$this->childKeyFieldName =
$childKeyFieldName
;
398
}
399
403
public
function
getChildKeyFieldName
()
404
{
405
return
$this->childKeyFieldName
;
406
}
407
411
public
function
setDateTimeStorageFormat
(
$dateTimeStorageFormat
)
412
{
413
$this->dateTimeStorageFormat =
$dateTimeStorageFormat
;
414
}
415
419
public
function
getDateTimeStorageFormat
()
420
{
421
return
$this->dateTimeStorageFormat
;
422
}
423
427
public
function
setInternalType
(
$internalType
)
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
}
Generated on Wed Nov 11 2015 01:51:51 for TYPO3 by
1.8.3