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