[TASK] Remove compat layer for new 6.0 classes
[Packages/TYPO3.CMS.git] / t3lib / stddb / tca_sys_file_collection.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 $TCA['sys_file_collection'] = array(
6 'ctrl' => $TCA['sys_file_collection']['ctrl'],
7 'interface' => array(
8 'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'
9 ),
10 'feInterface' => $TCA['sys_file_collection']['feInterface'],
11 'columns' => array(
12 't3ver_label' => array(
13 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
14 'config' => array(
15 'type' => 'input',
16 'size' => '30',
17 'max' => '30'
18 )
19 ),
20 'sys_language_uid' => array(
21 'exclude' => 1,
22 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
23 'config' => array(
24 'type' => 'select',
25 'foreign_table' => 'sys_language',
26 'foreign_table_where' => 'ORDER BY sys_language.title',
27 'items' => array(
28 array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
29 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
30 )
31 )
32 ),
33 'l10n_parent' => array(
34 'displayCond' => 'FIELD:sys_language_uid:>:0',
35 'exclude' => 1,
36 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
37 'config' => array(
38 'type' => 'select',
39 'items' => array(
40 array('', 0)
41 ),
42 'foreign_table' => 'sys_file_collection',
43 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
44 )
45 ),
46 'l10n_diffsource' => array(
47 'config' => array(
48 'type' => 'passthrough'
49 )
50 ),
51 'hidden' => array(
52 'exclude' => 1,
53 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
54 'config' => array(
55 'type' => 'check',
56 'default' => '0'
57 )
58 ),
59 'starttime' => array(
60 'exclude' => 1,
61 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
62 'config' => array(
63 'type' => 'input',
64 'size' => '8',
65 'max' => '20',
66 'eval' => 'date',
67 'default' => '0',
68 'checkbox' => '0'
69 )
70 ),
71 'endtime' => array(
72 'exclude' => 1,
73 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
74 'config' => array(
75 'type' => 'input',
76 'size' => '8',
77 'max' => '20',
78 'eval' => 'date',
79 'checkbox' => '0',
80 'default' => '0',
81 'range' => array(
82 'upper' => mktime(3, 14, 7, 1, 19, 2038),
83 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
84 )
85 )
86 ),
87 'type' => array(
88 'exclude' => 0,
89 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type',
90 'config' => array(
91 'type' => 'select',
92 'items' => array(
93 array('Static selection of files', 'static'),
94 array('Folder from Storage', 'folder')
95 )
96 )
97 ),
98 'files' => array(
99 'exclude' => 0,
100 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.files',
101 'config' => \TYPO3\CMS\Core\Extension\ExtensionManager::getFileFieldTCAConfig('files')
102 ),
103 'title' => array(
104 'exclude' => 0,
105 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.title',
106 'config' => array(
107 'type' => 'input',
108 'size' => '30',
109 'eval' => 'required'
110 )
111 ),
112 'storage' => array(
113 'exclude' => 0,
114 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.storage',
115 'config' => array(
116 'type' => 'select',
117 'items' => array(
118 array('', 0)
119 ),
120 'foreign_table' => 'sys_file_storage',
121 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
122 'size' => 1,
123 'minitems' => 0,
124 'maxitems' => 1
125 )
126 ),
127 'folder' => array(
128 'exclude' => 0,
129 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.folder',
130 'config' => array(
131 'type' => 'select',
132 'items' => array(),
133 'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\CMS\Core\Resource\Service\UserFileMountService->renderTceformsSelectDropdown',
134 )
135 )
136 ),
137 'types' => array(
138 '0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
139 'static' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'),
140 'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder')
141 ),
142 'palettes' => array(
143 '1' => array('showitem' => 'hidden, starttime, endtime')
144 )
145 );
146 ?>