function tripal_db_add_dbxref
2.x tripal_db.DEPRECATED.inc | tripal_db_add_dbxref($db_id, $accession, $version = '', $description = '') |
3.x tripal_db.DEPRECATED.inc | tripal_db_add_dbxref($db_id, $accession, $version = '', $description = '') |
1.x tripal_db.api.inc | tripal_db_add_dbxref($db_id, $accession, $version = '', $description = '') |
Deprecated
Restructured API to make naming more readable and consistent. Function was deprecated in Tripal 2.0 and will be removed 2 releases from now. This function has been replaced by tripal_insert_dbxref().
See also
1 call to tripal_db_add_dbxref()
- tripal_featuremap_add_featuremap_dbxref in tripal_featuremap/
api/ tripal_featuremap.DEPRECATED.inc
File
- tripal_db/
api/ tripal_db.DEPRECATED.inc, line 186 - Wrapper functions to provide backwards compatibility for the tripal db api
Code
function tripal_db_add_dbxref($db_id, $accession, $version = '', $description = '') {
tripal_report_error(
'tripal_deprecated',
TRIPAL_NOTICE,
"DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
array(
'%old_function' => 'tripal_db_add_dbxref',
'%new_function' => 'tripal_insert_dbxref'
)
);
return tripal_insert_dbxref(array(
'db_id' => $db_id,
'accession' => $accession,
'version' => $version,
'description' => $description
));
}