[TASK] Fix CGL violations against CharacterAfterPHPClosingTag
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / tca.php
1 <?php
2 /**
3 * System workspaces - Defines the offline workspaces available to users in TYPO3.
4 */
5 $TCA['sys_workspace'] = array(
6 'ctrl' => $TCA['sys_workspace']['ctrl'],
7 'columns' => array(
8 'title' => array(
9 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title',
10 'config' => array(
11 'type' => 'input',
12 'size' => '20',
13 'max' => '30',
14 'eval' => 'required,trim,unique'
15 )
16 ),
17 'description' => array(
18 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
19 'config' => array(
20 'type' => 'text',
21 'rows' => 5,
22 'cols' => 30
23 )
24 ),
25 'adminusers' => array(
26 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.adminusers',
27 'config' => array(
28 'type' => 'group',
29 'internal_type' => 'db',
30 'allowed' => 'be_users,be_groups',
31 'prepend_tname' => 1,
32 'size' => '3',
33 'maxitems' => '10',
34 'autoSizeMax' => 10,
35 'show_thumbs' => '1',
36 'wizards' => array(
37 'suggest' => array(
38 'type' => 'suggest',
39 )
40 )
41 )
42 ),
43 'members' => array(
44 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.members',
45 'config' => array(
46 'type' => 'group',
47 'internal_type' => 'db',
48 'allowed' => 'be_users,be_groups',
49 'prepend_tname' => 1,
50 'size' => '3',
51 'maxitems' => '100',
52 'autoSizeMax' => 10,
53 'show_thumbs' => '1',
54 'wizards' => array(
55 'suggest' => array(
56 'type' => 'suggest',
57 )
58 )
59 )
60 ),
61 'db_mountpoints' => array(
62 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
63 'config' => array(
64 'type' => 'group',
65 'internal_type' => 'db',
66 'allowed' => 'pages',
67 'size' => '3',
68 'maxitems' => 25,
69 'autoSizeMax' => 10,
70 'show_thumbs' => '1',
71 'wizards' => array(
72 'suggest' => array(
73 'type' => 'suggest',
74 )
75 )
76 )
77 ),
78 'file_mountpoints' => array(
79 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
80 'config' => array(
81 'type' => 'select',
82 'foreign_table' => 'sys_filemounts',
83 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
84 'size' => '3',
85 'maxitems' => 25,
86 'autoSizeMax' => 10,
87 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
88 'iconsInOptionTags' => 1,
89 )
90 ),
91 'publish_time' => array(
92 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_time',
93 'config' => array(
94 'type' => 'input',
95 'size' => '8',
96 'max' => '20',
97 'eval' => 'datetime',
98 'default' => '0',
99 'checkbox' => '0'
100 )
101 ),
102 'unpublish_time' => array(
103 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.unpublish_time',
104 'config' => array(
105 'type' => 'input',
106 'size' => '8',
107 'max' => '20',
108 'eval' => 'datetime',
109 'checkbox' => '0',
110 'default' => '0',
111 'range' => array(
112 'upper' => mktime(0, 0, 0, 12, 31, 2020),
113 )
114 ),
115 'displayCond' => 'FALSE' // this feature doesn't work yet therefore it's not shown by default
116 ),
117 'freeze' => array(
118 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.freeze',
119 'config' => array(
120 'type' => 'check',
121 'default' => '0'
122 )
123 ),
124 'live_edit' => array(
125 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.live_edit',
126 'config' => array(
127 'type' => 'check',
128 'default' => '0'
129 )
130 ),
131 'disable_autocreate' => array(
132 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.disable_autocreate',
133 'config' => array(
134 'type' => 'check',
135 'default' => '0'
136 )
137 ),
138 'swap_modes' => array(
139 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.swap_modes',
140 'config' => array(
141 'type' => 'select',
142 'items' => array(
143 array('', 0),
144 array('Swap-Into-Workspace on Auto-publish', 1),
145 array('Disable Swap-Into-Workspace', 2)
146 ),
147 )
148 ),
149 'publish_access' => array(
150 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_access',
151 'config' => array(
152 'type' => 'check',
153 'items' => array(
154 array('Publish only content in publish stage', 0),
155 array('Only workspace owner can publish', 0),
156 ),
157 )
158 ),
159 'stagechg_notification' => array(
160 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.stagechg_notification',
161 'config' => array(
162 'type' => 'select',
163 'items' => array(
164 array('', 0),
165 array('Notify users on next stage only', 1),
166 array('Notify all users on any change', 10)
167 ),
168 )
169 ),
170 'custom_stages' => Array (
171 'exclude' => 1,
172 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.custom_stages',
173 'config' => Array (
174 'type' => 'inline',
175 'foreign_table' => 'sys_workspace_stage',
176 'appearance' => 'useSortable,expandSingle',
177 'foreign_field' => 'parentid',
178 'foreign_table_field' => 'parenttable',
179 'minitems' => 0,
180 ),
181 'default' => 0
182 ),
183 'edit_notification_mode' => array(
184 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.edit_notification_mode',
185 'config' => array(
186 'type' => 'select',
187 'items' => array(
188 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.0', 0),
189 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.1', 1),
190 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.2', 2)
191 ),
192 )
193 ),
194 'edit_notification_defaults' => array(
195 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.edit_notification_defaults',
196 'displayCond' => 'FIELD:edit_notification_mode:IN:0,1',
197 'config' => array(
198 'type' => 'group',
199 'internal_type' => 'db',
200 'allowed' => 'be_users,be_groups',
201 'prepend_tname' => 1,
202 'size' => '3',
203 'maxitems' => '100',
204 'autoSizeMax' => 20,
205 'show_thumbs' => '1',
206 'wizards' => array(
207 'suggest' => array(
208 'type' => 'suggest',
209 )
210 )
211 )
212 ),
213 'edit_allow_notificaton_settings' => array(
214 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.edit_allow_notificaton_settings',
215 'config' => array(
216 'type' => 'check',
217 'default' => 1,
218 )
219 ),
220 'publish_notification_mode' => array(
221 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.publish_notification_mode',
222 'config' => array(
223 'type' => 'select',
224 'items' => array(
225 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.0', 0),
226 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.1', 1),
227 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.2', 2)
228 ),
229 )
230 ),
231 'publish_notification_defaults' => array(
232 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.publish_notification_defaults',
233 'displayCond' => 'FIELD:publish_notification_mode:IN:0,1',
234 'config' => array(
235 'type' => 'group',
236 'internal_type' => 'db',
237 'allowed' => 'be_users,be_groups',
238 'prepend_tname' => 1,
239 'size' => '3',
240 'maxitems' => '100',
241 'autoSizeMax' => 20,
242 'show_thumbs' => '1',
243 'wizards' => array(
244 'suggest' => array(
245 'type' => 'suggest',
246 )
247 )
248 )
249 ),
250 'publish_allow_notificaton_settings' => array(
251 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.publish_allow_notificaton_settings',
252 'config' => array(
253 'type' => 'check',
254 'default' => 1,
255 )
256 ),
257 ),
258 'types' => array(
259 '0' => array('showitem' => 'title,description,
260 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.users,adminusers,members,
261 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:tabs.notification_settings,stagechg_notification,edit_notification_mode,edit_notification_defaults,edit_allow_notificaton_settings,publish_notification_mode,publish_notification_defaults,publish_allow_notificaton_settings,
262 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
263 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
264 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_filemounts.tabs.staging,custom_stages,
265 --div--;LLL:EXT:lang/locallang_tca.xml:sys_filemounts.tabs.other,freeze,live_edit,disable_autocreate,swap_modes,publish_access'
266 )
267 )
268 );
269
270 /**
271 * Workspace stages - Defines the single workspace stages which are related to a workspace.
272 */
273 $TCA['sys_workspace_stage'] = array(
274 'ctrl' => $TCA['sys_workspace_stage']['ctrl'],
275 'columns' => array(
276 'title' => array(
277 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title',
278 'config' => array(
279 'type' => 'input',
280 'size' => '20',
281 'max' => '30',
282 'eval' => 'required,trim'
283 )
284 ),
285 'responsible_persons' => array(
286 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.responsible_persons',
287 'config' => array(
288 'type' => 'group',
289 'internal_type' => 'db',
290 'allowed' => 'be_users,be_groups',
291 'prepend_tname' => 1,
292 'size' => '3',
293 'maxitems' => '100',
294 'autoSizeMax' => 20,
295 'show_thumbs' => '1',
296 'wizards' => array(
297 'suggest' => array(
298 'type' => 'suggest',
299 )
300 )
301 )
302 ),
303 'default_mailcomment' => array(
304 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.default_mailcomment',
305 'config' => array(
306 'type' => 'text',
307 'rows' => 5,
308 'cols' => 30
309 )
310 ),
311 'parentid' => Array (
312 'exclude' => 0,
313 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.parentid',
314 'config' => Array (
315 'type' => 'passthrough',
316 )
317 ),
318 'parenttable' => Array (
319 'exclude' => 0,
320 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.parenttable',
321 'config' => Array (
322 'type' => 'passthrough',
323 )
324 ),
325 'notification_mode' => array(
326 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.notification_mode',
327 'config' => array(
328 'type' => 'select',
329 'items' => array(
330 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.0', 0),
331 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.1', 1),
332 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.notification_mode.2', 2)
333 ),
334 )
335 ),
336 'notification_defaults' => array(
337 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.notification_defaults',
338 'displayCond' => 'FIELD:notification_mode:IN:0,1',
339 'config' => array(
340 'type' => 'group',
341 'internal_type' => 'db',
342 'allowed' => 'be_users,be_groups',
343 'prepend_tname' => 1,
344 'size' => '3',
345 'maxitems' => '100',
346 'autoSizeMax' => 20,
347 'show_thumbs' => '1',
348 'wizards' => array(
349 'suggest' => array(
350 'type' => 'suggest',
351 )
352 )
353 )
354 ),
355 'allow_notificaton_settings' => array(
356 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage.allow_notificaton_settings',
357 'config' => array(
358 'type' => 'check',
359 'default' => 1,
360 )
361 ),
362 ),
363 'types' => array(
364 '0' => array('showitem' => '
365 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.general,title,responsible_persons,
366 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,notification_mode,notification_defaults,allow_notificaton_settings,default_mailcomment'
367 )
368 )
369 );
370
371 ?>