Commit | Line | Data |
---|---|---|
be996105 PJ |
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 | +--------------------------------------------------------------------+ | |
e70a7fc0 | 10 | */ |
353ffa53 | 11 | |
be996105 PJ |
12 | /** |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
be996105 | 16 | */ |
d3e86119 | 17 | class CRM_Core_I18n_SchemaStructure_4_3_1 { |
518fa0ee | 18 | |
a0ee3941 EM |
19 | /** |
20 | * @return array | |
21 | */ | |
6ea503d4 | 22 | public static function &columns() { |
e60f24eb | 23 | static $result = NULL; |
be996105 | 24 | if (!$result) { |
be2fb01f CW |
25 | $result = [ |
26 | 'civicrm_location_type' => [ | |
be996105 | 27 | 'display_name' => "varchar(64)", |
be2fb01f CW |
28 | ], |
29 | 'civicrm_option_group' => [ | |
be996105 PJ |
30 | 'title' => "varchar(255)", |
31 | 'description' => "varchar(255)", | |
be2fb01f CW |
32 | ], |
33 | 'civicrm_contact_type' => [ | |
be996105 PJ |
34 | 'label' => "varchar(64)", |
35 | 'description' => "text", | |
be2fb01f CW |
36 | ], |
37 | 'civicrm_batch' => [ | |
be996105 PJ |
38 | 'title' => "varchar(64)", |
39 | 'description' => "text", | |
be2fb01f CW |
40 | ], |
41 | 'civicrm_premiums' => [ | |
be996105 PJ |
42 | 'premiums_intro_title' => "varchar(255)", |
43 | 'premiums_intro_text' => "text", | |
44 | 'premiums_nothankyou_label' => "varchar(255)", | |
be2fb01f CW |
45 | ], |
46 | 'civicrm_membership_status' => [ | |
be996105 | 47 | 'label' => "varchar(128)", |
be2fb01f CW |
48 | ], |
49 | 'civicrm_survey' => [ | |
be996105 PJ |
50 | 'thankyou_title' => "varchar(255)", |
51 | 'thankyou_text' => "text", | |
be2fb01f CW |
52 | ], |
53 | 'civicrm_participant_status_type' => [ | |
be996105 | 54 | 'label' => "varchar(255)", |
be2fb01f CW |
55 | ], |
56 | 'civicrm_tell_friend' => [ | |
be996105 PJ |
57 | 'title' => "varchar(255)", |
58 | 'intro' => "text", | |
59 | 'suggested_message' => "text", | |
60 | 'thankyou_title' => "varchar(255)", | |
61 | 'thankyou_text' => "text", | |
be2fb01f CW |
62 | ], |
63 | 'civicrm_custom_group' => [ | |
be996105 PJ |
64 | 'title' => "varchar(64)", |
65 | 'help_pre' => "text", | |
66 | 'help_post' => "text", | |
be2fb01f CW |
67 | ], |
68 | 'civicrm_custom_field' => [ | |
be996105 PJ |
69 | 'label' => "varchar(255)", |
70 | 'help_pre' => "text", | |
71 | 'help_post' => "text", | |
be2fb01f CW |
72 | ], |
73 | 'civicrm_option_value' => [ | |
be996105 PJ |
74 | 'label' => "varchar(255)", |
75 | 'description' => "text", | |
be2fb01f CW |
76 | ], |
77 | 'civicrm_group' => [ | |
be996105 | 78 | 'title' => "varchar(64)", |
be2fb01f CW |
79 | ], |
80 | 'civicrm_contribution_page' => [ | |
be996105 PJ |
81 | 'title' => "varchar(255)", |
82 | 'intro_text' => "text", | |
83 | 'pay_later_text' => "text", | |
84 | 'pay_later_receipt' => "text", | |
85 | 'initial_amount_label' => "varchar(255)", | |
86 | 'initial_amount_help_text' => "text", | |
87 | 'thankyou_title' => "varchar(255)", | |
88 | 'thankyou_text' => "text", | |
89 | 'thankyou_footer' => "text", | |
90 | 'for_organization' => "text", | |
91 | 'receipt_from_name' => "varchar(255)", | |
92 | 'receipt_text' => "text", | |
93 | 'footer_text' => "text", | |
94 | 'honor_block_title' => "varchar(255)", | |
95 | 'honor_block_text' => "text", | |
be2fb01f CW |
96 | ], |
97 | 'civicrm_product' => [ | |
be996105 PJ |
98 | 'name' => "varchar(255)", |
99 | 'description' => "text", | |
100 | 'options' => "text", | |
be2fb01f CW |
101 | ], |
102 | 'civicrm_membership_type' => [ | |
be996105 PJ |
103 | 'name' => "varchar(128)", |
104 | 'description' => "varchar(255)", | |
be2fb01f CW |
105 | ], |
106 | 'civicrm_membership_block' => [ | |
be996105 PJ |
107 | 'new_title' => "varchar(255)", |
108 | 'new_text' => "text", | |
109 | 'renewal_title' => "varchar(255)", | |
110 | 'renewal_text' => "text", | |
be2fb01f CW |
111 | ], |
112 | 'civicrm_price_set' => [ | |
be996105 PJ |
113 | 'title' => "varchar(255)", |
114 | 'help_pre' => "text", | |
115 | 'help_post' => "text", | |
be2fb01f CW |
116 | ], |
117 | 'civicrm_dashboard' => [ | |
be996105 | 118 | 'label' => "varchar(255)", |
be2fb01f CW |
119 | ], |
120 | 'civicrm_uf_group' => [ | |
be996105 PJ |
121 | 'title' => "varchar(64)", |
122 | 'help_pre' => "text", | |
123 | 'help_post' => "text", | |
be2fb01f CW |
124 | ], |
125 | 'civicrm_uf_field' => [ | |
be996105 PJ |
126 | 'help_post' => "text", |
127 | 'help_pre' => "text", | |
128 | 'label' => "varchar(255)", | |
be2fb01f CW |
129 | ], |
130 | 'civicrm_price_field' => [ | |
be996105 PJ |
131 | 'label' => "varchar(255)", |
132 | 'help_pre' => "text", | |
133 | 'help_post' => "text", | |
be2fb01f CW |
134 | ], |
135 | 'civicrm_price_field_value' => [ | |
be996105 PJ |
136 | 'label' => "varchar(255)", |
137 | 'description' => "text", | |
be2fb01f CW |
138 | ], |
139 | 'civicrm_pcp_block' => [ | |
be996105 | 140 | 'link_text' => "varchar(255)", |
be2fb01f CW |
141 | ], |
142 | 'civicrm_event' => [ | |
be996105 PJ |
143 | 'title' => "varchar(255)", |
144 | 'summary' => "text", | |
145 | 'description' => "text", | |
146 | 'registration_link_text' => "varchar(255)", | |
147 | 'event_full_text' => "text", | |
148 | 'fee_label' => "varchar(255)", | |
149 | 'intro_text' => "text", | |
150 | 'footer_text' => "text", | |
151 | 'confirm_title' => "varchar(255)", | |
152 | 'confirm_text' => "text", | |
153 | 'confirm_footer_text' => "text", | |
154 | 'confirm_email_text' => "text", | |
155 | 'confirm_from_name' => "varchar(255)", | |
156 | 'thankyou_title' => "varchar(255)", | |
157 | 'thankyou_text' => "text", | |
158 | 'thankyou_footer_text' => "text", | |
159 | 'pay_later_text' => "text", | |
160 | 'pay_later_receipt' => "text", | |
161 | 'initial_amount_label' => "varchar(255)", | |
162 | 'initial_amount_help_text' => "text", | |
163 | 'waitlist_text' => "text", | |
164 | 'approval_req_text' => "text", | |
165 | 'template_title' => "varchar(255)", | |
be2fb01f CW |
166 | ], |
167 | ]; | |
be996105 PJ |
168 | } |
169 | return $result; | |
170 | } | |
a0ee3941 EM |
171 | |
172 | /** | |
173 | * @return array | |
174 | */ | |
6ea503d4 | 175 | public static function &indices() { |
e60f24eb | 176 | static $result = NULL; |
be996105 | 177 | if (!$result) { |
be2fb01f CW |
178 | $result = [ |
179 | 'civicrm_custom_group' => [ | |
180 | 'UI_title_extends' => [ | |
be996105 | 181 | 'name' => 'UI_title_extends', |
be2fb01f | 182 | 'field' => [ |
be996105 PJ |
183 | 'title', |
184 | 'extends', | |
be2fb01f | 185 | ], |
be996105 | 186 | 'unique' => 1, |
be2fb01f CW |
187 | ], |
188 | ], | |
189 | 'civicrm_custom_field' => [ | |
190 | 'UI_label_custom_group_id' => [ | |
be996105 | 191 | 'name' => 'UI_label_custom_group_id', |
be2fb01f | 192 | 'field' => [ |
be996105 PJ |
193 | 'label', |
194 | 'custom_group_id', | |
be2fb01f | 195 | ], |
be996105 | 196 | 'unique' => 1, |
be2fb01f CW |
197 | ], |
198 | ], | |
199 | 'civicrm_group' => [ | |
200 | 'UI_title' => [ | |
be996105 | 201 | 'name' => 'UI_title', |
be2fb01f | 202 | 'field' => [ |
be996105 | 203 | 'title', |
be2fb01f | 204 | ], |
be996105 | 205 | 'unique' => 1, |
be2fb01f CW |
206 | ], |
207 | ], | |
208 | ]; | |
be996105 PJ |
209 | } |
210 | return $result; | |
211 | } | |
a0ee3941 EM |
212 | |
213 | /** | |
214 | * @return array | |
215 | */ | |
6ea503d4 | 216 | public static function &tables() { |
e60f24eb | 217 | static $result = NULL; |
be996105 PJ |
218 | if (!$result) { |
219 | $result = array_keys(self::columns()); | |
220 | } | |
221 | return $result; | |
222 | } | |
96025800 | 223 | |
be996105 | 224 | } |