tx_anctestextension_domain_model_nctestobj.php
13.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<?php
return [
'ctrl' => [
'title' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj',
'label' => 'nc_test_string',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'versioningWS' => true,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'searchFields' => 'nc_test_string,nc_test_text,nc_test_rich_text,nc_test_password,nc_test_intenger,nc_test_floating_point,nc_test_boolean,nc_test_date,nc_test_date_time,nc_test_date_timestamp,nc_test_time,nc_test_time_sec,nc_test_selectlist,nc_test_file,nc_test_image,nc_test_string_required',
'iconfile' => 'EXT:anctestextension/Resources/Public/Icons/tx_anctestextension_domain_model_nctestobj.gif'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, nc_test_string, nc_test_text, nc_test_rich_text, nc_test_password, nc_test_intenger, nc_test_floating_point, nc_test_boolean, nc_test_date, nc_test_date_time, nc_test_date_timestamp, nc_test_time, nc_test_time_sec, nc_test_selectlist, nc_test_file, nc_test_image, nc_test_string_required',
],
'types' => [
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, nc_test_string, nc_test_text, nc_test_rich_text, nc_test_password, nc_test_intenger, nc_test_floating_point, nc_test_boolean, nc_test_date, nc_test_date_time, nc_test_date_timestamp, nc_test_time, nc_test_time_sec, nc_test_selectlist, nc_test_file, nc_test_image, nc_test_string_required, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'],
],
'columns' => [
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'special' => 'languages',
'items' => [
[
'LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages',
-1,
'flags-multiple'
]
],
'default' => 0,
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['', 0],
],
'foreign_table' => 'tx_anctestextension_domain_model_nctestobj',
'foreign_table_where' => 'AND tx_anctestextension_domain_model_nctestobj.pid=###CURRENT_PID### AND tx_anctestextension_domain_model_nctestobj.sys_language_uid IN (-1,0)',
],
],
'l10n_diffsource' => [
'config' => [
'type' => 'passthrough',
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
],
],
'hidden' => [
'exclude' => true,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => [
'type' => 'check',
'items' => [
'1' => [
'0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
]
],
],
],
'starttime' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'input',
'size' => 13,
'eval' => 'datetime',
'default' => 0,
]
],
'endtime' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'input',
'size' => 13,
'eval' => 'datetime',
'default' => 0,
'range' => [
'upper' => mktime(0, 0, 0, 1, 1, 2038)
]
],
],
'nc_test_string' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_string',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim'
],
],
'nc_test_text' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_text',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 15,
'eval' => 'trim'
]
],
'nc_test_rich_text' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_rich_text',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 15,
'eval' => 'trim',
],
'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
],
'nc_test_password' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_password',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'nospace,password'
]
],
'nc_test_intenger' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_intenger',
'config' => [
'type' => 'input',
'size' => 4,
'eval' => 'int'
]
],
'nc_test_floating_point' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_floating_point',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'double2'
]
],
'nc_test_boolean' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_boolean',
'config' => [
'type' => 'check',
'items' => [
'1' => [
'0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled'
]
],
'default' => 0
]
],
'nc_test_date' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_date',
'config' => [
'dbType' => 'date',
'type' => 'input',
'size' => 7,
'eval' => 'date',
'default' => '0000-00-00'
],
],
'nc_test_date_time' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_date_time',
'config' => [
'dbType' => 'datetime',
'type' => 'input',
'size' => 12,
'eval' => 'datetime',
'default' => '0000-00-00 00:00:00'
],
],
'nc_test_date_timestamp' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_date_timestamp',
'config' => [
'type' => 'input',
'size' => 7,
'eval' => 'date',
'default' => time()
],
],
'nc_test_time' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_time',
'config' => [
'type' => 'input',
'size' => 4,
'eval' => 'time',
'default' => time()
]
],
'nc_test_time_sec' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_time_sec',
'config' => [
'type' => 'input',
'size' => 6,
'eval' => 'timesec',
'default' => time()
]
],
'nc_test_selectlist' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_selectlist',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['-- Label --', 0],
],
'size' => 1,
'maxitems' => 1,
'eval' => ''
],
],
'nc_test_file' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_file',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'nc_test_file',
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media.addFileReference'
],
'foreign_types' => [
'0' => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
]
],
'maxitems' => 1
]
),
],
'nc_test_image' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_image',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'nc_test_image',
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
],
'foreign_types' => [
'0' => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
],
\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
]
],
'maxitems' => 1
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
],
'nc_test_string_required' => [
'exclude' => true,
'label' => 'LLL:EXT:anctestextension/Resources/Private/Language/locallang_db.xlf:tx_anctestextension_domain_model_nctestobj.nc_test_string_required',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim,required'
],
],
],
];