TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
extbase
Classes
Persistence
Generic
Mapper
DataMap.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
DataMap
21
{
27
protected
$className
;
28
34
protected
$tableName
;
35
41
protected
$recordType
;
42
48
protected
$subclasses
= array();
49
55
protected
$columnMaps
= array();
56
60
protected
$pageIdColumnName
;
61
65
protected
$languageIdColumnName
;
66
70
protected
$translationOriginColumnName
;
71
75
protected
$translationOriginDiffSourceName
;
76
80
protected
$modificationDateColumnName
;
81
85
protected
$creationDateColumnName
;
86
90
protected
$creatorColumnName
;
91
95
protected
$deletedFlagColumnName
;
96
100
protected
$disabledFlagColumnName
;
101
105
protected
$startTimeColumnName
;
106
110
protected
$endTimeColumnName
;
111
115
protected
$frontendUserGroupColumnName
;
116
120
protected
$recordTypeColumnName
;
121
125
protected
$isStatic
=
false
;
126
130
protected
$rootLevel
=
false
;
131
140
public
function
__construct
(
$className
,
$tableName
,
$recordType
= null, array
$subclasses
= array())
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
271
public
function
setPageIdColumnName
(
$pageIdColumnName
)
272
{
273
$this->pageIdColumnName =
$pageIdColumnName
;
274
}
275
281
public
function
getPageIdColumnName
()
282
{
283
return
$this->pageIdColumnName
;
284
}
285
292
public
function
setLanguageIdColumnName
(
$languageIdColumnName
)
293
{
294
$this->languageIdColumnName =
$languageIdColumnName
;
295
}
296
302
public
function
getLanguageIdColumnName
()
303
{
304
return
$this->languageIdColumnName
;
305
}
306
313
public
function
setTranslationOriginColumnName
(
$translationOriginColumnName
)
314
{
315
$this->translationOriginColumnName =
$translationOriginColumnName
;
316
}
317
323
public
function
getTranslationOriginColumnName
()
324
{
325
return
$this->translationOriginColumnName
;
326
}
327
334
public
function
setTranslationOriginDiffSourceName
(
$translationOriginDiffSourceName
)
335
{
336
$this->translationOriginDiffSourceName =
$translationOriginDiffSourceName
;
337
}
338
344
public
function
getTranslationOriginDiffSourceName
()
345
{
346
return
$this->translationOriginDiffSourceName
;
347
}
348
355
public
function
setModificationDateColumnName
(
$modificationDateColumnName
)
356
{
357
$this->modificationDateColumnName =
$modificationDateColumnName
;
358
}
359
365
public
function
getModificationDateColumnName
()
366
{
367
return
$this->modificationDateColumnName
;
368
}
369
376
public
function
setCreationDateColumnName
(
$creationDateColumnName
)
377
{
378
$this->creationDateColumnName =
$creationDateColumnName
;
379
}
380
386
public
function
getCreationDateColumnName
()
387
{
388
return
$this->creationDateColumnName
;
389
}
390
397
public
function
setCreatorColumnName
(
$creatorColumnName
)
398
{
399
$this->creatorColumnName =
$creatorColumnName
;
400
}
401
407
public
function
getCreatorColumnName
()
408
{
409
return
$this->creatorColumnName
;
410
}
411
418
public
function
setDeletedFlagColumnName
(
$deletedFlagColumnName
)
419
{
420
$this->deletedFlagColumnName =
$deletedFlagColumnName
;
421
}
422
428
public
function
getDeletedFlagColumnName
()
429
{
430
return
$this->deletedFlagColumnName
;
431
}
432
439
public
function
setDisabledFlagColumnName
(
$disabledFlagColumnName
)
440
{
441
$this->disabledFlagColumnName =
$disabledFlagColumnName
;
442
}
443
449
public
function
getDisabledFlagColumnName
()
450
{
451
return
$this->disabledFlagColumnName
;
452
}
453
460
public
function
setStartTimeColumnName
(
$startTimeColumnName
)
461
{
462
$this->startTimeColumnName =
$startTimeColumnName
;
463
}
464
470
public
function
getStartTimeColumnName
()
471
{
472
return
$this->startTimeColumnName
;
473
}
474
481
public
function
setEndTimeColumnName
(
$endTimeColumnName
)
482
{
483
$this->endTimeColumnName =
$endTimeColumnName
;
484
}
485
491
public
function
getEndTimeColumnName
()
492
{
493
return
$this->endTimeColumnName
;
494
}
495
502
public
function
setFrontEndUserGroupColumnName
(
$frontendUserGroupColumnName
)
503
{
504
$this->frontendUserGroupColumnName =
$frontendUserGroupColumnName
;
505
}
506
512
public
function
getFrontEndUserGroupColumnName
()
513
{
514
return
$this->frontendUserGroupColumnName
;
515
}
516
523
public
function
setRecordTypeColumnName
(
$recordTypeColumnName
)
524
{
525
$this->recordTypeColumnName =
$recordTypeColumnName
;
526
}
527
533
public
function
getRecordTypeColumnName
()
534
{
535
return
$this->recordTypeColumnName
;
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
}
Generated on Wed Nov 11 2015 01:51:53 for TYPO3 by
1.8.3