tripal_bulk_loader.DEPRECATED.inc

  1. 2.x tripal_bulk_loader/api/tripal_bulk_loader.DEPRECATED.inc
  2. 3.x tripal_bulk_loader/api/tripal_bulk_loader.DEPRECATED.inc

Wrapper functions to provide backwards compatibility for the tripal analysis api

File

tripal_bulk_loader/api/tripal_bulk_loader.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_is_bulk_loader_record_name_unique().
  10. *
  11. * @see tripal_is_bulk_loader_record_name_unique().
  12. */
  13. function tripal_bulk_loader_is_record_name_unique($new_record_name, $template_id, $template_array = NULL, $current_priority = NULL) {
  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_bulk_loader_is_record_name_unique',
  20. '%new_function' => 'tripal_is_bulk_loader_record_name_unique'
  21. )
  22. );
  23. return tripal_is_bulk_loader_record_name_unique($new_record_name, $template_id, $template_array, $current_priority);
  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_delete_bulk_loader_record().
  29. *
  30. * @see tripal_delete_bulk_loader_record().
  31. */
  32. function tripal_bulk_loader_delete_record($delete_priority, $template_array) {
  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_bulk_loader_delete_record',
  39. '%new_function' => 'tripal_delete_bulk_loader_record'
  40. )
  41. );
  42. return tripal_delete_bulk_loader_record($delete_priority, $template_array);
  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_delete_bulk_loader_field().
  48. *
  49. * @see tripal_delete_bulk_loader_field().
  50. */
  51. function tripal_bulk_loader_delete_field($priority, $delete_field_index, $template_array) {
  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_bulk_loader_delete_field',
  58. '%new_function' => 'tripal_delete_bulk_loader_field'
  59. )
  60. );
  61. return tripal_delete_bulk_loader_field($priority, $delete_field_index, $template_array);
  62. }