function tripal_cv_obo_get_term

2.x tripal_cv.obo_loader.inc tripal_cv_obo_get_term($id)
1.x obo_loader.inc tripal_cv_obo_get_term($id)

Retreives the term array from the temp loading table for a given term id.

Parameters

id: The id of the term to retrieve

Related topics

1 call to tripal_cv_obo_get_term()
tripal_cv_obo_add_relationship in tripal_cv/includes/tripal_cv.obo_loader.inc
Adds a cvterm relationship

File

tripal_cv/includes/tripal_cv.obo_loader.inc, line 1023
Functions to aid in loading ontologies into the chado cv module

Code

function tripal_cv_obo_get_term($id) {
  $values = array('id' => $id);
  $result = chado_select_record('tripal_obo_temp', array('stanza'), $values);
  if (count($result) == 0) {
    return FALSE;
  }
  return unserialize(base64_decode($result[0]->stanza));
}