[TASK] Change check for TYPO3_MODE
[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 array(
5 'ctrl' => array(
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 'dividers2tabs' => TRUE,
12 'sortby' => 'sorting',
13
14 'versioningWS' => 2,
15 'versioning_followPages' => TRUE,
16
17 'origUid' => 't3_origuid',
18
19 'delete' => 'deleted',
20 'enablecolumns' => array(
21 'disabled' => 'hidden',
22 'starttime' => 'starttime',
23 'endtime' => 'endtime',
24 ),
25 'searchFields' => 'price,currency,symbol,',
26 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('impexp_group_files') . 'Resources/Public/Icons/icon_tx_impexpgroupfiles_item.gif'
27 ),
28 'interface' => array(
29 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, images, image_references, flexform',
30 ),
31 'types' => array(
32 '1' => array('showitem' => 'hidden, title, images, image_references, flexform, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
33 ),
34 'palettes' => array(
35 '1' => array('showitem' => ''),
36 ),
37 'columns' => array(
38
39 't3ver_label' => array(
40 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
41 'config' => array(
42 'type' => 'input',
43 'size' => 30,
44 'max' => 255,
45 )
46 ),
47
48 'hidden' => array(
49 'exclude' => 1,
50 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
51 'config' => array(
52 'type' => 'check',
53 ),
54 ),
55 'starttime' => array(
56 'exclude' => 1,
57 'l10n_mode' => 'mergeIfNotBlank',
58 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
59 'config' => array(
60 'type' => 'input',
61 'size' => 13,
62 'max' => 20,
63 'eval' => 'datetime',
64 'checkbox' => 0,
65 'default' => 0,
66 'range' => array(
67 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
68 ),
69 ),
70 ),
71 'endtime' => array(
72 'exclude' => 1,
73 'l10n_mode' => 'mergeIfNotBlank',
74 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
75 'config' => array(
76 'type' => 'input',
77 'size' => 13,
78 'max' => 20,
79 'eval' => 'datetime',
80 'checkbox' => 0,
81 'default' => 0,
82 'range' => array(
83 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
84 ),
85 ),
86 ),
87 'title' => array(
88 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_title',
89 'config' => array(
90 'type' => 'input',
91 'size' => 30,
92 'max' => 255,
93 'eval' => 'required'
94 )
95 ),
96 'images' => array(
97 'exclude' => 0,
98 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_images',
99 'config' => array(
100 'type' => 'group',
101 'internal_type' => 'file',
102 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
103 'disallowed' => 'php',
104 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
105 'uploadfolder' => 'uploads/tx_impexpgroupfiles',
106 'size' => 5,
107 'maxitems' => 5,
108 'show_thumbs' => 1,
109 ),
110 ),
111 'image_references' => array(
112 'exclude' => 0,
113 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_image_references',
114 'config' => array(
115 'type' => 'group',
116 'internal_type' => 'file_reference',
117 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
118 'disallowed' => 'php',
119 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
120 'size' => 5,
121 'maxitems' => 5,
122 'show_thumbs' => 1,
123 ),
124 ),
125 'flexform' => array(
126 'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_flexform',
127 'config' => array(
128 'type' => 'flex',
129 'ds' => array(
130 'default' => '<T3DataStructure>
131 <meta>
132 <langDisable>1</langDisable>
133 </meta>
134 <sheets>
135 <sDEF>
136 <ROOT>
137 <TCEforms>
138 <sheetTitle>Default</sheetTitle>
139 </TCEforms>
140 <type>array</type>
141 <el>
142 <link>
143 <TCEforms>
144 <label>Link</label>
145 <config>
146 <type>input</type>
147 <size>50</size>
148 <max>256</max>
149 <eval>trim</eval>
150 <softref>typolink</softref>
151 <wizards type="array">
152 <_PADDING type="integer">2</_PADDING>
153 <link type="array">
154 <type>popup</type>
155 <title>Link</title>
156 <icon>link_popup.gif</icon>
157 <module type="array">
158 <name>wizard_element_browser</name>
159 <urlParameters type="array">
160 <mode>wizard</mode>
161 </urlParameters>
162 </module>
163 <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
164 </link>
165 </wizards>
166 </config>
167 </TCEforms>
168 </link>
169 <images>
170 <TCEforms>
171 <label>Images</label>
172 <config>
173 <type>group</type>
174 <internal_type>file</internal_type>
175 <allowed>' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . '</allowed>
176 <disallowed>php</disallowed>
177 <max_size>' . $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'] . '</max_size>
178 <uploadfolder>uploads/tx_impexpgroupfiles</uploadfolder>
179 <size>5</size>
180 <maxitems>5</maxitems>
181 <show_thumbs>1</show_thumbs>
182 </config>
183 </TCEforms>
184 </images>
185 <image_references>
186 <TCEforms>
187 <label>Image References</label>
188 <config>
189 <type>group</type>
190 <internal_type>file_reference</internal_type>
191 <allowed>' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . '</allowed>
192 <disallowed>php</disallowed>
193 <max_size>' . $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'] . '</max_size>
194 <uploadfolder>uploads/tx_impexpgroupfiles</uploadfolder>
195 <size>5</size>
196 <maxitems>5</maxitems>
197 <show_thumbs>1</show_thumbs>
198 </config>
199 </TCEforms>
200 </image_references>
201 </el>
202 </ROOT>
203 </sDEF>
204 </sheets>
205 </T3DataStructure>'
206 )
207 )
208 ),
209 ),
210 );