function tripal_associate_cvterm
2.x tripal_cv.api.inc | tripal_associate_cvterm($basetable, $record_id, $cvterm, $options = array()) |
3.x tripal_chado.module.DEPRECATED.api.inc | tripal_associate_cvterm($basetable, $record_id, $cvterm, $options = array()) |
Add a record to a cvterm linking table (ie: feature_cvterm).
Parameters
$basetable: The base table to which the cvterm should be linked/associated. Thus to associate a cvterm to a feature the basetable=feature and cvterm_id is added to the feature_cvterm table.
$record_id: The primary key of the basetable to associate the cvterm with. This should be in integer.
$cvterm: An associative array describing the cvterm. Valid keys include:
- name: the name for the cvterm,
- cv_name: the name of the cv the cvterm belongs to.
- cv_id: the primary key of the cv the cvterm belongs to.
$options: An associative array of options. Valid keys include:
- insert_cvterm: Insert the cvterm if it doesn't already exist. FALSE is the default.
1 call to tripal_associate_cvterm()
- tripal_feature_add_cvterm in legacy/
tripal_feature/ api/ tripal_feature.DEPRECATED.inc
1 string reference to 'tripal_associate_cvterm'
- tripal_feature_add_cvterm in legacy/
tripal_feature/ api/ tripal_feature.DEPRECATED.inc
File
- tripal_chado/
api/ modules/ tripal_chado.module.DEPRECATED.api.inc, line 422 - These api functions are deprecated, if your site is currently using them please update your code with the newer tripal_chado functions.
Code
function tripal_associate_cvterm($basetable, $record_id, $cvterm, $options = array()) {
chado_associate_cvterm($basetable, $record_id, $cvterm, $options);
}