tripal_analysis.api.inc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /****************************************************************************
  3. * @section Chado Table Descriptions
  4. ****************************************************************************/
  5. /****************************************************************************
  6. * Implements hook_chado_analysisfeature_schema()
  7. * Purpose: To add descriptions and foreign keys to default table description
  8. * Note: This array will be merged with the array from all other implementations
  9. *
  10. * @return
  11. * Array describing the analysisfeature table
  12. */
  13. function tripal_stock_chado_analysisfeature_schema() {
  14. $description = array();
  15. $description['foreign keys']['feature'] = array(
  16. 'table' => 'feature',
  17. 'columns' => array(
  18. 'feature_id' => 'feature_id',
  19. ),
  20. );
  21. $description['foreign keys']['analysis'] = array(
  22. 'table' => 'analysis',
  23. 'columns' => array(
  24. 'analysis_id' => 'analysis_id',
  25. ),
  26. );
  27. return $description;
  28. }
  29. /****************************************************************************
  30. * Implements hook_chado_analysisprop_schema()
  31. * Purpose: To add descriptions and foreign keys to default table description
  32. * Note: This array will be merged with the array from all other implementations
  33. *
  34. * @return
  35. * Array describing the analysisprop table
  36. */
  37. function tripal_stock_chado_analysisprop_schema() {
  38. $description = array();
  39. $description['foreign keys']['cvterm'] = array(
  40. 'table' => 'cvterm',
  41. 'columns' => array(
  42. 'type_id' => 'cvterm_id',
  43. ),
  44. );
  45. $description['foreign keys']['analysis'] = array(
  46. 'table' => 'analysis',
  47. 'columns' => array(
  48. 'analysis_id' => 'analysis_id',
  49. ),
  50. );
  51. return $description;
  52. }