Closed reynoldtan closed 5 years ago
Updated GENUS API:
Test function calls:
// Fetch project genus by project name. $m = ap_get_projectgenus( array('project_name' => 'AGILE: Application of Genomic Innovation in the Lentil Economy') );
dpm($m);
// Fetch project genus by project id. $m = ap_get_projectgenus( array('project_id' => 63) );
dpm($m);
// Set project genus with replace option on. $project_id = 63; // Change to a different project with genus. ap_set_projectgenus( array('project_id' => $project_id, 'genus' => 'Cicer'), array('replace' => TRUE) );
$m = ap_get_projectgenus( array('project_id' => $project_id) );
dpm($m);
Current Review Status
My Approach: review a file at a time since that roughly corresponds to an API above :-)
Tripal API conventions:
[module abbreviation]_[verb]_[subject]
Task
For all current API functions with the switch($property) approach, create new functions for each $property following the Tripal API Conventions. Where it makes sense, these new functions could be grouped in a separate file to keep the functions together.