Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-09-01-22-48-29
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_4_2_alpha1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
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 * @package CRM
30 * @copyright CiviCRM LLC (c) 2004-2014
31 * $Id$
32 *
33 */
34 class CRM_Core_I18n_SchemaStructure_4_2_alpha1
35 {
36 /**
37 * @return array
38 */
39 static function &columns()
40 {
41 static $result = null;
42 if (!$result) {
43 $result = array(
44 'civicrm_location_type' => array(
45 'display_name' => "varchar(64)",
46 ) ,
47 'civicrm_option_group' => array(
48 'title' => "varchar(255)",
49 'description' => "varchar(255)",
50 ) ,
51 'civicrm_contact_type' => array(
52 'label' => "varchar(64)",
53 'description' => "text",
54 ) ,
55 'civicrm_premiums' => array(
56 'premiums_intro_title' => "varchar(255)",
57 'premiums_intro_text' => "text",
58 ) ,
59 'civicrm_product' => array(
60 'name' => "varchar(255)",
61 'description' => "text",
62 'options' => "text",
63 ) ,
64 'civicrm_membership_status' => array(
65 'label' => "varchar(128)",
66 ) ,
67 'civicrm_survey' => array(
68 'thankyou_title' => "varchar(255)",
69 'thankyou_text' => "text",
70 ) ,
71 'civicrm_participant_status_type' => array(
72 'label' => "varchar(255)",
73 ) ,
74 'civicrm_tell_friend' => array(
75 'title' => "varchar(255)",
76 'intro' => "text",
77 'suggested_message' => "text",
78 'thankyou_title' => "varchar(255)",
79 'thankyou_text' => "text",
80 ) ,
81 'civicrm_price_set' => array(
82 'title' => "varchar(255)",
83 'help_pre' => "text",
84 'help_post' => "text",
85 ) ,
86 'civicrm_batch' => array(
87 'title' => "varchar(64)",
88 'description' => "text",
89 ) ,
90 'civicrm_custom_group' => array(
91 'title' => "varchar(64)",
92 'help_pre' => "text",
93 'help_post' => "text",
94 ) ,
95 'civicrm_custom_field' => array(
96 'label' => "varchar(255)",
97 'help_pre' => "text",
98 'help_post' => "text",
99 ) ,
100 'civicrm_dashboard' => array(
101 'label' => "varchar(255)",
102 ) ,
103 'civicrm_option_value' => array(
104 'label' => "varchar(255)",
105 'description' => "text",
106 ) ,
107 'civicrm_group' => array(
108 'title' => "varchar(64)",
109 ) ,
110 'civicrm_contribution_page' => array(
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",
124 ) ,
125 'civicrm_price_field' => array(
126 'label' => "varchar(255)",
127 'help_pre' => "text",
128 'help_post' => "text",
129 ) ,
130 'civicrm_uf_group' => array(
131 'title' => "varchar(64)",
132 'help_pre' => "text",
133 'help_post' => "text",
134 ) ,
135 'civicrm_uf_field' => array(
136 'help_post' => "text",
137 'help_pre' => "text",
138 'label' => "varchar(255)",
139 ) ,
140 'civicrm_membership_type' => array(
141 'name' => "varchar(128)",
142 'description' => "varchar(255)",
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_value' => array(
151 'label' => "varchar(255)",
152 'description' => "text",
153 ) ,
154 'civicrm_pcp_block' => array(
155 'link_text' => "varchar(255)",
156 ) ,
157 'civicrm_event' => array(
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)",
179 ) ,
180 );
181 }
182 return $result;
183 }
184
185 /**
186 * @return array
187 */
188 static function &indices()
189 {
190 static $result = null;
191 if (!$result) {
192 $result = array(
193 'civicrm_custom_group' => array(
194 'UI_title_extends' => array(
195 'name' => 'UI_title_extends',
196 'field' => array(
197 'title',
198 'extends',
199 ) ,
200 'unique' => 1,
201 ) ,
202 ) ,
203 'civicrm_custom_field' => array(
204 'UI_label_custom_group_id' => array(
205 'name' => 'UI_label_custom_group_id',
206 'field' => array(
207 'label',
208 'custom_group_id',
209 ) ,
210 'unique' => 1,
211 ) ,
212 ) ,
213 'civicrm_group' => array(
214 'UI_title' => array(
215 'name' => 'UI_title',
216 'field' => array(
217 'title',
218 ) ,
219 'unique' => 1,
220 ) ,
221 ) ,
222 );
223 }
224 return $result;
225 }
226
227 /**
228 * @return array
229 */
230 static function &tables()
231 {
232 static $result = null;
233 if (!$result) {
234 $result = array_keys(self::columns());
235 }
236 return $result;
237 }
238 }