‪TYPO3CMS  10.4
index_config.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'title' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config',
6  'label' => 'title',
7  'descriptionColumn' => 'description',
8  'tstamp' => 'tstamp',
9  'crdate' => 'crdate',
10  'cruser_id' => 'cruser_id',
11  'type' => 'type',
12  'default_sortby' => 'crdate',
13  'enablecolumns' => [
14  'disabled' => 'hidden',
15  'starttime' => 'starttime'
16  ],
17  'typeicon_classes' => [
18  'default' => 'mimetypes-x-index_config'
19  ]
20  ],
21  'columns' => [
22  'hidden' => [
23  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
24  'config' => [
25  'type' => 'check',
26  'renderType' => 'checkboxToggle',
27  'default' => 1,
28  'items' => [
29  [
30  0 => '',
31  1 => '',
32  'invertStateDisplay' => true,
33  ],
34  ],
35  ],
36  ],
37  'starttime' => [
38  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
39  'config' => [
40  'type' => 'input',
41  'renderType' => 'inputDateTime',
42  'eval' => 'date,int',
43  'default' => 0,
44  ]
45  ],
46  'title' => [
47  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.title',
48  'config' => [
49  'type' => 'input',
50  'size' => 30,
51  'eval' => 'required'
52  ]
53  ],
54  'description' => [
55  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.description',
56  'config' => [
57  'type' => 'text',
58  'cols' => 30,
59  'rows' => 2
60  ]
61  ],
62  'type' => [
63  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type',
64  'config' => [
65  'type' => 'select',
66  'renderType' => 'selectSingle',
67  'items' => [
68  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.0', '0'],
69  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.1', '1'],
70  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.2', '2'],
71  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.3', '3'],
72  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.4', '4'],
73  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.type.I.5', '5']
74  ],
75  'size' => 1,
76  'maxitems' => 1
77  ]
78  ],
79  'depth' => [
80  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.depth',
81  'config' => [
82  'type' => 'select',
83  'renderType' => 'selectSingle',
84  'items' => [
85  ['LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.depth_0', '0'],
86  ['LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.depth_1', '1'],
87  ['LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.depth_2', '2'],
88  ['LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.depth_3', '3'],
89  ['LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.depth_4', '4']
90  ],
91  'size' => 1,
92  'maxitems' => 1
93  ]
94  ],
95  'table2index' => [
96  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.table2index',
97  'config' => [
98  'type' => 'select',
99  'renderType' => 'selectSingle',
100  'items' => [
101  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.table2index.I.0', '0']
102  ],
103  'special' => 'tables',
104  'size' => 1,
105  'maxitems' => 1
106  ]
107  ],
108  'alternative_source_pid' => [
109  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.alternative_source_pid',
110  'config' => [
111  'type' => 'group',
112  'internal_type' => 'db',
113  'allowed' => 'pages',
114  'size' => 1,
115  'minitems' => 0,
116  'maxitems' => 1,
117  ]
118  ],
119  'indexcfgs' => [
120  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.indexcfgs',
121  'config' => [
122  'type' => 'group',
123  'internal_type' => 'db',
124  'allowed' => 'index_config,pages',
125  'size' => 5,
126  'minitems' => 0,
127  'maxitems' => 200,
128  ]
129  ],
130  'get_params' => [
131  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.get_params',
132  'config' => [
133  'type' => 'input',
134  'size' => 30
135  ]
136  ],
137  'fieldlist' => [
138  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.fields',
139  'config' => [
140  'type' => 'input',
141  'size' => 30
142  ]
143  ],
144  'externalUrl' => [
145  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.externalUrl',
146  'config' => [
147  'type' => 'input',
148  'size' => 30
149  ]
150  ],
151  'filepath' => [
152  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.filepath',
153  'config' => [
154  'type' => 'input',
155  'size' => 30
156  ]
157  ],
158  'extensions' => [
159  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.extensions',
160  'config' => [
161  'type' => 'input',
162  'size' => 30
163  ]
164  ],
165  'url_deny' => [
166  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.url_deny',
167  'config' => [
168  'type' => 'text',
169  'cols' => 30,
170  'rows' => 2
171  ]
172  ],
173  'records_indexonchange' => [
174  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.records_indexonchange',
175  'config' => [
176  'type' => 'check',
177  'renderType' => 'checkboxToggle',
178  'default' => 0,
179  'items' => [
180  [
181  0 => '',
182  1 => '',
183  ]
184  ],
185  ]
186  ],
187  'timer_next_indexing' => [
188  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_next_indexing',
189  'config' => [
190  'type' => 'input',
191  'renderType' => 'inputDateTime',
192  'eval' => 'datetime,int',
193  'default' => 0,
194  ]
195  ],
196  'timer_offset' => [
197  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_offset',
198  'config' => [
199  'type' => 'input',
200  'renderType' => 'inputDateTime',
201  'eval' => 'time,int',
202  'default' => 3600
203  ]
204  ],
205  'timer_frequency' => [
206  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency',
207  'config' => [
208  'type' => 'select',
209  'renderType' => 'selectSingle',
210  'items' => [
211  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency.I.0', '3600'],
212  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency.I.1', '86400'],
213  ['LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.timer_frequency.I.2', '604800']
214  ],
215  'size' => 1,
216  'maxitems' => 1,
217  'default' => 86400
218  ]
219  ],
220  'recordsbatch' => [
221  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.recordsbatch',
222  'config' => [
223  'type' => 'input',
224  'size' => 8,
225  'max' => 20,
226  'eval' => 'int',
227  'default' => 0,
228  ]
229  ],
230  'set_id' => [
231  'label' => 'LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.set_id',
232  'config' => [
233  'type' => 'input',
234  'readOnly' => true,
235  ]
236  ]
237  ],
238  'types' => [
239  '0' => [
240  'showitem' => '
241  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
242  type,title,timer_next_indexing, timer_offset, timer_frequency, set_id,
243  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
244  hidden,starttime,
245  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
246  description,
247  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
248  ',
249  ],
250  '1' => [
251  'showitem' => '
252  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
253  type,title,timer_next_indexing, timer_offset, timer_frequency, set_id, table2index, alternative_source_pid, fieldlist, get_params,recordsbatch,records_indexonchange,
254  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
255  hidden,starttime,
256  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
257  description,
258  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
259  ',
260  ],
261  '2' => [
262  'showitem' => '
263  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
264  type,title,timer_next_indexing, timer_offset, timer_frequency, set_id, filepath, extensions, depth,
265  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
266  hidden,starttime,
267  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
268  description,
269  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
270  ',
271  ],
272  '3' => [
273  'showitem' => '
274  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
275  type, title, timer_next_indexing, timer_offset, timer_frequency, set_id, externalUrl, depth, url_deny,
276  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
277  hidden,starttime,
278  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
279  description,
280  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
281  ',
282  ],
283  '4' => [
284  'showitem' => '
285  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
286  type,title,timer_next_indexing, timer_offset, timer_frequency, set_id, alternative_source_pid;LLL:EXT:indexed_search/Resources/Private/Language/locallang_db.xlf:index_config.rootpage, depth,
287  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
288  hidden,starttime,
289  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
290  description,
291  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
292  ',
293  ],
294  '5' => [
295  'showitem' => '
296  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
297  type,title,indexcfgs,
298  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
299  hidden,starttime,
300  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
301  description,
302  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
303  ',
304  ],
305  ],
306 ];