TripalBundle.inc

File

tripal/includes/TripalBundle.inc
View source
  1. <?php
  2. /**
  3. * The class used for Tripal data type entities
  4. */
  5. class TripalBundle extends Entity {
  6. public function __construct($values = array(), $entity_type) {
  7. parent::__construct($values, $entity_type);
  8. $this->term = tripal_load_term_entity(array('term_id' => $this->term_id));
  9. $vocab = $this->term->vocab;
  10. $this->accession = $vocab->vocabulary . ':' . $this->term->accession;
  11. }
  12. }