Revert "[TASK] Move t3lib/stddb files to ext:core"
[Packages/TYPO3.CMS.git] / t3lib / stddb / tca_sys_file_storage.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 /**
6 * File storages
7 */
8 $TCA['sys_file_storage'] = array(
9 'ctrl' => $TCA['sys_file_storage']['ctrl'],
10 'interface' => array(
11 'showRecordFieldList' => 'hidden,name,description,driver,processingfolder,configuration'
12 ),
13 'feInterface' => $TCA['sys_file_storage']['feInterface'],
14 'columns' => array(
15 'hidden' => array(
16 'exclude' => 1,
17 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.hidden',
18 'config' => array(
19 'type' => 'check',
20 'default' => '0'
21 )
22 ),
23 'name' => array(
24 'exclude' => 0,
25 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.name',
26 'config' => array(
27 'type' => 'input',
28 'size' => '30',
29 'eval' => 'required'
30 )
31 ),
32 'description' => array(
33 'exclude' => 0,
34 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.description',
35 'config' => array(
36 'type' => 'text',
37 'cols' => '30',
38 'rows' => '5'
39 )
40 ),
41 'is_browsable' => array(
42 'exclude' => 0,
43 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_browsable',
44 'config' => array(
45 'type' => 'check',
46 'default' => 1
47 )
48 ),
49 'is_public' => array(
50 'exclude' => 0,
51 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_public',
52 'config' => array(
53 'type' => 'check',
54 'default' => 1
55 )
56 ),
57 'is_writable' => array(
58 'exclude' => 0,
59 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_writable',
60 'config' => array(
61 'type' => 'check',
62 'default' => 1
63 )
64 ),
65 'is_online' => array(
66 'exclude' => 0,
67 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_online',
68 'config' => array(
69 'type' => 'check',
70 'default' => 1
71 )
72 ),
73 'processingfolder' => array(
74 'exclude' => 0,
75 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.processingfolder',
76 'config' => array(
77 'type' => 'input',
78 'placeholder' => \TYPO3\CMS\Core\Resource\ResourceStorage::DEFAULT_ProcessingFolder,
79 'size' => '20'
80 )
81 ),
82 'driver' => array(
83 'exclude' => 0,
84 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.driver',
85 'config' => array(
86 'type' => 'select',
87 'items' => array(),
88 'default' => ''
89 )
90 ),
91 'configuration' => array(
92 'exclude' => 0,
93 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.configuration',
94 'config' => array(
95 'type' => 'flex',
96 'ds_pointerField' => 'driver',
97 'ds' => array()
98 ),
99 'displayCond' => 'REC:NEW:false'
100 )
101 ),
102 'types' => array(
103 '0' => array('showitem' => 'name, description, hidden, --div--;Configuration, driver, configuration, processingfolder, --div--;Access, --palette--;Capabilities;capabilities, is_online')
104 ),
105 'palettes' => array(
106 'capabilities' => array('showitem' => 'is_browsable, is_public, is_writable', 'canNotCollapse' => TRUE)
107 )
108 );
109 /**
110 * @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry
111 */
112 $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Driver\\DriverRegistry');
113 $registry->addDriversToTCA();
114 ?>