CRM/Core add missing comment blocks (autogenerated)
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_3_3_beta1.php
CommitLineData
6a488035
TO
1<?php
2/*
3+--------------------------------------------------------------------+
06b69b18 4| CiviCRM version 4.5 |
6a488035 5+--------------------------------------------------------------------+
06b69b18 6| Copyright CiviCRM LLC (c) 2004-2014 |
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+--------------------------------------------------------------------+
26*/
27
28/**
29 *
30 * @package CRM
06b69b18 31 * @copyright CiviCRM LLC (c) 2004-2014
6a488035
TO
32 * $Id$
33 *
34 */
35class CRM_Core_I18n_SchemaStructure_3_3_beta1 {
a0ee3941
EM
36 /**
37 * @return array
38 */
6a488035
TO
39 static
40 function &columns() {
41 static $result = NULL;
42 if (!$result) {
43 $result = array(
44 'civicrm_option_group' => array(
45 'label' => 'varchar(255)',
46 'description' => 'varchar(255)',
47 ),
48 'civicrm_contact' => array(
49 'sort_name' => 'varchar(128)',
50 'display_name' => 'varchar(128)',
51 'first_name' => 'varchar(64)',
52 'middle_name' => 'varchar(64)',
53 'last_name' => 'varchar(64)',
54 'email_greeting_display' => 'varchar(255)',
55 'postal_greeting_display' => 'varchar(255)',
56 'addressee_display' => 'varchar(255)',
57 'household_name' => 'varchar(128)',
58 'organization_name' => 'varchar(128)',
59 ),
60 'civicrm_contact_type' => array(
61 'label' => 'varchar(64)',
62 'description' => 'text',
63 ),
64 'civicrm_mailing_component' => array(
65 'name' => 'varchar(64)',
66 'subject' => 'varchar(255)',
67 'body_html' => 'text',
68 'body_text' => 'text',
69 ),
70 'civicrm_mailing' => array(
71 'name' => 'varchar(128)',
72 'from_name' => 'varchar(128)',
73 'subject' => 'varchar(128)',
74 'body_text' => 'longtext',
75 'body_html' => 'longtext',
76 ),
77 'civicrm_premiums' => array(
78 'premiums_intro_title' => 'varchar(255)',
79 'premiums_intro_text' => 'text',
80 ),
81 'civicrm_product' => array(
82 'name' => 'varchar(255)',
83 'description' => 'text',
84 'options' => 'text',
85 ),
86 'civicrm_membership_type' => array(
87 'name' => 'varchar(128)',
88 'description' => 'varchar(255)',
89 ),
90 'civicrm_membership_status' => array(
91 'label' => 'varchar(128)',
92 ),
93 'civicrm_participant_status_type' => array(
94 'label' => 'varchar(255)',
95 ),
96 'civicrm_tell_friend' => array(
97 'title' => 'varchar(255)',
98 'intro' => 'text',
99 'suggested_message' => 'text',
100 'thankyou_title' => 'varchar(255)',
101 'thankyou_text' => 'text',
102 ),
103 'civicrm_price_set' => array(
104 'title' => 'varchar(255)',
105 'help_pre' => 'text',
106 'help_post' => 'text',
107 ),
108 'civicrm_batch' => array(
109 'label' => 'varchar(64)',
110 'description' => 'text',
111 ),
112 'civicrm_custom_group' => array(
113 'title' => 'varchar(64)',
114 'help_pre' => 'text',
115 'help_post' => 'text',
116 ),
117 'civicrm_custom_field' => array(
118 'label' => 'varchar(255)',
119 'help_pre' => 'text',
120 'help_post' => 'text',
121 ),
122 'civicrm_dashboard' => array(
123 'label' => 'varchar(255)',
124 ),
125 'civicrm_option_value' => array(
126 'label' => 'varchar(255)',
127 'description' => 'varchar(255)',
128 ),
129 'civicrm_contribution_page' => array(
130 'title' => 'varchar(255)',
131 'intro_text' => 'text',
132 'pay_later_text' => 'text',
133 'pay_later_receipt' => 'text',
134 'thankyou_title' => 'varchar(255)',
135 'thankyou_text' => 'text',
136 'thankyou_footer' => 'text',
137 'for_organization' => 'text',
138 'receipt_from_name' => 'varchar(255)',
139 'receipt_text' => 'text',
140 'footer_text' => 'text',
141 'honor_block_title' => 'varchar(255)',
142 'honor_block_text' => 'text',
143 ),
144 'civicrm_membership_block' => array(
145 'new_title' => 'varchar(255)',
146 'new_text' => 'text',
147 'renewal_title' => 'varchar(255)',
148 'renewal_text' => 'text',
149 ),
150 'civicrm_price_field' => array(
151 'label' => 'varchar(255)',
152 'help_pre' => 'text',
153 'help_post' => 'text',
154 ),
155 'civicrm_uf_group' => array(
156 'title' => 'varchar(64)',
157 'help_pre' => 'text',
158 'help_post' => 'text',
159 ),
160 'civicrm_uf_field' => array(
161 'help_post' => 'text',
162 'help_pre' => 'text',
163 'label' => 'varchar(255)',
164 ),
165 'civicrm_address' => array(
166 'street_address' => 'varchar(96)',
167 'supplemental_address_1' => 'varchar(96)',
168 'supplemental_address_2' => 'varchar(96)',
169 'supplemental_address_3' => 'varchar(96)',
170 'city' => 'varchar(64)',
171 'name' => 'varchar(255)',
172 ),
173 'civicrm_event' => array(
174 'title' => 'varchar(255)',
175 'summary' => 'text',
176 'description' => 'text',
177 'registration_link_text' => 'varchar(255)',
178 'event_full_text' => 'text',
179 'fee_label' => 'varchar(255)',
180 'intro_text' => 'text',
181 'footer_text' => 'text',
182 'confirm_title' => 'varchar(255)',
183 'confirm_text' => 'text',
184 'confirm_footer_text' => 'text',
185 'confirm_email_text' => 'text',
186 'confirm_from_name' => 'varchar(255)',
187 'thankyou_title' => 'varchar(255)',
188 'thankyou_text' => 'text',
189 'thankyou_footer_text' => 'text',
190 'pay_later_text' => 'text',
191 'pay_later_receipt' => 'text',
192 'waitlist_text' => 'text',
193 'approval_req_text' => 'text',
194 'template_title' => 'varchar(255)',
195 ),
196 'civicrm_price_field_value' => array(
197 'label' => 'varchar(255)',
198 'description' => 'text',
199 ),
200 );
201 }
202 return $result;
203 }
a0ee3941
EM
204
205 /**
206 * @return array
207 */
6a488035
TO
208 static
209 function &indices() {
210 static $result = NULL;
211 if (!$result) {
212 $result = array(
213 'civicrm_contact' => array(
214 'index_sort_name' => array(
215 'name' => 'index_sort_name',
216 'field' => array(
217 'sort_name',
218 ),
219 ),
220 'index_first_name' => array(
221 'name' => 'index_first_name',
222 'field' => array(
223 'first_name',
224 ),
225 ),
226 'index_last_name' => array(
227 'name' => 'index_last_name',
228 'field' => array(
229 'last_name',
230 ),
231 ),
232 'index_household_name' => array(
233 'name' => 'index_household_name',
234 'field' => array(
235 'household_name',
236 ),
237 ),
238 'index_organization_name' => array(
239 'name' => 'index_organization_name',
240 'field' => array(
241 'organization_name',
242 ),
243 ),
244 ),
245 'civicrm_price_set' => array(
246 'UI_title' => array(
247 'name' => 'UI_title',
248 'field' => array(
249 'title',
250 ),
251 'unique' => 1,
252 ),
253 ),
254 'civicrm_custom_group' => array(
255 'UI_title_extends' => array(
256 'name' => 'UI_title_extends',
257 'field' => array(
258 'title',
259 'extends',
260 ),
261 'unique' => 1,
262 ),
263 ),
264 'civicrm_custom_field' => array(
265 'UI_label_custom_group_id' => array(
266 'name' => 'UI_label_custom_group_id',
267 'field' => array(
268 'label',
269 'custom_group_id',
270 ),
271 'unique' => 1,
272 ),
273 ),
274 'civicrm_address' => array(
275 'index_city' => array(
276 'name' => 'index_city',
277 'field' => array(
278 'city',
279 ),
280 ),
281 ),
282 );
283 }
284 return $result;
285 }
a0ee3941
EM
286
287 /**
288 * @return array
289 */
6a488035
TO
290 static
291 function &tables() {
292 static $result = NULL;
293 if (!$result) {
294 $result = array_keys(self::columns());
295 }
296 return $result;
297 }
298}
299