[BUGFIX] mssql: ext:impexp test fixes
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Tests / Functional / Fixtures / Extensions / impexp_group_files / Configuration / TCA / tx_impexpgroupfiles_item.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 return [
5 'ctrl' => [
6 'title' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xlf:tx_impexpgroupfiles_item',
7 'label' => 'title',
8 'tstamp' => 'tstamp',
9 'crdate' => 'crdate',
10 'cruser_id' => 'cruser_id',
11 'sortby' => 'sorting',
12
13 'versioningWS' => true,
14
15 'origUid' => 't3_origuid',
16 'transOrigDiffSourceField' => 'l18n_diffsource',
17 'delete' => 'deleted',
18 'enablecolumns' => [
19 'disabled' => 'hidden',
20 'starttime' => 'starttime',
21 'endtime' => 'endtime',
22 ],
23 'searchFields' => 'price,currency,symbol,',
24 'iconfile' => 'EXT:impexp_group_files/Resources/Public/Icons/icon_tx_impexpgroupfiles_item.gif'
25 ],
26 'interface' => [
27 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, images, image_references, flexform',
28 ],
29 'types' => [
30 '1' => ['showitem' => 'hidden, title, images, image_references, flexform, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,starttime, endtime'],
31 ],
32 'palettes' => [
33 '1' => ['showitem' => ''],
34 ],
35 'columns' => [
36
37 't3ver_label' => [
38 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
39 'config' => [
40 'type' => 'input',
41 'size' => 30,
42 'max' => 255,
43 ]
44 ],
45
46 'hidden' => [
47 'exclude' => true,
48 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
49 'config' => [
50 'type' => 'check',
51 ],
52 ],
53 'starttime' => [
54 'exclude' => true,
55 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
56 'config' => [
57 'type' => 'input',
58 'size' => 13,
59 'eval' => 'datetime',
60 'default' => 0,
61 'range' => [
62 'lower' => mktime(0, 0, 0, (int)date('m'), (int)date('d'), (int)date('Y'))
63 ],
64 ],
65 ],
66 'endtime' => [
67 'exclude' => true,
68 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
69 'config' => [
70 'type' => 'input',
71 'size' => 13,
72 'eval' => 'datetime',
73 'default' => 0,
74 'range' => [
75 'lower' => mktime(0, 0, 0, (int)date('m'), (int)date('d'), (int)date('Y'))
76 ],
77 ],
78 ],
79 'l18n_diffsource' => [
80 'config' => [
81 'type' => 'passthrough',
82 'default' => ''
83 ]
84 ],
85 'title' => [
86 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_title',
87 'config' => [
88 'type' => 'input',
89 'size' => 30,
90 'max' => 255,
91 'eval' => 'required'
92 ]
93 ],
94 'images' => [
95 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_images',
96 'config' => [
97 'type' => 'group',
98 'internal_type' => 'file',
99 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
100 'disallowed' => 'php',
101 'uploadfolder' => 'uploads/tx_impexpgroupfiles',
102 'size' => 5,
103 'maxitems' => 5,
104 ],
105 ],
106 'image_references' => [
107 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_image_references',
108 'config' => [
109 'type' => 'group',
110 'internal_type' => 'file_reference',
111 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
112 'disallowed' => 'php',
113 'size' => 5,
114 'maxitems' => 5,
115 ],
116 ],
117 'flexform' => [
118 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_flexform',
119 'config' => [
120 'type' => 'flex',
121 'ds' => [
122 'default' => '<T3DataStructure>
123 <sheets>
124 <sDEF>
125 <ROOT>
126 <TCEforms>
127 <sheetTitle>Default</sheetTitle>
128 </TCEforms>
129 <type>array</type>
130 <el>
131 <link>
132 <TCEforms>
133 <label>Link</label>
134 <config>
135 <type>input</type>
136 <renderType>inputLink</renderType>
137 <size>50</size>
138 <max>256</max>
139 <eval>trim</eval>
140 <softref>typolink</softref>
141 </config>
142 </TCEforms>
143 </link>
144 <images>
145 <TCEforms>
146 <label>Images</label>
147 <config>
148 <type>group</type>
149 <internal_type>file</internal_type>
150 <allowed>' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . '</allowed>
151 <disallowed>php</disallowed>
152 <uploadfolder>uploads/tx_impexpgroupfiles</uploadfolder>
153 <size>5</size>
154 <maxitems>5</maxitems>
155 </config>
156 </TCEforms>
157 </images>
158 <image_references>
159 <TCEforms>
160 <label>Image References</label>
161 <config>
162 <type>group</type>
163 <internal_type>file_reference</internal_type>
164 <allowed>' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . '</allowed>
165 <disallowed>php</disallowed>
166 <uploadfolder>uploads/tx_impexpgroupfiles</uploadfolder>
167 <size>5</size>
168 <maxitems>5</maxitems>
169 </config>
170 </TCEforms>
171 </image_references>
172 </el>
173 </ROOT>
174 </sDEF>
175 </sheets>
176 </T3DataStructure>'
177 ],
178 'default' => ''
179 ]
180 ],
181 ],
182 ];