|
Tripal 0.3b
|
Go to the source code of this file.
Functions | |
| tripal_core_chado_insert ($table, $values) | |
| tripal_core_chado_delete ($table, $match) | |
| tripal_core_chado_update ($table, $match, $values) | |
| tripal_core_chado_select ($table, $columns, $values, $options=null) | |
| tripal_core_chado_get_foreign_key ($table_desc, $field, $values, $options=null) | |
| tripal_core_generate_chado_var ($table, $values, $base_options=array()) | |
| tripal_core_expand_chado_vars ($object, $type, $to_expand, $table_options=array()) | |
| tripal_core_exclude_type_by_default () | |
| tripal_core_exclude_field_from_feature_by_default () | |
| chado_query ($sql) | |
| chado_get_id_for_node ($table, $node) | |
| chado_get_node_id ($table, $id) | |
| tripal_core_get_property ($basetable, $record_id, $property, $cv_name) | |
| tripal_core_insert_property ($basetable, $record_id, $property, $cv_name, $value, $update_if_present=0) | |
| tripal_core_update_property ($basetable, $record_id, $property, $cv_name, $value, $insert_if_missing=0) | |
| tripal_core_delete_property ($basetable, $record_id, $property, $cv_name) | |
| tripal_create_moddir ($module_name) | |
| tripal_get_moddir ($module_name) | |
| tripal_db_set_active ($dbname) | |
| tripal_get_max_chado_rank ($tablename, $where_options) | |
The Tripal Core API
This file provides the API needed for all other Tripal and Tripal dependent modules.
Definition in file tripal_core.api.inc.
| chado_get_id_for_node | ( | $ | table, |
| $ | node | ||
| ) |
Get chado id for a node. E.g, if you want to get 'analysis_id' from the 'analysis' table for a synced 'chado_analysis' node, use: $analysis_id = chado_get_id_for_node ('analysis', $node) Likewise, $organism_id = chado_get_id_for_node ('organism', $node) $feature_id = chado_get_id_for_node ('feature', $node)
Definition at line 1299 of file tripal_core.api.inc.
Referenced by chado_analysis_load(), chado_feature_delete(), chado_feature_load(), chado_feature_update(), chado_library_insert(), chado_library_load(), chado_library_update(), chado_organism_delete(), chado_organism_insert(), chado_organism_load(), and chado_organism_update().
| chado_get_node_id | ( | $ | table, |
| $ | id | ||
| ) |
Get node id for a chado feature/organism/analysis. E.g, if you want to get the node id for an analysis, use: $nid = chado_get_node_id ('analysis', $analysis_id) Likewise, $nid = chado_get_node_id ('organism', $organism_id) $nid = chado_get_node_id ('feature', $feature_id)
Definition at line 1311 of file tripal_core.api.inc.
| chado_query | ( | $ | sql | ) |
Use this function instead of db_query() to avoid switching databases when making query to the chado database
Definition at line 1276 of file tripal_core.api.inc.
References $args.
Referenced by chado_organism_insert(), and tripal_get_cvterm_id().