12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
-
- /**
- * Implements hook_chado_feature_schema()
- * Purpose: To add descriptions and foreign keys to default table description
- * Note: This array will be merged with the array from all other implementations
- *
- * @return
- * Array describing the feature table
- *
- * @ingroup tripal_feature
- */
- function tripal_feature_chado_feature_schema() {
- $description = array();
- // Default table description in tripal_core.schema.api.inc: tripal_core_chado_feature_schema()
- $description['foreign keys']['organism'] = array(
- 'table' => 'organism',
- 'columns' => array(
- 'organism_id' => 'organism_id',
- ),
- );
-
- $description['foreign keys']['dbxref'] = array(
- 'table' => 'dbxref',
- 'columns' => array(
- 'dbxref_id' => 'dbxref_id',
- ),
- );
-
- $description['foreign keys']['cvterm'] = array(
- 'table' => 'cvterm',
- 'columns' => array(
- 'type_id' => 'cvterm_id',
- ),
- );
-
- $referring_tables = array('analysisfeature',
- 'element',
- 'feature_cvterm',
- 'feature_dbxref',
- 'feature_expression',
- 'feature_genotype',
- 'feature_phenotype',
- 'feature_pub',
- 'feature_relationship',
- 'feature_synonym',
- 'featureloc',
- 'featurepos',
- 'featureprop',
- 'featurerange',
- 'library_feature',
- 'phylonode',
- 'wwwuser_feature'
- );
- $description['referring_tables'] = $referring_tables;
- return $description;
- }
- /**
- * Implements hook_chado_featureprop_schema()
- * Purpose: To add descriptions and foreign keys to default table description
- * Note: This array will be merged with the array from all other implementations
- *
- * @return
- * Array describing the featureprop table
- *
- * @ingroup tripal_feature
- */
- function tripal_feature_chado_featureprop_schema() {
- $description = array();
- // Default table description in tripal_core.schema.api.inc: tripal_core_chado_featureprop_schema()
- $description['foreign keys']['feature'] = array(
- 'table' => 'feature',
- 'columns' => array(
- 'feature_id' => 'feature_id',
- ),
- );
-
- $description['foreign keys']['cvterm'] = array(
- 'table' => 'cvterm',
- 'columns' => array(
- 'type_id' => 'cvterm_id',
- ),
- );
-
- $referring_tables = array('analysisfeature',
- 'featureprop_pub',
- );
- $description['referring_tables'] = $referring_tables;
- return $description;
- }
|