tripal_cv.DEPRECATED.inc 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?php
  2. /**
  3. * @file
  4. * Wrapper functions to provide backwards compatibility for the tripal cv 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 chado_get_cv().
  10. *
  11. * @see chado_get_cv().
  12. */
  13. function tripal_cv_get_cv($select_values) {
  14. tripal_report_error(
  15. 'tripal_api',
  16. TRIPAL_NOTICE,
  17. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  18. array(
  19. '%old_function'=>'tripal_cv_get_cv',
  20. '%new_function' => 'chado_get_cv'
  21. )
  22. );
  23. return FALSE;
  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 chado_get_cv().
  29. *
  30. * @see chado_get_cv().
  31. */
  32. function tripal_cv_get_cv_by_name($name) {
  33. tripal_report_error(
  34. 'tripal_api',
  35. TRIPAL_NOTICE,
  36. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  37. array(
  38. '%old_function'=>'tripal_cv_get_cv_by_name',
  39. '%new_function' => 'chado_get_cv'
  40. )
  41. );
  42. return FALSE;
  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 chado_get_cv().
  48. *
  49. * @see chado_get_cv().
  50. */
  51. function tripal_cv_get_cv_by_id($cv_id) {
  52. tripal_report_error(
  53. 'tripal_api',
  54. TRIPAL_NOTICE,
  55. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  56. array(
  57. '%old_function'=>'tripal_cv_get_cv_by_id',
  58. '%new_function' => 'chado_get_cv'
  59. )
  60. );
  61. return FALSE;
  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 chado_get_cv().
  67. *
  68. * @see chado_get_cv().
  69. */
  70. function tripal_cv_get_cv_id($cv_name) {
  71. tripal_report_error(
  72. 'tripal_api',
  73. TRIPAL_NOTICE,
  74. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  75. array(
  76. '%old_function'=>'tripal_cv_get_cv_id',
  77. '%new_function' => 'chado_get_cv'
  78. )
  79. );
  80. return FALSE;
  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 cv_get_select_options().
  86. *
  87. * @see cv_get_select_options().
  88. */
  89. function tripal_cv_get_cv_options() {
  90. tripal_report_error(
  91. 'tripal_api',
  92. TRIPAL_NOTICE,
  93. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  94. array(
  95. '%old_function'=>'tripal_cv_get_cv_options',
  96. '%new_function' => 'cv_get_select_options'
  97. )
  98. );
  99. return FALSE;
  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 chado_get_cvterm().
  105. *
  106. * @see chado_get_cvterm().
  107. */
  108. function tripal_cv_get_cvterm_by_id($cvterm_id) {
  109. tripal_report_error(
  110. 'tripal_api',
  111. TRIPAL_NOTICE,
  112. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  113. array(
  114. '%old_function'=>'tripal_cv_get_cvterm_by_id',
  115. '%new_function' => 'chado_get_cvterm'
  116. )
  117. );
  118. return FALSE;
  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 chado_get_cvterm().
  124. *
  125. * @see chado_get_cvterm().
  126. */
  127. function tripal_cv_get_cvterm_by_name($name, $cv_id = NULL, $cv_name = 'tripal') {
  128. tripal_report_error(
  129. 'tripal_api',
  130. TRIPAL_NOTICE,
  131. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  132. array(
  133. '%old_function'=>'tripal_cv_get_cvterm_by_name',
  134. '%new_function' => 'chado_get_cvterm'
  135. )
  136. );
  137. return FALSE;
  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 chado_get_cvterm().
  143. *
  144. * @see chado_get_cvterm().
  145. */
  146. function tripal_cv_get_cvterm_by_synonym($synonym, $cv_id = NULL, $cv_name = 'tripal') {
  147. tripal_report_error(
  148. 'tripal_api',
  149. TRIPAL_NOTICE,
  150. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  151. array(
  152. '%old_function'=>'tripal_cv_get_cvterm_by_synonym',
  153. '%new_function' => 'chado_get_cvterm'
  154. )
  155. );
  156. return FALSE;
  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 cvterm_get_select_options().
  162. *
  163. * @see cvterm_get_select_options().
  164. */
  165. function tripal_cv_get_cvterm_options($cv_id = 0) {
  166. tripal_report_error(
  167. 'tripal_api',
  168. TRIPAL_NOTICE,
  169. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  170. array(
  171. '%old_function'=>'tripal_cv_get_cvterm_options',
  172. '%new_function' => 'cvterm_get_select_options'
  173. )
  174. );
  175. return FALSE;
  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 chado_update_cvtermpath().
  181. *
  182. * @see chado_update_cvtermpath().
  183. */
  184. function tripal_cv_update_cvtermpath($cvid, $job_id = NULL) {
  185. tripal_report_error(
  186. 'tripal_api',
  187. TRIPAL_NOTICE,
  188. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  189. array(
  190. '%old_function'=>'tripal_cv_update_cvtermpath',
  191. '%new_function' => 'chado_update_cvtermpath'
  192. )
  193. );
  194. return FALSE;
  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 chado_insert_cv().
  200. *
  201. * @see chado_insert_cv().
  202. */
  203. function tripal_cv_add_cv($name, $definition) {
  204. tripal_report_error(
  205. 'tripal_api',
  206. TRIPAL_NOTICE,
  207. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  208. array(
  209. '%old_function'=>'tripal_cv_add_cv',
  210. '%new_function' => 'chado_insert_cv'
  211. )
  212. );
  213. return FALSE;
  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 chado_insert_cvterm().
  219. *
  220. * @see chado_insert_cvterm().
  221. */
  222. function tripal_cv_add_cvterm($term, $defaultcv = '_global', $is_relationship = 0, $update = 1, $dbname = 'internal') {
  223. tripal_report_error(
  224. 'tripal_api',
  225. TRIPAL_NOTICE,
  226. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  227. array(
  228. '%old_function'=>'tripal_cv_add_cvterm',
  229. '%new_function' => 'chado_insert_cvterm'
  230. )
  231. );
  232. return FALSE;
  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_submit_obo_job().
  238. *
  239. * @see tripal_submit_obo_job().
  240. */
  241. function tripal_cv_submit_obo_job($obo_id = NULL, $obo_name = NULL, $obo_url = NULL, $obo_file = NULL) {
  242. tripal_report_error(
  243. 'tripal_api',
  244. TRIPAL_NOTICE,
  245. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  246. array(
  247. '%old_function'=>'tripal_cv_submit_obo_job',
  248. '%new_function' => 'tripal_submit_obo_job'
  249. )
  250. );
  251. return FALSE;
  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 chado_insert_obo().
  257. *
  258. * @see chado_insert_obo().
  259. */
  260. function tripal_cv_add_obo_ref($name, $path) {
  261. tripal_report_error(
  262. 'tripal_api',
  263. TRIPAL_NOTICE,
  264. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  265. array(
  266. '%old_function'=>'tripal_cv_add_obo_ref',
  267. '%new_function' => 'chado_insert_obo'
  268. )
  269. );
  270. return FALSE;
  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 chado_cvterm_autocomplete().
  276. *
  277. * @see chado_cvterm_autocomplete().
  278. */
  279. function tripal_cv_cvterm_name_autocomplete($cv_id, $string = '') {
  280. tripal_report_error(
  281. 'tripal_api',
  282. TRIPAL_NOTICE,
  283. "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
  284. array(
  285. '%old_function'=>'tripal_cv_cvterm_name_autocomplete',
  286. '%new_function' => 'chado_cvterm_autocomplete'
  287. )
  288. );
  289. return FALSE;
  290. }