Commit | Line | Data |
---|---|---|
4229c8ec CW |
1 | <?php |
2 | /* | |
bc77d7c0 TO |
3 | +--------------------------------------------------------------------+ |
4 | | Copyright CiviCRM LLC. All rights reserved. | | |
5 | | | | |
6 | | This work is published under the GNU AGPLv3 license with some | | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
9 | +--------------------------------------------------------------------+ | |
11baee16 | 10 | */ |
4229c8ec CW |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
4229c8ec CW |
16 | * |
17 | * Generated from schema_structure.tpl | |
18 | * DO NOT EDIT. Generated by CRM_Core_CodeGen | |
19 | */ | |
20 | class CRM_Core_I18n_SchemaStructure_5_4_alpha1 { | |
21 | ||
22 | /** | |
23 | * Get translatable columns. | |
24 | * | |
25 | * @return array | |
26 | * A table-indexed array of translatable columns. | |
27 | */ | |
11baee16 CW |
28 | public static function columns() { |
29 | static $result = NULL; | |
4229c8ec CW |
30 | if (!$result) { |
31 | $result = [ | |
32 | 'civicrm_location_type' => [ | |
33 | 'display_name' => "varchar(64)", | |
34 | ], | |
35 | 'civicrm_option_group' => [ | |
36 | 'title' => "varchar(255)", | |
37 | 'description' => "varchar(255)", | |
38 | ], | |
39 | 'civicrm_relationship_type' => [ | |
40 | 'label_a_b' => "varchar(64)", | |
41 | 'label_b_a' => "varchar(64)", | |
42 | 'description' => "varchar(255)", | |
43 | ], | |
44 | 'civicrm_contact_type' => [ | |
45 | 'label' => "varchar(64)", | |
46 | 'description' => "text", | |
47 | ], | |
48 | 'civicrm_batch' => [ | |
49 | 'title' => "varchar(255)", | |
50 | 'description' => "text", | |
51 | ], | |
52 | 'civicrm_premiums' => [ | |
53 | 'premiums_intro_title' => "varchar(255)", | |
54 | 'premiums_intro_text' => "text", | |
55 | 'premiums_nothankyou_label' => "varchar(255)", | |
56 | ], | |
57 | 'civicrm_membership_status' => [ | |
58 | 'label' => "varchar(128)", | |
59 | ], | |
60 | 'civicrm_survey' => [ | |
61 | 'title' => "varchar(255)", | |
62 | 'instructions' => "text", | |
63 | 'thankyou_title' => "varchar(255)", | |
64 | 'thankyou_text' => "text", | |
65 | ], | |
66 | 'civicrm_participant_status_type' => [ | |
67 | 'label' => "varchar(255)", | |
68 | ], | |
69 | 'civicrm_case_type' => [ | |
70 | 'title' => "varchar(64)", | |
71 | 'description' => "varchar(255)", | |
72 | ], | |
73 | 'civicrm_tell_friend' => [ | |
74 | 'title' => "varchar(255)", | |
75 | 'intro' => "text", | |
76 | 'suggested_message' => "text", | |
77 | 'thankyou_title' => "varchar(255)", | |
78 | 'thankyou_text' => "text", | |
79 | ], | |
80 | 'civicrm_custom_group' => [ | |
81 | 'title' => "varchar(64)", | |
82 | 'help_pre' => "text", | |
83 | 'help_post' => "text", | |
84 | ], | |
85 | 'civicrm_custom_field' => [ | |
86 | 'label' => "varchar(255)", | |
87 | 'help_pre' => "text", | |
88 | 'help_post' => "text", | |
89 | ], | |
90 | 'civicrm_option_value' => [ | |
91 | 'label' => "varchar(512)", | |
92 | 'description' => "text", | |
93 | ], | |
94 | 'civicrm_group' => [ | |
95 | 'title' => "varchar(64)", | |
96 | ], | |
97 | 'civicrm_contribution_page' => [ | |
98 | 'title' => "varchar(255)", | |
99 | 'intro_text' => "text", | |
100 | 'pay_later_text' => "text", | |
101 | 'pay_later_receipt' => "text", | |
102 | 'initial_amount_label' => "varchar(255)", | |
103 | 'initial_amount_help_text' => "text", | |
104 | 'thankyou_title' => "varchar(255)", | |
105 | 'thankyou_text' => "text", | |
106 | 'thankyou_footer' => "text", | |
107 | 'receipt_from_name' => "varchar(255)", | |
108 | 'receipt_text' => "text", | |
109 | 'footer_text' => "text", | |
110 | ], | |
111 | 'civicrm_product' => [ | |
112 | 'name' => "varchar(255)", | |
113 | 'description' => "text", | |
114 | 'options' => "text", | |
115 | ], | |
116 | 'civicrm_membership_type' => [ | |
117 | 'name' => "varchar(128)", | |
118 | 'description' => "varchar(255)", | |
119 | ], | |
120 | 'civicrm_membership_block' => [ | |
121 | 'new_title' => "varchar(255)", | |
122 | 'new_text' => "text", | |
123 | 'renewal_title' => "varchar(255)", | |
124 | 'renewal_text' => "text", | |
125 | ], | |
126 | 'civicrm_price_set' => [ | |
127 | 'title' => "varchar(255)", | |
128 | 'help_pre' => "text", | |
129 | 'help_post' => "text", | |
130 | ], | |
131 | 'civicrm_dashboard' => [ | |
132 | 'label' => "varchar(255)", | |
133 | ], | |
134 | 'civicrm_uf_group' => [ | |
135 | 'title' => "varchar(64)", | |
136 | 'frontend_title' => "varchar(64)", | |
137 | 'help_pre' => "text", | |
138 | 'help_post' => "text", | |
139 | 'cancel_button_text' => "varchar(64)", | |
140 | 'submit_button_text' => "varchar(64)", | |
141 | ], | |
142 | 'civicrm_uf_field' => [ | |
143 | 'help_post' => "text", | |
144 | 'help_pre' => "text", | |
145 | 'label' => "varchar(255)", | |
146 | ], | |
147 | 'civicrm_price_field' => [ | |
148 | 'label' => "varchar(255)", | |
149 | 'help_pre' => "text", | |
150 | 'help_post' => "text", | |
151 | ], | |
152 | 'civicrm_price_field_value' => [ | |
153 | 'label' => "varchar(255)", | |
154 | 'description' => "text", | |
155 | 'help_pre' => "text", | |
156 | 'help_post' => "text", | |
157 | ], | |
158 | 'civicrm_pcp_block' => [ | |
159 | 'link_text' => "varchar(255)", | |
160 | ], | |
161 | 'civicrm_event' => [ | |
162 | 'title' => "varchar(255)", | |
163 | 'summary' => "text", | |
164 | 'description' => "text", | |
165 | 'registration_link_text' => "varchar(255)", | |
166 | 'event_full_text' => "text", | |
167 | 'fee_label' => "varchar(255)", | |
168 | 'intro_text' => "text", | |
169 | 'footer_text' => "text", | |
170 | 'confirm_title' => "varchar(255)", | |
171 | 'confirm_text' => "text", | |
172 | 'confirm_footer_text' => "text", | |
173 | 'confirm_email_text' => "text", | |
174 | 'confirm_from_name' => "varchar(255)", | |
175 | 'thankyou_title' => "varchar(255)", | |
176 | 'thankyou_text' => "text", | |
177 | 'thankyou_footer_text' => "text", | |
178 | 'pay_later_text' => "text", | |
179 | 'pay_later_receipt' => "text", | |
180 | 'initial_amount_label' => "varchar(255)", | |
181 | 'initial_amount_help_text' => "text", | |
182 | 'waitlist_text' => "text", | |
183 | 'approval_req_text' => "text", | |
184 | 'template_title' => "varchar(255)", | |
185 | ], | |
186 | ]; | |
187 | } | |
188 | return $result; | |
189 | } | |
190 | ||
191 | /** | |
192 | * Get a table indexed array of the indices for translatable fields. | |
193 | * | |
194 | * @return array | |
195 | * Indices for translatable fields. | |
196 | */ | |
11baee16 CW |
197 | public static function indices() { |
198 | static $result = NULL; | |
4229c8ec CW |
199 | if (!$result) { |
200 | $result = [ | |
201 | 'civicrm_custom_group' => [ | |
202 | 'UI_title_extends' => [ | |
203 | 'name' => 'UI_title_extends', | |
204 | 'field' => [ | |
205 | 'title', | |
206 | 'extends', | |
207 | ], | |
208 | 'unique' => 1, | |
209 | ], | |
210 | ], | |
211 | 'civicrm_custom_field' => [ | |
212 | 'UI_label_custom_group_id' => [ | |
213 | 'name' => 'UI_label_custom_group_id', | |
214 | 'field' => [ | |
215 | 'label', | |
216 | 'custom_group_id', | |
217 | ], | |
218 | 'unique' => 1, | |
219 | ], | |
220 | ], | |
221 | 'civicrm_group' => [ | |
222 | 'UI_title' => [ | |
223 | 'name' => 'UI_title', | |
224 | 'field' => [ | |
225 | 'title', | |
226 | ], | |
227 | 'unique' => 1, | |
228 | ], | |
229 | ], | |
230 | ]; | |
231 | } | |
232 | return $result; | |
233 | } | |
234 | ||
235 | /** | |
236 | * Get tables with translatable fields. | |
237 | * | |
238 | * @return array | |
239 | * Array of names of tables with fields that can be translated. | |
240 | */ | |
11baee16 CW |
241 | public static function tables() { |
242 | static $result = NULL; | |
4229c8ec CW |
243 | if (!$result) { |
244 | $result = array_keys(self::columns()); | |
245 | } | |
246 | return $result; | |
247 | } | |
248 | ||
249 | /** | |
250 | * Get a list of widgets for editing translatable fields. | |
251 | * | |
252 | * @return array | |
253 | * Array of the widgets for editing translatable fields. | |
254 | */ | |
11baee16 CW |
255 | public static function widgets() { |
256 | static $result = NULL; | |
4229c8ec CW |
257 | if (!$result) { |
258 | $result = [ | |
259 | 'civicrm_location_type' => [ | |
260 | 'display_name' => [ | |
261 | 'type' => "Text", | |
262 | ], | |
263 | ], | |
264 | 'civicrm_option_group' => [ | |
265 | 'title' => [ | |
266 | 'type' => "Text", | |
267 | ], | |
268 | 'description' => [ | |
269 | 'type' => "Text", | |
270 | ], | |
271 | ], | |
272 | 'civicrm_relationship_type' => [ | |
273 | 'label_a_b' => [ | |
274 | 'type' => "Text", | |
275 | ], | |
276 | 'label_b_a' => [ | |
277 | 'type' => "Text", | |
278 | ], | |
279 | 'description' => [ | |
280 | 'type' => "Text", | |
281 | ], | |
282 | ], | |
283 | 'civicrm_contact_type' => [ | |
284 | 'label' => [ | |
285 | 'type' => "Text", | |
286 | ], | |
287 | 'description' => [ | |
288 | 'type' => "TextArea", | |
289 | 'rows' => "2", | |
290 | 'cols' => "60", | |
291 | ], | |
292 | ], | |
293 | 'civicrm_batch' => [ | |
294 | 'title' => [ | |
295 | 'type' => "Text", | |
296 | ], | |
297 | 'description' => [ | |
298 | 'type' => "TextArea", | |
299 | 'rows' => "4", | |
300 | 'cols' => "80", | |
301 | ], | |
302 | ], | |
303 | 'civicrm_premiums' => [ | |
304 | 'premiums_intro_title' => [ | |
305 | 'type' => "Text", | |
306 | ], | |
307 | 'premiums_intro_text' => [ | |
308 | 'type' => "Text", | |
309 | ], | |
310 | 'premiums_nothankyou_label' => [ | |
311 | 'type' => "Text", | |
312 | ], | |
313 | ], | |
314 | 'civicrm_membership_status' => [ | |
315 | 'label' => [ | |
316 | 'type' => "Text", | |
317 | ], | |
318 | ], | |
319 | 'civicrm_survey' => [ | |
320 | 'title' => [ | |
321 | 'type' => "Text", | |
322 | 'required' => "true", | |
323 | ], | |
324 | 'instructions' => [ | |
325 | 'type' => "TextArea", | |
326 | 'rows' => "20", | |
327 | 'cols' => "80", | |
328 | ], | |
329 | 'thankyou_title' => [ | |
330 | 'type' => "Text", | |
331 | ], | |
332 | 'thankyou_text' => [ | |
333 | 'type' => "TextArea", | |
334 | 'rows' => "8", | |
335 | 'cols' => "60", | |
336 | ], | |
337 | ], | |
338 | 'civicrm_participant_status_type' => [ | |
339 | 'label' => [ | |
340 | 'type' => "Text", | |
341 | ], | |
342 | ], | |
343 | 'civicrm_case_type' => [ | |
344 | 'title' => [ | |
345 | 'type' => "Text", | |
346 | 'required' => "true", | |
347 | ], | |
348 | 'description' => [ | |
349 | 'type' => "Text", | |
350 | ], | |
351 | ], | |
352 | 'civicrm_tell_friend' => [ | |
353 | 'title' => [ | |
354 | 'type' => "Text", | |
355 | ], | |
356 | 'intro' => [ | |
357 | 'type' => "Text", | |
358 | ], | |
359 | 'suggested_message' => [ | |
360 | 'type' => "Text", | |
361 | ], | |
362 | 'thankyou_title' => [ | |
363 | 'type' => "Text", | |
364 | ], | |
365 | 'thankyou_text' => [ | |
366 | 'type' => "Text", | |
367 | ], | |
368 | ], | |
369 | 'civicrm_custom_group' => [ | |
370 | 'title' => [ | |
371 | 'type' => "Text", | |
372 | 'required' => "true", | |
373 | ], | |
374 | 'help_pre' => [ | |
375 | 'type' => "TextArea", | |
376 | 'rows' => "4", | |
377 | 'cols' => "80", | |
378 | ], | |
379 | 'help_post' => [ | |
380 | 'type' => "TextArea", | |
381 | 'rows' => "4", | |
382 | 'cols' => "80", | |
383 | ], | |
384 | ], | |
385 | 'civicrm_custom_field' => [ | |
386 | 'label' => [ | |
387 | 'type' => "Text", | |
388 | 'required' => "true", | |
389 | ], | |
390 | 'help_pre' => [ | |
391 | 'type' => "Text", | |
392 | ], | |
393 | 'help_post' => [ | |
394 | 'type' => "Text", | |
395 | ], | |
396 | ], | |
397 | 'civicrm_option_value' => [ | |
398 | 'label' => [ | |
399 | 'type' => "Text", | |
400 | 'required' => "true", | |
401 | ], | |
402 | 'description' => [ | |
403 | 'type' => "TextArea", | |
404 | 'rows' => "8", | |
405 | 'cols' => "60", | |
406 | ], | |
407 | ], | |
408 | 'civicrm_group' => [ | |
409 | 'title' => [ | |
410 | 'type' => "Text", | |
411 | ], | |
412 | ], | |
413 | 'civicrm_contribution_page' => [ | |
414 | 'title' => [ | |
415 | 'type' => "Text", | |
416 | ], | |
417 | 'intro_text' => [ | |
418 | 'type' => "RichTextEditor", | |
419 | 'rows' => "6", | |
420 | 'cols' => "50", | |
421 | ], | |
422 | 'pay_later_text' => [ | |
423 | 'type' => "Text", | |
424 | ], | |
425 | 'pay_later_receipt' => [ | |
426 | 'type' => "Text", | |
427 | ], | |
428 | 'initial_amount_label' => [ | |
429 | 'type' => "Text", | |
430 | ], | |
431 | 'initial_amount_help_text' => [ | |
432 | 'type' => "Text", | |
433 | ], | |
434 | 'thankyou_title' => [ | |
435 | 'type' => "Text", | |
436 | ], | |
437 | 'thankyou_text' => [ | |
438 | 'type' => "RichTextEditor", | |
439 | 'rows' => "8", | |
440 | 'cols' => "60", | |
441 | ], | |
442 | 'thankyou_footer' => [ | |
443 | 'type' => "RichTextEditor", | |
444 | 'rows' => "8", | |
445 | 'cols' => "60", | |
446 | ], | |
447 | 'receipt_from_name' => [ | |
448 | 'type' => "Text", | |
449 | ], | |
450 | 'receipt_text' => [ | |
451 | 'type' => "TextArea", | |
452 | 'rows' => "6", | |
453 | 'cols' => "50", | |
454 | ], | |
455 | 'footer_text' => [ | |
456 | 'type' => "RichTextEditor", | |
457 | 'rows' => "6", | |
458 | 'cols' => "50", | |
459 | ], | |
460 | ], | |
461 | 'civicrm_product' => [ | |
462 | 'name' => [ | |
463 | 'type' => "Text", | |
464 | 'required' => "true", | |
465 | ], | |
466 | 'description' => [ | |
467 | 'type' => "Text", | |
468 | ], | |
469 | 'options' => [ | |
470 | 'type' => "Text", | |
471 | ], | |
472 | ], | |
473 | 'civicrm_membership_type' => [ | |
474 | 'name' => [ | |
475 | 'type' => "Text", | |
476 | 'label' => "Name", | |
477 | ], | |
478 | 'description' => [ | |
479 | 'type' => "TextArea", | |
480 | 'rows' => "6", | |
481 | 'cols' => "50", | |
482 | 'label' => "Description", | |
483 | ], | |
484 | ], | |
485 | 'civicrm_membership_block' => [ | |
486 | 'new_title' => [ | |
487 | 'type' => "Text", | |
488 | ], | |
489 | 'new_text' => [ | |
490 | 'type' => "Text", | |
491 | ], | |
492 | 'renewal_title' => [ | |
493 | 'type' => "Text", | |
494 | ], | |
495 | 'renewal_text' => [ | |
496 | 'type' => "Text", | |
497 | ], | |
498 | ], | |
499 | 'civicrm_price_set' => [ | |
500 | 'title' => [ | |
501 | 'type' => "Text", | |
502 | 'required' => "true", | |
503 | ], | |
504 | 'help_pre' => [ | |
505 | 'type' => "TextArea", | |
506 | 'rows' => "4", | |
507 | 'cols' => "80", | |
508 | ], | |
509 | 'help_post' => [ | |
510 | 'type' => "TextArea", | |
511 | 'rows' => "4", | |
512 | 'cols' => "80", | |
513 | ], | |
514 | ], | |
515 | 'civicrm_dashboard' => [ | |
516 | 'label' => [ | |
517 | 'type' => "Text", | |
518 | ], | |
519 | ], | |
520 | 'civicrm_uf_group' => [ | |
521 | 'title' => [ | |
522 | 'type' => "Text", | |
523 | 'required' => "true", | |
524 | ], | |
525 | 'frontend_title' => [ | |
526 | 'type' => "Text", | |
527 | ], | |
528 | 'help_pre' => [ | |
529 | 'type' => "TextArea", | |
530 | 'rows' => "4", | |
531 | 'cols' => "80", | |
532 | ], | |
533 | 'help_post' => [ | |
534 | 'type' => "TextArea", | |
535 | 'rows' => "4", | |
536 | 'cols' => "80", | |
537 | ], | |
538 | 'cancel_button_text' => [ | |
539 | 'type' => "Text", | |
540 | ], | |
541 | 'submit_button_text' => [ | |
542 | 'type' => "Text", | |
543 | ], | |
544 | ], | |
545 | 'civicrm_uf_field' => [ | |
546 | 'help_post' => [ | |
547 | 'type' => "Text", | |
548 | ], | |
549 | 'help_pre' => [ | |
550 | 'type' => "Text", | |
551 | ], | |
552 | 'label' => [ | |
553 | 'type' => "Text", | |
554 | 'required' => "true", | |
555 | ], | |
556 | ], | |
557 | 'civicrm_price_field' => [ | |
558 | 'label' => [ | |
559 | 'type' => "Text", | |
560 | 'required' => "true", | |
561 | ], | |
562 | 'help_pre' => [ | |
563 | 'type' => "TextArea", | |
564 | 'rows' => "4", | |
565 | 'cols' => "80", | |
566 | ], | |
567 | 'help_post' => [ | |
568 | 'type' => "TextArea", | |
569 | 'rows' => "4", | |
570 | 'cols' => "80", | |
571 | ], | |
572 | ], | |
573 | 'civicrm_price_field_value' => [ | |
574 | 'label' => [ | |
575 | 'type' => "Text", | |
576 | ], | |
577 | 'description' => [ | |
578 | 'type' => "TextArea", | |
579 | 'rows' => "2", | |
580 | 'cols' => "60", | |
581 | ], | |
582 | 'help_pre' => [ | |
583 | 'type' => "TextArea", | |
584 | 'rows' => "2", | |
585 | 'cols' => "60", | |
586 | ], | |
587 | 'help_post' => [ | |
588 | 'type' => "TextArea", | |
589 | 'rows' => "2", | |
590 | 'cols' => "60", | |
591 | ], | |
592 | ], | |
593 | 'civicrm_pcp_block' => [ | |
594 | 'link_text' => [ | |
595 | 'type' => "Text", | |
596 | ], | |
597 | ], | |
598 | 'civicrm_event' => [ | |
599 | 'title' => [ | |
600 | 'type' => "Text", | |
601 | ], | |
602 | 'summary' => [ | |
603 | 'type' => "TextArea", | |
604 | 'rows' => "4", | |
605 | 'cols' => "60", | |
606 | ], | |
607 | 'description' => [ | |
608 | 'type' => "TextArea", | |
609 | 'rows' => "8", | |
610 | 'cols' => "60", | |
611 | ], | |
612 | 'registration_link_text' => [ | |
613 | 'type' => "Text", | |
614 | ], | |
615 | 'event_full_text' => [ | |
616 | 'type' => "TextArea", | |
617 | 'rows' => "4", | |
618 | 'cols' => "60", | |
619 | ], | |
620 | 'fee_label' => [ | |
621 | 'type' => "Text", | |
622 | ], | |
623 | 'intro_text' => [ | |
624 | 'type' => "TextArea", | |
625 | 'rows' => "6", | |
626 | 'cols' => "50", | |
627 | ], | |
628 | 'footer_text' => [ | |
629 | 'type' => "TextArea", | |
630 | 'rows' => "6", | |
631 | 'cols' => "50", | |
632 | ], | |
633 | 'confirm_title' => [ | |
634 | 'type' => "Text", | |
635 | ], | |
636 | 'confirm_text' => [ | |
637 | 'type' => "TextArea", | |
638 | 'rows' => "6", | |
639 | 'cols' => "50", | |
640 | ], | |
641 | 'confirm_footer_text' => [ | |
642 | 'type' => "TextArea", | |
643 | 'rows' => "6", | |
644 | 'cols' => "50", | |
645 | ], | |
646 | 'confirm_email_text' => [ | |
647 | 'type' => "TextArea", | |
648 | 'rows' => "4", | |
649 | 'cols' => "50", | |
650 | ], | |
651 | 'confirm_from_name' => [ | |
652 | 'type' => "Text", | |
653 | ], | |
654 | 'thankyou_title' => [ | |
655 | 'type' => "Text", | |
656 | ], | |
657 | 'thankyou_text' => [ | |
658 | 'type' => "TextArea", | |
659 | 'rows' => "6", | |
660 | 'cols' => "50", | |
661 | ], | |
662 | 'thankyou_footer_text' => [ | |
663 | 'type' => "TextArea", | |
664 | 'rows' => "6", | |
665 | 'cols' => "50", | |
666 | ], | |
667 | 'pay_later_text' => [ | |
668 | 'type' => "Text", | |
669 | ], | |
670 | 'pay_later_receipt' => [ | |
671 | 'type' => "Text", | |
672 | ], | |
673 | 'initial_amount_label' => [ | |
674 | 'type' => "Text", | |
675 | ], | |
676 | 'initial_amount_help_text' => [ | |
677 | 'type' => "Text", | |
678 | ], | |
679 | 'waitlist_text' => [ | |
680 | 'type' => "TextArea", | |
681 | 'rows' => "4", | |
682 | 'cols' => "60", | |
683 | ], | |
684 | 'approval_req_text' => [ | |
685 | 'type' => "TextArea", | |
686 | 'rows' => "4", | |
687 | 'cols' => "60", | |
688 | ], | |
689 | 'template_title' => [ | |
690 | 'type' => "Text", | |
691 | ], | |
692 | ], | |
693 | ]; | |
694 | } | |
695 | return $result; | |
696 | } | |
697 | ||
698 | } |