[TASK] Change upper limits for endtime of various records
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / fe_users.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'username',
5 'descriptionColumn' => 'description',
6 'default_sortby' => 'username',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users',
11 'delete' => 'deleted',
12 'enablecolumns' => [
13 'disabled' => 'disable',
14 'starttime' => 'starttime',
15 'endtime' => 'endtime'
16 ],
17 'typeicon_classes' => [
18 'default' => 'status-user-frontend'
19 ],
20 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime',
21 'searchFields' => 'username,name,first_name,last_name,middle_name,address,telephone,fax,email,title,zip,city,country,company,description'
22 ],
23 'interface' => [
24 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin,description'
25 ],
26 'columns' => [
27 'username' => [
28 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.username',
29 'config' => [
30 'type' => 'input',
31 'size' => 20,
32 'max' => 255,
33 'eval' => 'nospace,trim,lower,uniqueInPid,required',
34 'autocomplete' => false,
35 ]
36 ],
37 'password' => [
38 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.password',
39 'config' => [
40 'type' => 'input',
41 'size' => 10,
42 'max' => 40,
43 'eval' => 'trim,required,password',
44 'autocomplete' => false,
45 ]
46 ],
47 'usergroup' => [
48 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.usergroup',
49 'config' => [
50 'type' => 'select',
51 'renderType' => 'selectMultipleSideBySide',
52 'foreign_table' => 'fe_groups',
53 'foreign_table_where' => 'ORDER BY fe_groups.title',
54 'enableMultiSelectFilterTextfield' => true,
55 'size' => 6,
56 'minitems' => 1,
57 'maxitems' => 50
58 ]
59 ],
60 'lockToDomain' => [
61 'exclude' => true,
62 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.lockToDomain',
63 'config' => [
64 'type' => 'input',
65 'size' => 20,
66 'eval' => 'trim',
67 'max' => 50,
68 'softref' => 'substitute'
69 ]
70 ],
71 'name' => [
72 'exclude' => true,
73 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.name',
74 'config' => [
75 'type' => 'input',
76 'size' => 40,
77 'eval' => 'trim',
78 'max' => 160
79 ]
80 ],
81 'first_name' => [
82 'exclude' => true,
83 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.first_name',
84 'config' => [
85 'type' => 'input',
86 'size' => 25,
87 'eval' => 'trim',
88 'max' => 50
89 ]
90 ],
91 'middle_name' => [
92 'exclude' => true,
93 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.middle_name',
94 'config' => [
95 'type' => 'input',
96 'size' => 25,
97 'eval' => 'trim',
98 'max' => 50
99 ]
100 ],
101 'last_name' => [
102 'exclude' => true,
103 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.last_name',
104 'config' => [
105 'type' => 'input',
106 'size' => 25,
107 'eval' => 'trim',
108 'max' => 50
109 ]
110 ],
111 'address' => [
112 'exclude' => true,
113 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.address',
114 'config' => [
115 'type' => 'text',
116 'cols' => 20,
117 'rows' => 3
118 ]
119 ],
120 'telephone' => [
121 'exclude' => true,
122 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.phone',
123 'config' => [
124 'type' => 'input',
125 'eval' => 'trim',
126 'size' => 20,
127 'max' => 30
128 ]
129 ],
130 'fax' => [
131 'exclude' => true,
132 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.fax',
133 'config' => [
134 'type' => 'input',
135 'size' => 20,
136 'eval' => 'trim',
137 'max' => 30
138 ]
139 ],
140 'email' => [
141 'exclude' => true,
142 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.email',
143 'config' => [
144 'type' => 'input',
145 'size' => 20,
146 'eval' => 'trim',
147 'max' => 255
148 ]
149 ],
150 'title' => [
151 'exclude' => true,
152 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.title_person',
153 'config' => [
154 'type' => 'input',
155 'size' => 20,
156 'eval' => 'trim',
157 'max' => '40'
158 ]
159 ],
160 'zip' => [
161 'exclude' => true,
162 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.zip',
163 'config' => [
164 'type' => 'input',
165 'eval' => 'trim',
166 'size' => 10,
167 'max' => '10'
168 ]
169 ],
170 'city' => [
171 'exclude' => true,
172 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.city',
173 'config' => [
174 'type' => 'input',
175 'size' => 20,
176 'eval' => 'trim',
177 'max' => 50
178 ]
179 ],
180 'country' => [
181 'exclude' => true,
182 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.country',
183 'config' => [
184 'type' => 'input',
185 'size' => 20,
186 'eval' => 'trim',
187 'max' => 40
188 ]
189 ],
190 'www' => [
191 'exclude' => true,
192 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.www',
193 'config' => [
194 'type' => 'input',
195 'eval' => 'trim',
196 'size' => 20,
197 'max' => 80
198 ]
199 ],
200 'company' => [
201 'exclude' => true,
202 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.company',
203 'config' => [
204 'type' => 'input',
205 'eval' => 'trim',
206 'size' => 20,
207 'max' => 80
208 ]
209 ],
210 'image' => [
211 'exclude' => true,
212 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.image',
213 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
214 'image',
215 [
216 'maxitems' => 6,
217 'minitems'=> 0
218 ],
219 $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
220 )
221 ],
222 'disable' => [
223 'exclude' => true,
224 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
225 'config' => [
226 'type' => 'check'
227 ]
228 ],
229 'starttime' => [
230 'exclude' => true,
231 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
232 'config' => [
233 'type' => 'input',
234 'renderType' => 'inputDateTime',
235 'eval' => 'datetime',
236 'default' => 0
237 ]
238 ],
239 'endtime' => [
240 'exclude' => true,
241 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
242 'config' => [
243 'type' => 'input',
244 'renderType' => 'inputDateTime',
245 'eval' => 'datetime',
246 'default' => 0,
247 'range' => [
248 'upper' => mktime(0, 0, 0, 1, 1, 2038)
249 ]
250 ]
251 ],
252 'description' => [
253 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.description',
254 'config' => [
255 'type' => 'text',
256 'rows' => 5,
257 'cols' => 48
258 ]
259 ],
260 'TSconfig' => [
261 'exclude' => true,
262 'label' => 'TSconfig:',
263 'config' => [
264 'type' => 'text',
265 'cols' => 40,
266 'rows' => 10,
267 'enableTabulator' => true,
268 'fixedFont' => true,
269 ],
270 ],
271 'lastlogin' => [
272 'exclude' => true,
273 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.lastlogin',
274 'config' => [
275 'type' => 'input',
276 'renderType' => 'inputDateTime',
277 'readOnly' => true,
278 'eval' => 'datetime',
279 'default' => 0
280 ]
281 ]
282 ],
283 'types' => [
284 '0' => [
285 'showitem' => '
286 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
287 username,password,usergroup,lastlogin,
288 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.personelData,
289 company, title, name, --palette--;;2, address, zip, city, country, telephone, fax, email, www, image,
290 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:fe_users.tabs.options,
291 lockToDomain, TSconfig,
292 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
293 disable,--palette--;;timeRestriction,
294 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
295 description,
296 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
297 ',
298 ],
299 ],
300 'palettes' => [
301 'timeRestriction' => ['showitem' => 'starttime, endtime'],
302 '2' => ['showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name']
303 ]
304 ];