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