private function TaxonomyImporter::getProperty
3.x TaxonomyImporter.inc | private TaxonomyImporter::getProperty($organism_id, $term_name, $rank = 0) |
Retrieves a property for a given organism.
Parameters
$organism_id: The organism ID to which the property is added.
$term_name: The name of the organism property term. This term must be present in the 'organism_property' cv.
$rank: The order for this property. The first instance of this term for this organism should be zero. Defaults to zero.
Return value
The property object.
1 call to TaxonomyImporter::getProperty()
- TaxonomyImporter::rebuildTree in tripal_chado/
includes/ TripalImporter/ TaxonomyImporter.inc - Iterates through all existing organisms and rebuilds the taxonomy tree.
File
- tripal_chado/
includes/ TripalImporter/ TaxonomyImporter.inc, line 848
Class
Code
private function getProperty($organism_id, $term_name, $rank = 0) {
$record = array(
'table' => 'organism',
'id' => $organism_id
);
$property = array(
'type_name' => $term_name,
'cv_name' => 'organism_property',
'value' => $value,
'rank' => $rank
);
return chado_get_property($record, $property);
}