3f80810d8343dfced30e6f357995d573168c4b2a
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_storage.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage',
5 'label' => 'name',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'default_sortby' => 'ORDER BY name',
10 'delete' => 'deleted',
11 'rootLevel' => TRUE,
12 'versioningWS_alwaysAllowLiveEdit' => TRUE, // Only have LIVE records of file storages
13 'enablecolumns' => array(),
14 'requestUpdate' => 'driver',
15 'iconfile' => '_icon_ftp.gif',
16 'searchFields' => 'name,description'
17 ),
18 'interface' => array(
19 'showRecordFieldList' => 'hidden,name,description,driver,processingfolder,configuration'
20 ),
21 'columns' => array(
22 'hidden' => array(
23 'exclude' => 1,
24 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.hidden',
25 'config' => array(
26 'type' => 'check',
27 'default' => '0'
28 )
29 ),
30 'name' => array(
31 'exclude' => 0,
32 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
33 'config' => array(
34 'type' => 'input',
35 'size' => '30',
36 'eval' => 'required'
37 )
38 ),
39 'description' => array(
40 'exclude' => 0,
41 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
42 'config' => array(
43 'type' => 'text',
44 'cols' => '30',
45 'rows' => '5'
46 )
47 ),
48 'is_browsable' => array(
49 'exclude' => 0,
50 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
51 'config' => array(
52 'type' => 'check',
53 'default' => 1
54 )
55 ),
56 'is_default' => array(
57 'exclude' => 0,
58 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
59 'config' => array(
60 'type' => 'check',
61 'default' => 0,
62 'eval' => 'maximumRecordsChecked',
63 'validation' => array(
64 'maximumRecordsChecked' => 1
65 )
66 )
67 ),
68 'is_public' => array(
69 'exclude' => 0,
70 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
71 'config' => array(
72 'default' => TRUE,
73 'type' => 'user',
74 'userFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php:TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService->renderIsPublic',
75 )
76 ),
77 'is_writable' => array(
78 'exclude' => 0,
79 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
80 'config' => array(
81 'type' => 'check',
82 'default' => 1
83 )
84 ),
85 'is_online' => array(
86 'exclude' => 0,
87 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
88 'config' => array(
89 'type' => 'check',
90 'default' => 1
91 )
92 ),
93 'processingfolder' => array(
94 'exclude' => 0,
95 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
96 'config' => array(
97 'type' => 'input',
98 'placeholder' => \TYPO3\CMS\Core\Resource\ResourceStorage::DEFAULT_ProcessingFolder,
99 'size' => '20'
100 )
101 ),
102 'driver' => array(
103 'exclude' => 0,
104 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
105 'config' => array(
106 'type' => 'select',
107 'items' => array(),
108 'default' => 'Local',
109 'onChange' => 'reload'
110 )
111 ),
112 'configuration' => array(
113 'exclude' => 0,
114 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
115 'config' => array(
116 'type' => 'flex',
117 'ds_pointerField' => 'driver',
118 'ds' => array()
119 ),
120 )
121 ),
122 'types' => array(
123 '0' => array('showitem' => 'name, description, hidden, --div--;Configuration, driver, configuration, is_default, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
124 ),
125 'palettes' => array(
126 'capabilities' => array('showitem' => 'is_browsable, is_public, is_writable', 'canNotCollapse' => TRUE)
127 )
128 );