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