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