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