| 1 | <?php |
| 2 | /* |
| 3 | +--------------------------------------------------------------------+ |
| 4 | | CiviCRM version 5 | |
| 5 | +--------------------------------------------------------------------+ |
| 6 | | Copyright CiviCRM LLC (c) 2004-2019 | |
| 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 |
| 31 | * @copyright CiviCRM LLC (c) 2004-2019 |
| 32 | * $Id$ |
| 33 | * |
| 34 | */ |
| 35 | class CRM_Core_I18n_SchemaStructure_4_2_alpha1 { |
| 36 | |
| 37 | /** |
| 38 | * @return array |
| 39 | */ |
| 40 | public static function &columns() { |
| 41 | static $result = NULL; |
| 42 | if (!$result) { |
| 43 | $result = [ |
| 44 | 'civicrm_location_type' => [ |
| 45 | 'display_name' => "varchar(64)", |
| 46 | ], |
| 47 | 'civicrm_option_group' => [ |
| 48 | 'title' => "varchar(255)", |
| 49 | 'description' => "varchar(255)", |
| 50 | ], |
| 51 | 'civicrm_contact_type' => [ |
| 52 | 'label' => "varchar(64)", |
| 53 | 'description' => "text", |
| 54 | ], |
| 55 | 'civicrm_premiums' => [ |
| 56 | 'premiums_intro_title' => "varchar(255)", |
| 57 | 'premiums_intro_text' => "text", |
| 58 | ], |
| 59 | 'civicrm_product' => [ |
| 60 | 'name' => "varchar(255)", |
| 61 | 'description' => "text", |
| 62 | 'options' => "text", |
| 63 | ], |
| 64 | 'civicrm_membership_status' => [ |
| 65 | 'label' => "varchar(128)", |
| 66 | ], |
| 67 | 'civicrm_survey' => [ |
| 68 | 'thankyou_title' => "varchar(255)", |
| 69 | 'thankyou_text' => "text", |
| 70 | ], |
| 71 | 'civicrm_participant_status_type' => [ |
| 72 | 'label' => "varchar(255)", |
| 73 | ], |
| 74 | 'civicrm_tell_friend' => [ |
| 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' => [ |
| 82 | 'title' => "varchar(255)", |
| 83 | 'help_pre' => "text", |
| 84 | 'help_post' => "text", |
| 85 | ], |
| 86 | 'civicrm_batch' => [ |
| 87 | 'title' => "varchar(64)", |
| 88 | 'description' => "text", |
| 89 | ], |
| 90 | 'civicrm_custom_group' => [ |
| 91 | 'title' => "varchar(64)", |
| 92 | 'help_pre' => "text", |
| 93 | 'help_post' => "text", |
| 94 | ], |
| 95 | 'civicrm_custom_field' => [ |
| 96 | 'label' => "varchar(255)", |
| 97 | 'help_pre' => "text", |
| 98 | 'help_post' => "text", |
| 99 | ], |
| 100 | 'civicrm_dashboard' => [ |
| 101 | 'label' => "varchar(255)", |
| 102 | ], |
| 103 | 'civicrm_option_value' => [ |
| 104 | 'label' => "varchar(255)", |
| 105 | 'description' => "text", |
| 106 | ], |
| 107 | 'civicrm_group' => [ |
| 108 | 'title' => "varchar(64)", |
| 109 | ], |
| 110 | 'civicrm_contribution_page' => [ |
| 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' => [ |
| 126 | 'label' => "varchar(255)", |
| 127 | 'help_pre' => "text", |
| 128 | 'help_post' => "text", |
| 129 | ], |
| 130 | 'civicrm_uf_group' => [ |
| 131 | 'title' => "varchar(64)", |
| 132 | 'help_pre' => "text", |
| 133 | 'help_post' => "text", |
| 134 | ], |
| 135 | 'civicrm_uf_field' => [ |
| 136 | 'help_post' => "text", |
| 137 | 'help_pre' => "text", |
| 138 | 'label' => "varchar(255)", |
| 139 | ], |
| 140 | 'civicrm_membership_type' => [ |
| 141 | 'name' => "varchar(128)", |
| 142 | 'description' => "varchar(255)", |
| 143 | ], |
| 144 | 'civicrm_membership_block' => [ |
| 145 | 'new_title' => "varchar(255)", |
| 146 | 'new_text' => "text", |
| 147 | 'renewal_title' => "varchar(255)", |
| 148 | 'renewal_text' => "text", |
| 149 | ], |
| 150 | 'civicrm_price_field_value' => [ |
| 151 | 'label' => "varchar(255)", |
| 152 | 'description' => "text", |
| 153 | ], |
| 154 | 'civicrm_pcp_block' => [ |
| 155 | 'link_text' => "varchar(255)", |
| 156 | ], |
| 157 | 'civicrm_event' => [ |
| 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 | public static function &indices() { |
| 189 | static $result = NULL; |
| 190 | if (!$result) { |
| 191 | $result = [ |
| 192 | 'civicrm_custom_group' => [ |
| 193 | 'UI_title_extends' => [ |
| 194 | 'name' => 'UI_title_extends', |
| 195 | 'field' => [ |
| 196 | 'title', |
| 197 | 'extends', |
| 198 | ], |
| 199 | 'unique' => 1, |
| 200 | ], |
| 201 | ], |
| 202 | 'civicrm_custom_field' => [ |
| 203 | 'UI_label_custom_group_id' => [ |
| 204 | 'name' => 'UI_label_custom_group_id', |
| 205 | 'field' => [ |
| 206 | 'label', |
| 207 | 'custom_group_id', |
| 208 | ], |
| 209 | 'unique' => 1, |
| 210 | ], |
| 211 | ], |
| 212 | 'civicrm_group' => [ |
| 213 | 'UI_title' => [ |
| 214 | 'name' => 'UI_title', |
| 215 | 'field' => [ |
| 216 | 'title', |
| 217 | ], |
| 218 | 'unique' => 1, |
| 219 | ], |
| 220 | ], |
| 221 | ]; |
| 222 | } |
| 223 | return $result; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * @return array |
| 228 | */ |
| 229 | public static function &tables() { |
| 230 | static $result = NULL; |
| 231 | if (!$result) { |
| 232 | $result = array_keys(self::columns()); |
| 233 | } |
| 234 | return $result; |
| 235 | } |
| 236 | |
| 237 | } |