tripal_core.DEPRECATED.inc 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <?php
  2. /**
  3. * @file
  4. * Contains all the deprecated functions to keep the tripal api backwards compatible.
  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 @see chado_get_id_from_nid().
  10. */
  11. function chado_get_id_for_node($table, $nid) {
  12. //New API Function
  13. return chado_get_id_from_nid($table, $nid);
  14. }
  15. /**
  16. * @deprecated Restructured API to make naming more readable and consistent.
  17. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  18. * This function has been replaced by @see chado_get_nid_from_id().
  19. */
  20. function chado_get_node_id($table, $id) {
  21. //New API Function
  22. return chado_get_nid_from_id($table, $id);
  23. }
  24. /**
  25. * @deprecated Restructured API to make naming more readable and consistent.
  26. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  27. * This function has been replaced by @see chado_cleanup_orphaned_nodes().
  28. */
  29. function tripal_core_chado_node_cleanup_orphaned($table, $job_id = NULL) {
  30. //New API Function
  31. return chado_cleanup_orphaned_nodes($table, $job_id);
  32. }
  33. /**
  34. * @deprecated Restructured API to make naming more readable and consistent.
  35. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  36. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  37. */
  38. function chado_node_additional_dbxrefs_form(&$form, &$form_state, $details) {
  39. //New API Function
  40. return chado_add_node_form_dbxrefs($form, $form_state, $details);
  41. }
  42. /**
  43. * @deprecated Restructured API to make naming more readable and consistent.
  44. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  45. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  46. */
  47. function chado_node_additional_dbxrefs_form_add_button_validate($form, &$form_state) {
  48. //New API Function
  49. return chado_add_node_form_dbxrefs_add_button_validate($form, $form_state);
  50. }
  51. /**
  52. * @deprecated Restructured API to make naming more readable and consistent.
  53. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  54. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  55. */
  56. function chado_node_additional_dbxrefs_form_add_button_submit(&$form, &$form_state) {
  57. //New API Function
  58. return chado_add_node_form_dbxrefs_add_button_submit($form, $form_state);
  59. }
  60. /**
  61. * @deprecated Restructured API to make naming more readable and consistent.
  62. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  63. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  64. */
  65. function chado_node_additional_dbxrefs_form_remove_button_validate($form, $form_state) {
  66. //New API Function
  67. return chado_add_node_form_dbxrefs_remove_button_validate($form, $form_state);
  68. }
  69. /**
  70. * @deprecated Restructured API to make naming more readable and consistent.
  71. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  72. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  73. */
  74. function chado_node_additional_dbxrefs_form_remove_button_submit(&$form, &$form_state) {
  75. //New API Function
  76. return chado_add_node_form_dbxrefs_remove_button_submit($form, $form_state);
  77. }
  78. /**
  79. * @deprecated Restructured API to make naming more readable and consistent.
  80. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  81. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  82. */
  83. function chado_node_additional_dbxrefs_form_ajax_update($form, $form_state) {
  84. //New API Function
  85. return chado_add_node_form_dbxrefs_ajax_update($form, $form_state);
  86. }
  87. /**
  88. * @deprecated Restructured API to make naming more readable and consistent.
  89. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  90. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  91. */
  92. function chado_node_additional_dbxrefs_form_create_dbxref_formstate_array($form, &$form_state) {
  93. //New API Function
  94. return chado_add_node_form_dbxrefs_create_dbxref_formstate_array($form, $form_state);
  95. }
  96. /**
  97. * @deprecated Restructured API to make naming more readable and consistent.
  98. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  99. * This function has been replaced by @see chado_add_node_form_dbxrefs().
  100. */
  101. function theme_chado_node_additional_dbxrefs_form_table($variables) {
  102. //New API Function
  103. return theme_chado_add_node_form_dbxrefs_table($variables);
  104. }
  105. /**
  106. * @deprecated Restructured API to make naming more readable and consistent.
  107. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  108. * This function has been replaced by @see chado_retrieve_node_form_dbxrefs().
  109. */
  110. function chado_node_additional_dbxrefs_form_retreive($node) {
  111. //New API Function
  112. return chado_retrieve_node_form_dbxrefs($node);
  113. }
  114. /**
  115. * @deprecated Restructured API to make naming more readable and consistent.
  116. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  117. * This function has been replaced by @see chado_update_node_form_dbxrefs().
  118. */
  119. function chado_node_additional_dbxrefs_form_update_dbxrefs($node, $details, $retrieved_dbxrefs = FALSE) {
  120. //New API Function
  121. return chado_update_node_form_dbxrefs($node, $details, $retrieved_dbxrefs);
  122. }
  123. /**
  124. * @deprecated Restructured API to make naming more readable and consistent.
  125. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  126. * This function has been replaced by @see chado_add_node_form_properties().
  127. */
  128. function chado_node_properties_form($form, $form_state, $details) {
  129. //New API Function
  130. return chado_add_node_form_properties($form, $form_state, $details);
  131. }
  132. /**
  133. * @deprecated Restructured API to make naming more readable and consistent.
  134. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  135. * This function has been replaced by @see chado_add_node_form_properties().
  136. */
  137. function chado_node_properties_form_add_button_validate($form, &$form_state) {
  138. //New API Function
  139. return chado_update_node_form_properties_add_button_validate($form, $form_state);
  140. }
  141. /**
  142. * @deprecated Restructured API to make naming more readable and consistent.
  143. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  144. * This function has been replaced by @see chado_add_node_form_properties().
  145. */
  146. function chado_node_properties_form_add_button_submit(&$form, &$form_state) {
  147. //New API Function
  148. return chado_add_node_form_properties_add_button_submit($form, $form_state);
  149. }
  150. /**
  151. * @deprecated Restructured API to make naming more readable and consistent.
  152. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  153. * This function has been replaced by @see chado_add_node_form_properties().
  154. */
  155. function chado_node_properties_form_remove_button_validate($form, $form_state) {
  156. //New API Function
  157. return chado_add_node_form_properties_remove_button_validate($form, $form_state);
  158. }
  159. /**
  160. * @deprecated Restructured API to make naming more readable and consistent.
  161. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  162. * This function has been replaced by @see chado_add_node_form_properties().
  163. */
  164. function chado_node_properties_form_remove_button_submit(&$form, &$form_state) {
  165. //New API Function
  166. return chado_add_node_form_properties_remove_button_submit($form, $form_state);
  167. }
  168. /**
  169. * @deprecated Restructured API to make naming more readable and consistent.
  170. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  171. * This function has been replaced by @see chado_add_node_form_properties().
  172. */
  173. function chado_node_properties_form_ajax_update($form, $form_state) {
  174. //New API Function
  175. return chado_add_node_form_properties_ajax_update($form, $form_state);
  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 @see chado_add_node_form_properties().
  181. */
  182. function chado_node_properties_form_create_property_formstate_array($form, &$form_state) {
  183. //New API Function
  184. return chado_add_node_form_properties_create_property_formstate_array($form, $form_state);
  185. }
  186. /**
  187. * @deprecated Restructured API to make naming more readable and consistent.
  188. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  189. * This function has been replaced by @see chado_add_node_form_properties().
  190. */
  191. function theme_chado_node_properties_form_table($variables) {
  192. //New API Function
  193. return theme_chado_add_node_form_properties($variables);
  194. }
  195. /**
  196. * @deprecated Restructured API to make naming more readable and consistent.
  197. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  198. * This function has been replaced by @see chado_retrieve_node_form_properties().
  199. */
  200. function chado_node_properties_form_retreive($node) {
  201. //New API Function
  202. return chado_retrieve_node_form_properties($node);
  203. }
  204. /**
  205. * @deprecated Restructured API to make naming more readable and consistent.
  206. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  207. * This function has been replaced by @see chado_update_node_form_properties().
  208. */
  209. function chado_node_properties_form_update_properties($node, $details, $retrieved_properties = FALSE) {
  210. //New API Function
  211. return chado_update_node_form_properties($node, $details, $retrieved_properties);
  212. }
  213. /**
  214. * @deprecated Restructured API to make naming more readable and consistent.
  215. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  216. * This function has been replaced by @see chado_add_node_form_relationships().
  217. */
  218. function chado_node_relationships_form(&$form, &$form_state, $details) {
  219. //New API Function
  220. return chado_add_node_form_relationships($form, $form_state, $details);
  221. }
  222. /**
  223. * @deprecated Restructured API to make naming more readable and consistent.
  224. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  225. * This function has been replaced by @see chado_add_node_form_relationships().
  226. */
  227. function chado_node_relationships_form_add_button_validate($form, &$form_state) {
  228. //New API Function
  229. return chado_add_node_form_relationships_add_button_validate($form, $form_state);
  230. }
  231. /**
  232. * @deprecated Restructured API to make naming more readable and consistent.
  233. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  234. * This function has been replaced by @see chado_add_node_form_relationships().
  235. */
  236. function chado_node_relationships_form_add_button_submit(&$form, &$form_state) {
  237. //New API Function
  238. return chado_add_node_form_relationships_add_button_submit($form, $form_state);
  239. }
  240. /**
  241. * @deprecated Restructured API to make naming more readable and consistent.
  242. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  243. * This function has been replaced by @see chado_add_node_form_relationships().
  244. */
  245. function chado_node_relationships_form_remove_button_validate($form, $form_state) {
  246. //New API Function
  247. return chado_add_node_form_relationships_form_remove_button_validate($form, $form_state);
  248. }
  249. /**
  250. * @deprecated Restructured API to make naming more readable and consistent.
  251. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  252. * This function has been replaced by @see chado_add_node_form_relationships().
  253. */
  254. function chado_node_relationships_form_remove_button_submit(&$form, &$form_state) {
  255. //New API Function
  256. return chado_add_node_form_relationships_remove_button_submit($form, $form_state);
  257. }
  258. /**
  259. * @deprecated Restructured API to make naming more readable and consistent.
  260. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  261. * This function has been replaced by @see chado_add_node_form_relationships().
  262. */
  263. function chado_node_relationships_form_ajax_update($form, $form_state) {
  264. //New API Function
  265. return chado_add_node_form_relationships_ajax_update($form, $form_state);
  266. }
  267. /**
  268. * @deprecated Restructured API to make naming more readable and consistent.
  269. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  270. * This function has been replaced by @see chado_add_node_form_relationships().
  271. */
  272. function chado_node_relationships_form_create_relationship_formstate_array($form, &$form_state) {
  273. //New API Function
  274. return chado_add_node_form_relationships_create_relationship_formstate_array($form, $form_state);
  275. }
  276. /**
  277. * @deprecated Restructured API to make naming more readable and consistent.
  278. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  279. * This function has been replaced by @see chado_add_node_form_relationships().
  280. */
  281. function theme_chado_node_relationships_form_table($variables) {
  282. //New API Function
  283. return theme_chado_add_node_form_relationships_table($variables);
  284. }
  285. /**
  286. * @deprecated Restructured API to make naming more readable and consistent.
  287. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  288. * This function has been replaced by @see chado_add_node_form_relationships().
  289. */
  290. function chado_node_relationships_name_to_id_callback($base_table, $name_field, $string) {
  291. //New API Function
  292. return chado_add_node_form_relationships_name_to_id_callback($base_table, $name_field, $string);
  293. }
  294. /**
  295. * @deprecated Restructured API to make naming more readable and consistent.
  296. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  297. * This function has been replaced by @see chado_retrieve_node_form_relationships().
  298. */
  299. function chado_node_relationships_form_retreive($node) {
  300. //New API Function
  301. return chado_retrieve_node_form_relationships($node);
  302. }
  303. /**
  304. * @deprecated Restructured API to make naming more readable and consistent.
  305. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  306. * This function has been replaced by @see chado_update_node_form_relationships().
  307. */
  308. function chado_node_relationships_form_update_relationships($node, $details, $retrieved_relationships = FALSE) {
  309. //New API Function
  310. return chado_update_node_form_relationships($node, $details, $retrieved_relationships);
  311. }
  312. /**
  313. * @deprecated Restructured API to make naming more readable and consistent.
  314. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  315. * This function has been replaced by @see chado_node_sync_form().
  316. */
  317. function tripal_core_chado_node_sync_form($form, &$form_state) {
  318. //New API Function
  319. return chado_node_sync_form($form, $form_state);
  320. }
  321. /**
  322. * @deprecated Restructured API to make naming more readable and consistent.
  323. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  324. * This function has been replaced by @see chado_node_sync_form_submit().
  325. */
  326. function tripal_core_chado_node_sync_form_submit($form, $form_state) {
  327. //New API Function
  328. return chado_node_sync_form_submit($form, $form_state);
  329. }
  330. /**
  331. * @deprecated Restructured API to make naming more readable and consistent.
  332. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  333. * This function has been replaced by @see chado_node_sync_records().
  334. */
  335. function tripal_core_chado_node_sync_records($base_table, $max_sync = FALSE, $organism_id = FALSE,
  336. $types = array(), $ids = array(), $job_id = NULL) {
  337. //New API Function
  338. return chado_node_sync_records($base_table, $max_sync, $organism_id, $types, $ids, $job_id);
  339. }
  340. /**
  341. * @deprecated Restructured API to make naming more readable and consistent.
  342. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  343. * There is no new functionality as this function was deamed unnecessary.
  344. */
  345. function tripal_core_is_tripal_node_type() {
  346. }
  347. /**
  348. * @deprecated Restructured API to make naming more readable and consistent.
  349. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  350. * This function has been replaced by @see chado_schema_get_foreign_key().
  351. */
  352. function tripal_core_chado_get_foreign_key($table_desc, $field, $values, $options = NULL) {
  353. //New API Function
  354. return chado_schema_get_foreign_key($table_desc, $field, $values, $options);
  355. }
  356. /**
  357. * @deprecated Restructured API to make naming more readable and consistent.
  358. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  359. * This function has been replaced by @see chado_delete_record().
  360. */
  361. function tripal_core_chado_delete($table, $match, $options = NULL) {
  362. //New API Function
  363. return chado_delete_record();
  364. }
  365. /**
  366. * @deprecated Restructured API to make naming more readable and consistent.
  367. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  368. * This function has been replaced by @see chado_expand_var().
  369. */
  370. function tripal_core_expand_chado_vars($object, $type, $to_expand, $table_options = array()) {
  371. //New API Function
  372. return chado_expand_var($object, $type, $to_expand, $table_options);
  373. }
  374. /**
  375. * @deprecated Restructured API to make naming more readable and consistent.
  376. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  377. * This function has been replaced by @see chado_generate_var().
  378. */
  379. function tripal_core_generate_chado_var($table, $values, $base_options = array()) {
  380. //New API Function
  381. return chado_generate_var($table, $values, $base_options);
  382. }
  383. /**
  384. * @deprecated Restructured API to make naming more readable and consistent.
  385. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  386. * This function has been replaced by @see chado_insert_record().
  387. */
  388. function tripal_core_chado_insert($table, $values, $options = array()) {
  389. //New API Function
  390. return chado_insert_record($table, $values, $options);
  391. }
  392. /**
  393. * @deprecated Restructured API to make naming more readable and consistent.
  394. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  395. * This function has been replaced by @see chado_select_record();
  396. */
  397. function tripal_core_chado_select($table, $columns, $values, $options = NULL) {
  398. //New API Function
  399. return chado_select_record($table, $columns, $values, $options);
  400. }
  401. /**
  402. * @deprecated Restructured API to make naming more readable and consistent.
  403. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  404. * This function has been replaced by @see chado_update_record();
  405. */
  406. function tripal_core_chado_update($table, $match, $values, $options = NULL) {
  407. //New API Function
  408. return chado_update_record($table, $match, $values, $options);
  409. }
  410. /**
  411. * @deprecated Restructured API to make naming more readable and consistent.
  412. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  413. * This function has been replaced by @see tripal_create_files_dir();
  414. */
  415. function tripal_create_moddir($module_name) {
  416. //New API Function
  417. return tripal_create_files_dir($module_name);
  418. }
  419. /**
  420. * @deprecated Restructured API to make naming more readable and consistent.
  421. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  422. * This function has been replaced by @see tripal_create_files_dir();
  423. */
  424. function tripal_create_mod_subdir($module_name, $path) {
  425. //New API Function
  426. return tripal_create_files_dir($module_name, $path);
  427. }
  428. /**
  429. * @deprecated Restructured API to make naming more readable and consistent.
  430. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  431. * This function has been replaced by @see tripal_create_files_dir().
  432. */
  433. function tripal_file_directory_path() {
  434. //New API Function
  435. return tripal_get_files_dir();
  436. }
  437. /**
  438. * @deprecated Restructured API to make naming more readable and consistent.
  439. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  440. * This function has been replaced by @see tripal_get_files_dir().
  441. */
  442. function tripal_get_moddir($module_name) {
  443. //New API Function
  444. return tripal_get_files_dir($module_name);
  445. }
  446. /**
  447. * @deprecated Restructured API to make naming more readable and consistent.
  448. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  449. * This function has been replaced by @see tripal_cancel_job().
  450. */
  451. function tripal_jobs_cancel($job_id, $redirect = TRUE) {
  452. //New API Function
  453. return tripal_cancel_job($job_id);
  454. }
  455. /**
  456. * @deprecated Restructured API to make naming more readable and consistent.
  457. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  458. * This function has been replaced by @see tripal_get_active_jobs().
  459. */
  460. function tripal_get_module_active_jobs($modulename) {
  461. //New API Function
  462. return tripal_get_active_jobs($modulename);
  463. }
  464. /**
  465. * @deprecated Restructured API to make naming more readable and consistent.
  466. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  467. * This function has been replaced by @see tripal_get_job_end().
  468. */
  469. function tripal_jobs_get_end_time($job) {
  470. //New API Function
  471. return tripal_get_job_end($job);
  472. }
  473. /**
  474. * @deprecated Restructured API to make naming more readable and consistent.
  475. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  476. * This function has been replaced by @see tripal_get_job_start().
  477. */
  478. function tripal_jobs_get_start_time($job) {
  479. //New API Function
  480. return tripal_get_job_start($job);
  481. }
  482. /**
  483. * @deprecated Restructured API to make naming more readable and consistent.
  484. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  485. * This function has been replaced by @see tripal_get_job_submit_date().
  486. */
  487. function tripal_jobs_get_submit_date($job) {
  488. //New API Function
  489. return tripal_get_job_submit_date($job);
  490. }
  491. /**
  492. * @deprecated Restructured API to make naming more readable and consistent.
  493. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  494. * This function has been replaced by @see tripal_is_job_running().
  495. */
  496. function tripal_jobs_check_running() {
  497. //New API Function
  498. return tripal_is_job_running();
  499. }
  500. /**
  501. * @deprecated Restructured API to make naming more readable and consistent.
  502. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  503. * This function has been replaced by @see tripal_launch_job().
  504. */
  505. function tripal_jobs_launch($do_parallel = 0, $job_id = NULL) {
  506. //New API Function
  507. return tripal_launch_job($do_parallel, $job_id);
  508. }
  509. /**
  510. * @deprecated Restructured API to make naming more readable and consistent.
  511. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  512. * This function has been replaced by @see tripal_rerun_job().
  513. */
  514. function tripal_jobs_rerun($job_id, $goto_jobs_page = TRUE) {
  515. //New API Function
  516. return tripal_rerun_job($job_id, $goto_jobs_page);
  517. }
  518. /**
  519. * @deprecated Restructured API to make naming more readable and consistent.
  520. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  521. * This function has been replaced by @see tripal_set_job_progress().
  522. */
  523. function tripal_job_set_progress($job_id, $percentage) {
  524. //New API Function
  525. return tripal_set_job_progress($job_id, $percentage);
  526. }
  527. /**
  528. * @deprecated Restructured API to make naming more readable and consistent.
  529. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  530. * This function has been replaced by @see tripal_update_mview().
  531. */
  532. function tripal_mviews_action($op, $mview_id, $redirect = FALSE) {
  533. if ($op == 'update') {
  534. //New API Function
  535. return tripal_add_populate_mview($mview_id, $redirect);
  536. }
  537. if ($op == 'delete') {
  538. //New API Function
  539. return tripal_delete_mview($mview_id, $redirect);
  540. }
  541. }
  542. /**
  543. * @deprecated Restructured API to make naming more readable and consistent.
  544. * Function was deprecated in Tripal 1.0 and will is in the process of being removed.
  545. */
  546. function tripal_add_legacy_mview($name, $modulename, $mv_table, $mv_specs, $indexed,
  547. $query, $special_index, $comment) {
  548. }
  549. /**
  550. * @deprecated Restructured API to make naming more readable and consistent.
  551. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  552. * This function has been replaced by @see tripal_populate_mview();
  553. */
  554. function tripal_update_mview($mview_id) {
  555. //New API Function
  556. return tripal_populate_mview($mview_id);
  557. }
  558. /**
  559. * @deprecated Restructured API to make naming more readable and consistent.
  560. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  561. * This function has been replaced by @see chado_delete_property().
  562. */
  563. function tripal_core_delete_property_by_id($basetable, $record_id) {
  564. //New API Function
  565. // D7 @todo: change parameters
  566. return chado_delete_property($basetable, $record_id);
  567. }
  568. /**
  569. * @deprecated Restructured API to make naming more readable and consistent.
  570. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  571. * This function has been replaced by @see chado_delete_property().
  572. */
  573. function tripal_core_delete_property($basetable, $record_id, $property, $cv_name) {
  574. //New API Function
  575. // D7 @todo: change parameters
  576. return chado_delete_property($basetable, $record_id, $property, $cv_name);
  577. }
  578. /**
  579. * @deprecated Restructured API to make naming more readable and consistent.
  580. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  581. * This function has been replaced by @see chado_get_property().
  582. */
  583. function tripal_core_get_property($basetable, $record_id, $property, $cv_name) {
  584. //New API Function
  585. return chado_get_property($basetable, $record_id, $property, $cv_name);
  586. }
  587. /**
  588. * @deprecated Restructured API to make naming more readable and consistent.
  589. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  590. * This function has been replaced by @see chado_get_table_max_rank().
  591. */
  592. function tripal_core_get_max_chado_rank($tablename, $where_options) {
  593. //New API Function
  594. return chado_get_table_max_rank($tablename, $where_options);
  595. }
  596. /**
  597. * @deprecated Restructured API to make naming more readable and consistent.
  598. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  599. * This function has been replaced by @see chado_insert_property().
  600. */
  601. function tripal_core_insert_property($basetable, $record_id, $property,
  602. $cv_name, $value, $update_if_present = 0) {
  603. //New API Function
  604. return chado_insert_property($basetable, $record_id, $property, $cv_name, $value, $update_if_present);
  605. }
  606. /**
  607. * @deprecated Restructured API to make naming more readable and consistent.
  608. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  609. * This function has been replaced by @see chado_update_property().
  610. */
  611. function tripal_core_update_property_by_id($basetable, $record_id, $property,
  612. $cv_name, $value) {
  613. //New API Function
  614. // D7 @todo: change parameters
  615. return chado_update_property($basetable, $record_id, $property, $cv_name, $value);
  616. }
  617. /**
  618. * @deprecated Restructured API to make naming more readable and consistent.
  619. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  620. * This function has been replaced by @see chado_update_property().
  621. */
  622. function tripal_core_update_property($basetable, $record_id, $property,
  623. $cv_name, $value, $insert_if_missing = 0) {
  624. //New API Function
  625. // D7 @todo: change parameters
  626. return chado_update_property($basetable, $record_id, $property, $cv_name, $value, $insert_if_missing);
  627. }
  628. /**
  629. * @deprecated Restructured API to make naming more readable and consistent.
  630. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  631. * This function has been replaced by @see chado_create_custom_table().
  632. */
  633. function tripal_core_create_custom_table($table, $schema, $skip_creation = 1) {
  634. //New API Function
  635. return chado_create_custom_table($table, $schema, $skip_creation);
  636. }
  637. /**
  638. * @deprecated Restructured API to make naming more readable and consistent.
  639. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  640. * This function has been replaced by @see chado_edit_custom_table().
  641. */
  642. function tripal_core_edit_custom_table($table_id, $table_name, $schema, $skip_creation = 1) {
  643. //New API Function
  644. return chado_edit_custom_table($table_id, $table_name, $schema, $skip_creation);
  645. }
  646. /**
  647. * @deprecated Restructured API to make naming more readable and consistent.
  648. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  649. * This function has been replaced by @see chado_get_custom_table_id().
  650. */
  651. function tripal_custom_tables_get_table_id($table_name) {
  652. //New API Function
  653. return chado_get_custom_table_id($table_name);
  654. }
  655. /**
  656. * @deprecated Restructured API to make naming more readable and consistent.
  657. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  658. * This function has been replaced by @see chado_get_custom_table_schema().
  659. */
  660. function tripal_get_chado_custom_schema($table) {
  661. //New API Function
  662. return chado_get_custom_table_schema($table);
  663. }
  664. /**
  665. * @deprecated Restructured API to make naming more readable and consistent.
  666. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  667. * This function has been replaced by @see chado_is_installed().
  668. */
  669. function tripal_core_is_chado_installed() {
  670. //New API Function
  671. return chado_is_installed();
  672. }
  673. /**
  674. * @deprecated Restructured API to make naming more readable and consistent.
  675. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  676. * This function has been replaced by @see chado_get_schema().
  677. */
  678. function tripal_core_get_chado_table_schema($table) {
  679. //New API Function
  680. return chado_get_schema($table);
  681. }
  682. /**
  683. * @deprecated Restructured API to make naming more readable and consistent.
  684. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  685. * This function has been replaced by @see chado_get_version().
  686. */
  687. function tripal_core_get_chado_version($exact = FALSE, $warn_if_unsupported = FALSE) {
  688. //New API Function
  689. return chado_get_version($exact, $warn_if_unsupported);
  690. }
  691. /**
  692. * @deprecated Restructured API to make naming more readable and consistent.
  693. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  694. * This function has been replaced by @see chado_set_active().
  695. */
  696. function tripal_db_set_active($dbname = 'default') {
  697. //New API Function
  698. return chado_set_active($dbname);
  699. }
  700. /**
  701. * @deprecated Restructured API to make naming more readable and consistent.
  702. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  703. * This function has been replaced by @see chado_is_local().
  704. */
  705. function tripal_core_is_chado_local() {
  706. //New API Function
  707. return chado_is_local();
  708. }
  709. /**
  710. * @deprecated Restructured API to make naming more readable and consistent.
  711. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  712. * This function has been replaced by @see chado_get_table_names().
  713. */
  714. function tripal_core_get_chado_tables($include_custom = NULL) {
  715. //New API Function
  716. return chado_get_table_names($include_custom);
  717. }
  718. /**
  719. * @deprecated Restructured API to make naming more readable and consistent.
  720. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  721. * This function has been replaced by @see chado_is_local().
  722. */
  723. function tripal_core_chado_schema_exists() {
  724. //New API Function
  725. return chado_is_local();
  726. }
  727. /**
  728. * @deprecated Restructured API to make naming more readable and consistent.
  729. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  730. * This function has been replaced by @see chado_dbschema_exists().
  731. */
  732. function tripal_core_schema_exists($schema) {
  733. //New API Function
  734. return chado_dbschema_exists($schema);
  735. }
  736. /**
  737. * @deprecated Restructured API to make naming more readable and consistent.
  738. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  739. * This function has been replaced by @see tripal_set_admin_message().
  740. *
  741. function theme_tripal_admin_message($variables) {
  742. //New API Function
  743. return tripal_set_admin_message();
  744. }
  745. */
  746. /**
  747. * @deprecated Restructured API to make naming more readable and consistent.
  748. * Function was deprecated in Tripal 2.0 and will be removed 2 releases from now.
  749. * This function has been replaced by @see tripal_report_error().
  750. */
  751. function tripal_core_report_error($type, $severity, $message, $variables = array(), $options = array()) {
  752. //New API Function
  753. return tripal_report_error($type, $severity, $message, $variables, $options);
  754. }