tx_terfe2_domain_model_version.php 17.4 KB
Newer Older
1
<?php
2 3
return [
    'ctrl' => [
4
        'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version',
5
        'label' => 'title',
6 7
        'label_alt' => 'version_string',
        'label_alt_force' => 1,
8 9 10 11 12 13 14 15 16 17
        'searchFields' => 'title,description,state,em_category',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'versioningWS' => 2,
        'versioning_followPages' => true,
        'origUid' => 't3_origuid',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l18n_parent',
        'transOrigDiffSourceField' => 'l18n_diffsource',
        'delete' => 'deleted',
18
        'enablecolumns' => [
19
            'disabled' => 'hidden'
20
        ],
21
        'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/version.gif',
22 23
    ],
    'interface' => [
24
        'showRecordFieldList' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,software_relations,author,file_hash,extension_provider,has_zip_file,has_images,composer_info',
25 26 27 28 29 30 31 32 33
    ],
    'types' => [
        '1' => ['showitem' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,software_relations,author,file_hash,extension_provider,has_zip_file,has_images,composer_info'],
    ],
    'palettes' => [
        '1' => ['showitem' => ''],
    ],
    'columns' => [
        'sys_language_uid' => [
34 35
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
36
            'config' => [
37 38 39
                'type' => 'select',
                'foreign_table' => 'sys_language',
                'foreign_table_where' => 'ORDER BY sys_language.title',
40 41 42 43 44 45 46
                'items' => [
                    ['LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1],
                    ['LLL:EXT:lang/locallang_general.php:LGL.default_value', 0],
                ],
            ],
        ],
        'l18n_parent' => [
47 48 49
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
50
            'config' => [
51
                'type' => 'select',
52 53 54
                'items' => [
                    ['', 0],
                ],
55 56
                'foreign_table' => 'tx_terfe2_domain_model_version',
                'foreign_table_where' => 'AND tx_terfe2_domain_model_version.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_version.sys_language_uid IN (-1,0)',
57 58 59 60
            ],
        ],
        'l18n_diffsource' => [
            'config' => [
61
                'type' => 'passthrough',
62 63 64
            ],
        ],
        't3ver_label' => [
65 66
            'displayCond' => 'FIELD:t3ver_label:REQ:true',
            'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
67
            'config' => [
68 69
                'type' => 'none',
                'cols' => 27,
70 71 72
            ],
        ],
        'hidden' => [
73 74
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
75
            'config' => [
76
                'type' => 'check',
77 78 79
            ],
        ],
        'title' => [
80
            'exclude' => 1,
81
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.title',
82
            'config' => [
83 84 85
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim,required',
86 87 88
            ],
        ],
        'description' => [
89
            'exclude' => 1,
90
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.description',
91
            'config' => [
92 93 94
                'type' => 'text',
                'cols' => 30,
                'rows' => 5,
95 96 97
            ],
        ],
        'version_number' => [
98
            'exclude' => 1,
99
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.version_number',
100
            'config' => [
101 102 103
                'type' => 'input',
                'size' => 12,
                'eval' => 'int,required',
104 105 106
            ],
        ],
        'version_string' => [
107
            'exclude' => 1,
108
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.version_string',
109
            'config' => [
110 111 112
                'type' => 'input',
                'size' => 12,
                'eval' => 'trim,required',
113 114 115
            ],
        ],
        'upload_date' => [
116
            'exclude' => 1,
117
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.upload_date',
118
            'config' => [
119 120 121 122 123
                'type' => 'input',
                'size' => 12,
                'max' => 20,
                'eval' => 'datetime,required',
                'default' => '0',
124 125 126
            ],
        ],
        'upload_comment' => [
127
            'exclude' => 1,
128
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.upload_comment',
129
            'config' => [
130 131
                'type' => 'text',
                'rows' => 5,
132 133 134
            ],
        ],
        'download_counter' => [
135
            'exclude' => 1,
136
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.download_counter',
137
            'config' => [
138 139
                'type' => 'none',
                'size' => 12,
140 141 142
            ],
        ],
        'frontend_download_counter' => [
143
            'exclude' => 1,
144
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.frontend_download_counter',
145
            'config' => [
146 147
                'type' => 'none',
                'size' => 12,
148 149 150
            ],
        ],
        'state' => [
151
            'exclude' => 0,
152
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state',
153
            'config' => [
154 155 156 157
                'type' => 'select',
                'size' => 1,
                'minitems' => 1,
                'maxitems' => 1,
158 159 160 161 162 163 164 165 166 167 168 169
                'items' => [
                    ['', ''],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state.alpha', 'alpha'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state.beta', 'beta'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state.stable', 'stable'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state.experimental', 'experimental'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state.test', 'test'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.state.obsolete', 'obsolete'],
                ],
            ],
        ],
        'em_category' => [
170
            'exclude' => 0,
171
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category',
172
            'config' => [
173 174 175 176
                'type' => 'select',
                'size' => 1,
                'minitems' => 1,
                'maxitems' => 1,
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
                'items' => [
                    ['', ''],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.fe', 'fe'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.plugin', 'plugin'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.be', 'be'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.module', 'module'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.services', 'services'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.example', 'example'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.misc', 'misc'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.templates', 'templates'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.em_category.doc', 'doc'],
                ],
            ],
        ],
        'load_order' => [
192
            'exclude' => 1,
193
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.load_order',
194
            'config' => [
195 196 197 198
                'type' => 'select',
                'size' => 1,
                'minitems' => 0,
                'maxitems' => 1,
199 200 201 202 203 204 205 206
                'items' => [
                    ['', ''],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.load_order.top', 'top'],
                    ['LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.load_order.bottom', 'bottom'],
                ],
            ],
        ],
        'priority' => [
207
            'exclude' => 1,
208
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.priority',
209
            'config' => [
210 211 212
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
213 214 215
            ],
        ],
        'shy' => [
216
            'exclude' => 1,
217
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.shy',
218
            'config' => [
219 220
                'type' => 'check',
                'default' => 0,
221 222 223
            ],
        ],
        'internal' => [
224
            'exclude' => 1,
225
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.internal',
226
            'config' => [
227 228
                'type' => 'check',
                'default' => 0,
229 230 231
            ],
        ],
        'do_not_load_in_fe' => [
232
            'exclude' => 1,
233
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.do_not_load_in_fe',
234
            'config' => [
235 236
                'type' => 'check',
                'default' => 0,
237 238 239
            ],
        ],
        'uploadfolder' => [
240
            'exclude' => 1,
241
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.uploadfolder',
242
            'config' => [
243 244
                'type' => 'check',
                'default' => 0,
245 246 247
            ],
        ],
        'clear_cache_on_load' => [
248
            'exclude' => 1,
249
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.clear_cache_on_load',
250
            'config' => [
251 252
                'type' => 'check',
                'default' => 0,
253 254 255
            ],
        ],
        'module' => [
256
            'exclude' => 1,
257
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.module',
258
            'config' => [
259 260 261
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
262 263 264
            ],
        ],
        'create_dirs' => [
265
            'exclude' => 1,
266
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.create_dirs',
267
            'config' => [
268 269 270
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
271 272 273
            ],
        ],
        'modify_tables' => [
274
            'exclude' => 1,
275
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.modify_tables',
276
            'config' => [
277 278 279
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
280 281 282
            ],
        ],
        'lock_type' => [
283
            'exclude' => 1,
284
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.lock_type',
285
            'config' => [
286 287 288
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
289 290 291
            ],
        ],
        'cgl_compliance' => [
292
            'exclude' => 1,
293
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.cgl_compliance',
294
            'config' => [
295 296 297
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
298 299 300
            ],
        ],
        'cgl_compliance_note' => [
301
            'exclude' => 1,
302
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.cgl_compliance_note',
303
            'config' => [
304 305 306
                'type' => 'text',
                'cols' => 30,
                'rows' => 5,
307 308 309
            ],
        ],
        'review_state' => [
310
            'exclude' => 1,
311
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.review_state',
312
            'config' => [
313 314 315
                'type' => 'input',
                'size' => 5,
                'eval' => 'trim',
316 317 318
            ],
        ],
        'manual' => [
319
            'exclude' => 1,
320
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.manual',
321
            'config' => [
322 323 324
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
325 326 327
            ],
        ],
        'has_manual' => [
328
            'exclude' => 1,
329
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.has_manual',
330
            'config' => [
331
                'type' => 'check',
332 333 334
            ],
        ],
        'software_relations' => [
335
            'exclude' => 0,
336
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.software_relations',
337
            'config' => [
338 339 340 341
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_relation',
                'foreign_field' => 'version',
                'maxitems' => 9999,
342
                'appearance' => [
343 344
                    'collapse' => 0,
                    'newRecordLinkPosition' => 'bottom',
345 346 347 348
                ],
            ],
        ],
        'author' => [
349
            'exclude' => 1,
350
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.author',
351
            'config' => [
352 353 354 355
                'type' => 'inline',
                'foreign_table' => 'tx_terfe2_domain_model_author',
                'minitems' => 1,
                'maxitems' => 1
356 357 358 359
            ],
        ],
        'extension' => [
            'config' => [
360
                'type' => 'passthrough',
361 362 363
            ],
        ],
        'file_hash' => [
364
            'exclude' => 1,
365
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.file_hash',
366
            'config' => [
367 368 369
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
370 371 372
            ],
        ],
        'extension_provider' => [
373
            'exclude' => 1,
374
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.extension_provider',
375
            'config' => [
376 377 378
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
379 380 381
            ],
        ],
        'has_zip_file' => [
382
            'exclude' => 1,
383
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.has_zip_file',
384
            'config' => [
385 386
                'type' => 'check',
                'default' => 0,
387 388 389
            ],
        ],
        'has_images' => [
390
            'exclude' => 1,
391
            'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_version.has_images',
392
            'config' => [
393 394
                'type' => 'check',
                'default' => 0,
395 396 397 398
            ],
        ],
        't3x_file_size' => [
            'config' => [
399
                'type' => 'passthrough',
400 401 402 403
            ],
        ],
        'zip_file_size' => [
            'config' => [
404
                'type' => 'passthrough',
405 406 407
            ],
        ],
        'composer_info' => [
408 409
            'exclude' => 0,
            'label' => 'Composer Info (JSON)',
410
            'config' => [
411 412 413
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim'
414 415 416 417
            ],
        ],
    ],
];