public function TripalBundle::__construct
3.x TripalBundle.inc | public TripalBundle::__construct($values = array(), $entity_type) |
File
- tripal/
includes/ TripalBundle.inc, line 7
Class
- TripalBundle
- The class used for Tripal data type entities
Code
public function __construct($values = array(), $entity_type) {
parent::__construct($values, $entity_type);
$this->term = tripal_load_term_entity(array('term_id' => $this->term_id));
$vocab = $this->term->vocab;
$this->accession = $vocab->vocabulary . ':' . $this->term->accession;
}