PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/public_html/sites/all/modules/civicrm/CRM/Core/I18n/SchemaStructure_3_2_beta4.php

https://github.com/timstephenson/NatureBridge
PHP | 279 lines | 247 code | 0 blank | 32 comment | 3 complexity | 1879e6313f2b9f4393b02329c3e03030 MD5 | raw file
  1. <?php
  2. /*
  3. +--------------------------------------------------------------------+
  4. | CiviCRM version 4.0 |
  5. +--------------------------------------------------------------------+
  6. | Copyright CiviCRM LLC (c) 2004-2011 |
  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-2011
  31. * $Id$
  32. *
  33. */
  34. class CRM_Core_I18n_SchemaStructure_3_2_beta4
  35. {
  36. static function &columns()
  37. {
  38. static $result = null;
  39. if (!$result) {
  40. $result = array(
  41. 'civicrm_option_group' => array(
  42. 'label' => 'varchar(255)',
  43. 'description' => 'varchar(255)',
  44. ) ,
  45. 'civicrm_contact' => array(
  46. 'sort_name' => 'varchar(128)',
  47. 'display_name' => 'varchar(128)',
  48. 'first_name' => 'varchar(64)',
  49. 'middle_name' => 'varchar(64)',
  50. 'last_name' => 'varchar(64)',
  51. 'email_greeting_display' => 'varchar(255)',
  52. 'postal_greeting_display' => 'varchar(255)',
  53. 'addressee_display' => 'varchar(255)',
  54. 'household_name' => 'varchar(128)',
  55. 'organization_name' => 'varchar(128)',
  56. ) ,
  57. 'civicrm_contact_type' => array(
  58. 'label' => 'varchar(64)',
  59. 'description' => 'text',
  60. ) ,
  61. 'civicrm_mailing_component' => array(
  62. 'name' => 'varchar(64)',
  63. 'subject' => 'varchar(255)',
  64. 'body_html' => 'text',
  65. 'body_text' => 'text',
  66. ) ,
  67. 'civicrm_mailing' => array(
  68. 'name' => 'varchar(128)',
  69. 'from_name' => 'varchar(128)',
  70. 'subject' => 'varchar(128)',
  71. 'body_text' => 'longtext',
  72. 'body_html' => 'longtext',
  73. ) ,
  74. 'civicrm_premiums' => array(
  75. 'premiums_intro_title' => 'varchar(255)',
  76. 'premiums_intro_text' => 'text',
  77. ) ,
  78. 'civicrm_product' => array(
  79. 'name' => 'varchar(255)',
  80. 'description' => 'text',
  81. 'options' => 'text',
  82. ) ,
  83. 'civicrm_membership_type' => array(
  84. 'name' => 'varchar(128)',
  85. 'description' => 'varchar(255)',
  86. ) ,
  87. 'civicrm_membership_status' => array(
  88. 'label' => 'varchar(128)',
  89. ) ,
  90. 'civicrm_participant_status_type' => array(
  91. 'label' => 'varchar(255)',
  92. ) ,
  93. 'civicrm_tell_friend' => array(
  94. 'title' => 'varchar(255)',
  95. 'intro' => 'text',
  96. 'suggested_message' => 'text',
  97. 'thankyou_title' => 'varchar(255)',
  98. 'thankyou_text' => 'text',
  99. ) ,
  100. 'civicrm_price_set' => array(
  101. 'title' => 'varchar(255)',
  102. 'help_pre' => 'text',
  103. 'help_post' => 'text',
  104. ) ,
  105. 'civicrm_custom_group' => array(
  106. 'title' => 'varchar(64)',
  107. 'help_pre' => 'text',
  108. 'help_post' => 'text',
  109. ) ,
  110. 'civicrm_custom_field' => array(
  111. 'label' => 'varchar(255)',
  112. 'help_pre' => 'text',
  113. 'help_post' => 'text',
  114. ) ,
  115. 'civicrm_dashboard' => array(
  116. 'label' => 'varchar(255)',
  117. ) ,
  118. 'civicrm_option_value' => array(
  119. 'label' => 'varchar(255)',
  120. 'description' => 'varchar(255)',
  121. ) ,
  122. 'civicrm_contribution_page' => array(
  123. 'title' => 'varchar(255)',
  124. 'intro_text' => 'text',
  125. 'pay_later_text' => 'text',
  126. 'pay_later_receipt' => 'text',
  127. 'thankyou_title' => 'varchar(255)',
  128. 'thankyou_text' => 'text',
  129. 'thankyou_footer' => 'text',
  130. 'for_organization' => 'text',
  131. 'receipt_from_name' => 'varchar(255)',
  132. 'receipt_text' => 'text',
  133. 'footer_text' => 'text',
  134. 'honor_block_title' => 'varchar(255)',
  135. 'honor_block_text' => 'text',
  136. ) ,
  137. 'civicrm_membership_block' => array(
  138. 'new_title' => 'varchar(255)',
  139. 'new_text' => 'text',
  140. 'renewal_title' => 'varchar(255)',
  141. 'renewal_text' => 'text',
  142. ) ,
  143. 'civicrm_price_field' => array(
  144. 'label' => 'varchar(255)',
  145. 'help_pre' => 'text',
  146. 'help_post' => 'text',
  147. ) ,
  148. 'civicrm_uf_group' => array(
  149. 'title' => 'varchar(64)',
  150. 'help_pre' => 'text',
  151. 'help_post' => 'text',
  152. ) ,
  153. 'civicrm_uf_field' => array(
  154. 'help_post' => 'text',
  155. 'help_pre' => 'text',
  156. 'label' => 'varchar(255)',
  157. ) ,
  158. 'civicrm_address' => array(
  159. 'street_address' => 'varchar(96)',
  160. 'supplemental_address_1' => 'varchar(96)',
  161. 'supplemental_address_2' => 'varchar(96)',
  162. 'supplemental_address_3' => 'varchar(96)',
  163. 'city' => 'varchar(64)',
  164. 'name' => 'varchar(255)',
  165. ) ,
  166. 'civicrm_event' => array(
  167. 'title' => 'varchar(255)',
  168. 'summary' => 'text',
  169. 'description' => 'text',
  170. 'registration_link_text' => 'varchar(255)',
  171. 'event_full_text' => 'text',
  172. 'fee_label' => 'varchar(255)',
  173. 'intro_text' => 'text',
  174. 'footer_text' => 'text',
  175. 'confirm_title' => 'varchar(255)',
  176. 'confirm_text' => 'text',
  177. 'confirm_footer_text' => 'text',
  178. 'confirm_email_text' => 'text',
  179. 'confirm_from_name' => 'varchar(255)',
  180. 'thankyou_title' => 'varchar(255)',
  181. 'thankyou_text' => 'text',
  182. 'thankyou_footer_text' => 'text',
  183. 'pay_later_text' => 'text',
  184. 'pay_later_receipt' => 'text',
  185. 'waitlist_text' => 'text',
  186. 'approval_req_text' => 'text',
  187. 'template_title' => 'varchar(255)',
  188. ) ,
  189. );
  190. }
  191. return $result;
  192. }
  193. static function &indices()
  194. {
  195. static $result = null;
  196. if (!$result) {
  197. $result = array(
  198. 'civicrm_contact' => array(
  199. 'index_sort_name' => array(
  200. 'name' => 'index_sort_name',
  201. 'field' => array(
  202. 'sort_name',
  203. ) ,
  204. ) ,
  205. 'index_first_name' => array(
  206. 'name' => 'index_first_name',
  207. 'field' => array(
  208. 'first_name',
  209. ) ,
  210. ) ,
  211. 'index_last_name' => array(
  212. 'name' => 'index_last_name',
  213. 'field' => array(
  214. 'last_name',
  215. ) ,
  216. ) ,
  217. 'index_household_name' => array(
  218. 'name' => 'index_household_name',
  219. 'field' => array(
  220. 'household_name',
  221. ) ,
  222. ) ,
  223. 'index_organization_name' => array(
  224. 'name' => 'index_organization_name',
  225. 'field' => array(
  226. 'organization_name',
  227. ) ,
  228. ) ,
  229. ) ,
  230. 'civicrm_price_set' => array(
  231. 'UI_title' => array(
  232. 'name' => 'UI_title',
  233. 'field' => array(
  234. 'title',
  235. ) ,
  236. 'unique' => 1,
  237. ) ,
  238. ) ,
  239. 'civicrm_custom_group' => array(
  240. 'UI_title_extends' => array(
  241. 'name' => 'UI_title_extends',
  242. 'field' => array(
  243. 'title',
  244. 'extends',
  245. ) ,
  246. 'unique' => 1,
  247. ) ,
  248. ) ,
  249. 'civicrm_custom_field' => array(
  250. 'UI_label_custom_group_id' => array(
  251. 'name' => 'UI_label_custom_group_id',
  252. 'field' => array(
  253. 'label',
  254. 'custom_group_id',
  255. ) ,
  256. 'unique' => 1,
  257. ) ,
  258. ) ,
  259. 'civicrm_address' => array(
  260. 'index_city' => array(
  261. 'name' => 'index_city',
  262. 'field' => array(
  263. 'city',
  264. ) ,
  265. ) ,
  266. ) ,
  267. );
  268. }
  269. return $result;
  270. }
  271. static function &tables()
  272. {
  273. static $result = null;
  274. if (!$result) {
  275. $result = array_keys(self::columns());
  276. }
  277. return $result;
  278. }
  279. }