tripal_chado_views.DEPRECATED.inc

Wrapper functions to provide backwards compatibility for the tripal analysis api

File

tripal_chado_views/api/tripal_chado_views.DEPRECATED.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Wrapper functions to provide backwards compatibility for the tripal analysis api
  5. */
  6. /**
  7. * @deprecated Restructured API to make naming more readable and consistent.
  8. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  9. * This function has been replaced by tripal_enable_view().
  10. *
  11. * @see tripal_enable_view().
  12. */
  13. function tripal_chado_views_admin_enable_view($view_name, $redirect_link) {
  14. tripal_report_error(
  15. 'tripal_deprecated',
  16. TRIPAL_NOTICE,
  17. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  18. array(
  19. '%old_function'=>'tripal_views_admin_enable_view',
  20. '%new_function' => 'tripal_enable_view'
  21. )
  22. );
  23. return tripal_enable_view($view_name, $redirect_link);
  24. }
  25. /**
  26. * @deprecated Restructured API to make naming more readable and consistent.
  27. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  28. * This function has been replaced by tripal_disable_view().
  29. *
  30. * @see tripal_disable_view().
  31. */
  32. function tripal_chado_views_admin_disable_view($view_name, $redirect_link) {
  33. tripal_report_error(
  34. 'tripal_deprecated',
  35. TRIPAL_NOTICE,
  36. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  37. array(
  38. '%old_function'=>'tripal_views_admin_disable_view',
  39. '%new_function' => 'tripal_disable_view'
  40. )
  41. );
  42. return tripal_disable_view($view_name, $redirect_link);
  43. }
  44. /**
  45. * @deprecated Restructured API to make naming more readable and consistent.
  46. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  47. * This function has been replaced by tripal_make_view_compatible_with_external().
  48. *
  49. * @see tripal_make_view_compatible_with_external().
  50. */
  51. function tripal_chado_views_make_view_compatible_with_external($view) {
  52. tripal_report_error(
  53. 'tripal_deprecated',
  54. TRIPAL_NOTICE,
  55. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  56. array(
  57. '%old_function'=>'tripal_views_make_view_compatible_with_external',
  58. '%new_function' => 'tripal_make_view_compatible_with_external'
  59. )
  60. );
  61. return tripal_make_view_compatible_with_external($view);
  62. }
  63. /**
  64. * @deprecated Restructured API to make naming more readable and consistent.
  65. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  66. * This function has been replaced by tripal_get_lightest_views_integration_priority().
  67. *
  68. * @see tripal_get_lightest_views_integration_priority().
  69. */
  70. function tripal_chado_views_get_table_lightest_priority($table_name) {
  71. tripal_report_error(
  72. 'tripal_deprecated',
  73. TRIPAL_NOTICE,
  74. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  75. array(
  76. '%old_function'=>'tripal_views_get_table_lightest_priority',
  77. '%new_function' => 'tripal_get_lightest_views_integration_priority'
  78. )
  79. );
  80. return tripal_get_lightest_views_integration_priority($table_name);
  81. }
  82. /**
  83. * @deprecated Restructured API to make naming more readable and consistent.
  84. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  85. * This function has been replaced by tripal_get_lightest_views_integration_setup().
  86. *
  87. * @see tripal_get_lightest_views_integration_setup().
  88. */
  89. function tripal_chado_views_get_lightest_priority_setup($table_name) {
  90. tripal_report_error(
  91. 'tripal_deprecated',
  92. TRIPAL_NOTICE,
  93. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  94. array(
  95. '%old_function'=>'tripal_views_get_lightest_priority_setup',
  96. '%new_function' => 'tripal_get_lightest_views_integration_setup'
  97. )
  98. );
  99. return tripal_get_lightest_views_integration_setup($table_name);
  100. }
  101. /**
  102. * @deprecated Restructured API to make naming more readable and consistent.
  103. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  104. * This function has been replaced by tripal_get_views_integration_setup_id().
  105. *
  106. * @see tripal_get_views_integration_setup_id().
  107. */
  108. function tripal_chado_views_get_setup_id($table_name, $priority) {
  109. tripal_report_error(
  110. 'tripal_deprecated',
  111. TRIPAL_NOTICE,
  112. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  113. array(
  114. '%old_function'=>'tripal_views_get_setup_id',
  115. '%new_function' => 'tripal_get_views_integration_setup_id'
  116. )
  117. );
  118. return tripal_get_views_integration_setup_id($table_name, $priority);
  119. }
  120. /**
  121. * @deprecated Restructured API to make naming more readable and consistent.
  122. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  123. * This function has been replaced by tripal_is_table_integrated().
  124. *
  125. * @see tripal_is_table_integrated().
  126. */
  127. function tripal_chado_views_is_integrated($table_name, $priority = NULL) {
  128. tripal_report_error(
  129. 'tripal_deprecated',
  130. TRIPAL_NOTICE,
  131. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  132. array(
  133. '%old_function'=>'tripal_views_is_integrated',
  134. '%new_function' => 'tripal_is_table_integrated'
  135. )
  136. );
  137. return tripal_is_table_integrated($table_name, $priority);
  138. }
  139. /**
  140. * @deprecated Restructured API to make naming more readable and consistent.
  141. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  142. * This function has been replaced by tripal_is_lightest_priority_setup().
  143. *
  144. * @see tripal_is_lightest_priority_setup().
  145. */
  146. function tripal_chado_views_is_lightest_priority_setup($setup_id, $table_name) {
  147. tripal_report_error(
  148. 'tripal_deprecated',
  149. TRIPAL_NOTICE,
  150. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  151. array(
  152. '%old_function'=>'tripal_views_is_lightest_priority_setup',
  153. '%new_function' => 'tripal_is_lightest_priority_setup'
  154. )
  155. );
  156. return tripal_is_lightest_priority_setup($setup_id, $table_name);
  157. }
  158. /**
  159. * @deprecated Restructured API to make naming more readable and consistent.
  160. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  161. * This function has been replaced by tripal_rebuild_views_integrations().
  162. *
  163. * @see tripal_rebuild_views_integrations().
  164. */
  165. function tripal_chado_views_rebuild_views_integrations($delete_first = FALSE) {
  166. tripal_report_error(
  167. 'tripal_deprecated',
  168. TRIPAL_NOTICE,
  169. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  170. array(
  171. '%old_function'=>'tripal_views_rebuild_views_integrations',
  172. '%new_function' => 'tripal_rebuild_views_integrations'
  173. )
  174. );
  175. return tripal_rebuild_views_integrations($delete_first);
  176. }
  177. /**
  178. * @deprecated Restructured API to make naming more readable and consistent.
  179. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  180. * This function has been replaced by tripal_add_views_integration().
  181. *
  182. * @see tripal_add_views_integration().
  183. */
  184. function tripal_chado_views_integration_add_entry($defn_array, $setup_id = FALSE) {
  185. tripal_report_error(
  186. 'tripal_deprecated',
  187. TRIPAL_NOTICE,
  188. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  189. array(
  190. '%old_function'=>'tripal_views_integration_add_entry',
  191. '%new_function' => 'tripal_add_views_integration'
  192. )
  193. );
  194. return tripal_add_views_integration($defn_array, $setup_id);
  195. }
  196. /**
  197. * @deprecated Restructured API to make naming more readable and consistent.
  198. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  199. * This function has been replaced by tripal_export_views_integration().
  200. *
  201. * @see tripal_export_views_integration().
  202. */
  203. function tripal_chado_views_integration_export_entry($setup_id) {
  204. tripal_report_error(
  205. 'tripal_deprecated',
  206. TRIPAL_NOTICE,
  207. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  208. array(
  209. '%old_function'=>'tripal_views_integration_export_entry',
  210. '%new_function' => 'tripal_export_views_integration'
  211. )
  212. );
  213. return tripal_export_views_integration($setup_id);
  214. }
  215. /**
  216. * @deprecated Restructured API to make naming more readable and consistent.
  217. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  218. * This function has been replaced by tripal_remove_views_integration().
  219. *
  220. * @see tripal_remove_views_integration().
  221. */
  222. function tripal_chado_views_integration_remove_entry_by_table_name($table_name, $priority) {
  223. tripal_report_error(
  224. 'tripal_deprecated',
  225. TRIPAL_NOTICE,
  226. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  227. array(
  228. '%old_function'=>'tripal_views_integration_remove_entry_by_table_name',
  229. '%new_function' => 'tripal_remove_views_integration'
  230. )
  231. );
  232. return tripal_remove_views_integration(array('table_name' => $table_name, 'priority' => $priority));
  233. }
  234. /**
  235. * @deprecated Restructured API to make naming more readable and consistent.
  236. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  237. * This function has been replaced by tripal_remove_views_integration().
  238. *
  239. * @see tripal_remove_views_integration().
  240. */
  241. function tripal_chado_views_integration_remove_entry_by_setup_id($setup_id) {
  242. tripal_report_error(
  243. 'tripal_deprecated',
  244. TRIPAL_NOTICE,
  245. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  246. array(
  247. '%old_function'=>'tripal_views_integration_remove_entry_by_setup_id',
  248. '%new_function' => 'tripal_remove_views_integration'
  249. )
  250. );
  251. return tripal_remove_views_integration(array('setup_id' => $setup_id));
  252. }
  253. /**
  254. * @deprecated Restructured API to make naming more readable and consistent.
  255. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  256. * This function has been replaced by tripal_update_views_integration().
  257. *
  258. * @see tripal_update_views_integration().
  259. */
  260. function tripal_chado_views_integration_update_entry($setup_id, $defn_array) {
  261. tripal_report_error(
  262. 'tripal_deprecated',
  263. TRIPAL_NOTICE,
  264. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  265. array(
  266. '%old_function'=>'tripal_views_integration_update_entry',
  267. '%new_function' => 'tripal_update_views_integration'
  268. )
  269. );
  270. return tripal_update_views_integration($setup_id, $defn_array);
  271. }
  272. /**
  273. * @deprecated Restructured API to make naming more readable and consistent.
  274. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  275. * This function has been replaced by tripal_clone_views_integration().
  276. *
  277. * @see tripal_clone_views_integration().
  278. */
  279. function tripal_chado_views_clone_integration($table_name, $new_priority = NULL, $template_priority = NULL) {
  280. tripal_report_error(
  281. 'tripal_deprecated',
  282. TRIPAL_NOTICE,
  283. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  284. array(
  285. '%old_function'=>'tripal_views_clone_integration',
  286. '%new_function' => 'tripal_clone_views_integration'
  287. )
  288. );
  289. return tripal_clone_views_integration($table_name, $new_priority, $template_priority);
  290. }
  291. /**
  292. * @deprecated Restructured API to make naming more readable and consistent.
  293. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  294. * This function has been replaced by tripal_add_field_to_views_integration().
  295. *
  296. * @see tripal_add_field_to_views_integration().
  297. */
  298. function tripal_chado_views_add_field_to_integration($table_name, $priority, $field) {
  299. tripal_report_error(
  300. 'tripal_deprecated',
  301. TRIPAL_NOTICE,
  302. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  303. array(
  304. '%old_function'=>'tripal_views_add_field_to_integration',
  305. '%new_function' => 'tripal_add_field_to_views_integration'
  306. )
  307. );
  308. return tripal_add_field_to_views_integration($table_name, $priority, $field);
  309. }
  310. /**
  311. * @deprecated Restructured API to make naming more readable and consistent.
  312. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  313. * This function has been replaced by tripal_remove_join_from_views_integration().
  314. *
  315. * @see tripal_remove_join_from_views_integration().
  316. */
  317. function tripal_chado_views_remove_join_from_integration($setup_id, $base_table, $base_field, $left_table, $left_field) {
  318. tripal_report_error(
  319. 'tripal_deprecated',
  320. TRIPAL_NOTICE,
  321. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  322. array(
  323. '%old_function'=>'tripal_views_remove_join_from_integration',
  324. '%new_function' => 'tripal_remove_join_from_views_integration'
  325. )
  326. );
  327. return tripal_remove_join_from_views_integration($setup_id, $base_table, $base_field, $left_table, $left_field);
  328. }