forked from TYPO3-extensions/tk_mobiledetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtca.php
211 lines (209 loc) · 6.27 KB
/
tca.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
require_once(t3lib_extMgm::extPath('tk_mobiledetector') . 'constants.php');
$TCA['tx_tkmobiledetector_devices'] = array(
'ctrl' => $TCA['tx_tkmobiledetector_devices']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'hidden,vendor,model,screen_width,screen_height,browser_name,browser_version,frames,tables,java,javascript,html_version,xhtml_version,xhtml_modules'
),
'feInterface' => $TCA['tx_tkmobiledetector_devices']['feInterface'],
'columns' => array(
'hidden' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array(
'type' => 'check',
'default' => '0'
)
),
'uaprof' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.uaprof',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_UAPROF_LENGTH,
)
),
'vendor' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.vendor',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_VENDOR_LENGTH,
)
),
'model' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.model',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_MODEL_LENGTH,
)
),
'screen_width' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.screen_width',
'config' => array(
'type' => 'input',
'size' => '4',
'max' => DB_SCREEN_WIDTH_LENGTH,
'eval' => 'int',
'checkbox' => '0',
'range' => array(
'upper' => '1000',
'lower' => '10'
),
'default' => 0
)
),
'screen_height' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.screen_height',
'config' => array(
'type' => 'input',
'size' => '4',
'max' => DB_SCREEN_HEIGHT_LENGTH,
'eval' => 'int',
'checkbox' => '0',
'range' => array(
'upper' => '1000',
'lower' => '10'
),
'default' => 0
)
),
'browser_name' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.browser_name',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_BROWSER_NAME_LENGTH,
)
),
'browser_version' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.browser_version',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_BROWSER_VERSION_LENGTH,
)
),
'frames' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.frames',
'config' => array(
'type' => 'check',
)
),
'html_tables' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.html_tables',
'config' => array(
'type' => 'check',
)
),
'java' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.java',
'config' => array(
'type' => 'check',
)
),
'javascript' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.javascript',
'config' => array(
'type' => 'check',
)
),
'html_version' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.html_version',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_HTML_VERSION_LENGTH,
)
),
'xhtml_version' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.xhtml_version',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_XHTML_VERSION_LENGTH,
)
),
'os' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.os',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_OS_NAME_LENGTH,
)
),
'os_version' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.os_version',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_OS_VERSION_LENGTH,
)
),
'os_vendor' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.os_vendor',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => DB_OS_VENDOR_LENGTH,
)
),
'gif' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.gif',
'config' => array(
'type' => 'check',
)
),
'jpg' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.jpg',
'config' => array(
'type' => 'check',
)
),
'png' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.png',
'config' => array(
'type' => 'check',
)
),
'call_str' => array(
'exclude' => 0,
'label' => 'LLL:EXT:tk_mobiledetector/Language/Backend/locallang_db.xml:tx_tkmobiledetector_devices.call_str',
'config' => array(
'type' => 'input',
'size' => '20',
'max' => DB_CALL_STR,
)
),
),
'types' => array(
'0' => array('showitem' => 'hidden;;1;;1-1-1, vendor, model, screen_width, screen_height, browser_name, browser_version, frames, tables, java, javascript, html_version, xhtml_version, os, os_version, os_vendor, gif, jpg, png, call_str')
),
'palettes' => array(
'1' => array('showitem' => '')
)
);
?>