Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
fee14197 | 4 | | CiviCRM version 5 | |
6a488035 | 5 | +--------------------------------------------------------------------+ |
6b83d5bd | 6 | | Copyright CiviCRM LLC (c) 2004-2019 | |
6a488035 TO |
7 | +--------------------------------------------------------------------+ |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
e70a7fc0 | 26 | */ |
353ffa53 | 27 | |
6a488035 TO |
28 | /** |
29 | * | |
30 | * @package CRM | |
6b83d5bd | 31 | * @copyright CiviCRM LLC (c) 2004-2019 |
6a488035 TO |
32 | * $Id$ |
33 | * | |
34 | */ | |
d3e86119 | 35 | class CRM_Core_I18n_SchemaStructure_4_2_alpha1 { |
a0ee3941 EM |
36 | /** |
37 | * @return array | |
38 | */ | |
d3e86119 | 39 | public static function &columns() { |
e60f24eb | 40 | static $result = NULL; |
6a488035 TO |
41 | if (!$result) { |
42 | $result = array( | |
43 | 'civicrm_location_type' => array( | |
353ffa53 TO |
44 | 'display_name' => "varchar(64)", |
45 | ), | |
6a488035 | 46 | 'civicrm_option_group' => array( |
353ffa53 TO |
47 | 'title' => "varchar(255)", |
48 | 'description' => "varchar(255)", | |
49 | ), | |
6a488035 | 50 | 'civicrm_contact_type' => array( |
353ffa53 TO |
51 | 'label' => "varchar(64)", |
52 | 'description' => "text", | |
53 | ), | |
6a488035 TO |
54 | 'civicrm_premiums' => array( |
55 | 'premiums_intro_title' => "varchar(255)", | |
56 | 'premiums_intro_text' => "text", | |
353ffa53 | 57 | ), |
6a488035 TO |
58 | 'civicrm_product' => array( |
59 | 'name' => "varchar(255)", | |
60 | 'description' => "text", | |
61 | 'options' => "text", | |
353ffa53 | 62 | ), |
6a488035 TO |
63 | 'civicrm_membership_status' => array( |
64 | 'label' => "varchar(128)", | |
353ffa53 | 65 | ), |
6a488035 TO |
66 | 'civicrm_survey' => array( |
67 | 'thankyou_title' => "varchar(255)", | |
68 | 'thankyou_text' => "text", | |
353ffa53 TO |
69 | ), |
70 | 'civicrm_participant_status_type' => array( | |
71 | 'label' => "varchar(255)", | |
72 | ), | |
6a488035 TO |
73 | 'civicrm_tell_friend' => array( |
74 | 'title' => "varchar(255)", | |
75 | 'intro' => "text", | |
76 | 'suggested_message' => "text", | |
77 | 'thankyou_title' => "varchar(255)", | |
78 | 'thankyou_text' => "text", | |
353ffa53 | 79 | ), |
6a488035 TO |
80 | 'civicrm_price_set' => array( |
81 | 'title' => "varchar(255)", | |
82 | 'help_pre' => "text", | |
83 | 'help_post' => "text", | |
353ffa53 | 84 | ), |
6a488035 TO |
85 | 'civicrm_batch' => array( |
86 | 'title' => "varchar(64)", | |
87 | 'description' => "text", | |
353ffa53 | 88 | ), |
6a488035 TO |
89 | 'civicrm_custom_group' => array( |
90 | 'title' => "varchar(64)", | |
91 | 'help_pre' => "text", | |
92 | 'help_post' => "text", | |
353ffa53 | 93 | ), |
6a488035 TO |
94 | 'civicrm_custom_field' => array( |
95 | 'label' => "varchar(255)", | |
96 | 'help_pre' => "text", | |
97 | 'help_post' => "text", | |
353ffa53 | 98 | ), |
6a488035 TO |
99 | 'civicrm_dashboard' => array( |
100 | 'label' => "varchar(255)", | |
353ffa53 TO |
101 | ), |
102 | 'civicrm_option_value' => array( | |
103 | 'label' => "varchar(255)", | |
104 | 'description' => "text", | |
105 | ), | |
6a488035 TO |
106 | 'civicrm_group' => array( |
107 | 'title' => "varchar(64)", | |
353ffa53 | 108 | ), |
6a488035 TO |
109 | 'civicrm_contribution_page' => array( |
110 | 'title' => "varchar(255)", | |
111 | 'intro_text' => "text", | |
112 | 'pay_later_text' => "text", | |
113 | 'pay_later_receipt' => "text", | |
114 | 'thankyou_title' => "varchar(255)", | |
115 | 'thankyou_text' => "text", | |
116 | 'thankyou_footer' => "text", | |
117 | 'for_organization' => "text", | |
118 | 'receipt_from_name' => "varchar(255)", | |
119 | 'receipt_text' => "text", | |
120 | 'footer_text' => "text", | |
121 | 'honor_block_title' => "varchar(255)", | |
122 | 'honor_block_text' => "text", | |
353ffa53 | 123 | ), |
6a488035 TO |
124 | 'civicrm_price_field' => array( |
125 | 'label' => "varchar(255)", | |
126 | 'help_pre' => "text", | |
127 | 'help_post' => "text", | |
353ffa53 | 128 | ), |
6a488035 TO |
129 | 'civicrm_uf_group' => array( |
130 | 'title' => "varchar(64)", | |
131 | 'help_pre' => "text", | |
132 | 'help_post' => "text", | |
353ffa53 | 133 | ), |
6a488035 TO |
134 | 'civicrm_uf_field' => array( |
135 | 'help_post' => "text", | |
136 | 'help_pre' => "text", | |
137 | 'label' => "varchar(255)", | |
353ffa53 | 138 | ), |
6a488035 TO |
139 | 'civicrm_membership_type' => array( |
140 | 'name' => "varchar(128)", | |
141 | 'description' => "varchar(255)", | |
353ffa53 | 142 | ), |
6a488035 TO |
143 | 'civicrm_membership_block' => array( |
144 | 'new_title' => "varchar(255)", | |
145 | 'new_text' => "text", | |
146 | 'renewal_title' => "varchar(255)", | |
147 | 'renewal_text' => "text", | |
353ffa53 | 148 | ), |
6a488035 TO |
149 | 'civicrm_price_field_value' => array( |
150 | 'label' => "varchar(255)", | |
151 | 'description' => "text", | |
353ffa53 | 152 | ), |
6a488035 TO |
153 | 'civicrm_pcp_block' => array( |
154 | 'link_text' => "varchar(255)", | |
353ffa53 | 155 | ), |
6a488035 TO |
156 | 'civicrm_event' => array( |
157 | 'title' => "varchar(255)", | |
158 | 'summary' => "text", | |
159 | 'description' => "text", | |
160 | 'registration_link_text' => "varchar(255)", | |
161 | 'event_full_text' => "text", | |
162 | 'fee_label' => "varchar(255)", | |
163 | 'intro_text' => "text", | |
164 | 'footer_text' => "text", | |
165 | 'confirm_title' => "varchar(255)", | |
166 | 'confirm_text' => "text", | |
167 | 'confirm_footer_text' => "text", | |
168 | 'confirm_email_text' => "text", | |
169 | 'confirm_from_name' => "varchar(255)", | |
170 | 'thankyou_title' => "varchar(255)", | |
171 | 'thankyou_text' => "text", | |
172 | 'thankyou_footer_text' => "text", | |
173 | 'pay_later_text' => "text", | |
174 | 'pay_later_receipt' => "text", | |
175 | 'waitlist_text' => "text", | |
176 | 'approval_req_text' => "text", | |
177 | 'template_title' => "varchar(255)", | |
353ffa53 TO |
178 | ), |
179 | ); | |
6a488035 | 180 | } |
353ffa53 TO |
181 | return $result; |
182 | } | |
a0ee3941 EM |
183 | |
184 | /** | |
185 | * @return array | |
186 | */ | |
6ea503d4 | 187 | public static function &indices() { |
e60f24eb | 188 | static $result = NULL; |
6a488035 TO |
189 | if (!$result) { |
190 | $result = array( | |
191 | 'civicrm_custom_group' => array( | |
192 | 'UI_title_extends' => array( | |
193 | 'name' => 'UI_title_extends', | |
194 | 'field' => array( | |
195 | 'title', | |
196 | 'extends', | |
353ffa53 | 197 | ), |
6a488035 | 198 | 'unique' => 1, |
353ffa53 TO |
199 | ), |
200 | ), | |
6a488035 TO |
201 | 'civicrm_custom_field' => array( |
202 | 'UI_label_custom_group_id' => array( | |
203 | 'name' => 'UI_label_custom_group_id', | |
204 | 'field' => array( | |
205 | 'label', | |
206 | 'custom_group_id', | |
353ffa53 | 207 | ), |
6a488035 | 208 | 'unique' => 1, |
353ffa53 TO |
209 | ), |
210 | ), | |
6a488035 TO |
211 | 'civicrm_group' => array( |
212 | 'UI_title' => array( | |
213 | 'name' => 'UI_title', | |
214 | 'field' => array( | |
215 | 'title', | |
353ffa53 | 216 | ), |
6a488035 | 217 | 'unique' => 1, |
353ffa53 TO |
218 | ), |
219 | ), | |
6a488035 TO |
220 | ); |
221 | } | |
222 | return $result; | |
223 | } | |
a0ee3941 EM |
224 | |
225 | /** | |
226 | * @return array | |
227 | */ | |
6ea503d4 | 228 | public static function &tables() { |
e60f24eb | 229 | static $result = NULL; |
6a488035 TO |
230 | if (!$result) { |
231 | $result = array_keys(self::columns()); | |
232 | } | |
233 | return $result; | |
234 | } | |
96025800 | 235 | |
6a488035 | 236 | } |