123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- <?php
- /**
- * @file
- * Wrapper functions to provide backwards compatibility for the tripal analysis api
- */
- /**
- * @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 pub_search_remote().
- *
- * @see pub_search_remote().
- */
- function tripal_pub_get_remote_search_results($remote_db, $search_array, $num_to_retrieve, $page = 0) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_remote_search_results',
- '%new_function' => 'pub_search_remote'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_get_remote_pub_record().
- *
- * @see chado_get_remote_pub_record().
- */
- function tripal_pub_get_raw_data($dbxref) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_raw_data',
- '%new_function' => 'chado_get_remote_pub_record'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_update_multiple_publications().
- *
- * @see chado_update_multiple_publications().
- */
- function tripal_pub_update_publications($do_contact = FALSE, $dbxref = NULL, $db = NULL) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_update_publications',
- '%new_function' => 'chado_update_multiple_publications'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_import_multiple_publications().
- *
- * @see chado_import_multiple_publications().
- */
- function tripal_pub_import_publications_by_import_id($import_id, $job_id = NULL) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_import_publications_by_import_id',
- '%new_function' => 'chado_import_multiple_publications'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_import_multiple_publications().
- *
- * @see chado_import_multiple_publications().
- */
- function tripal_pub_import_publications($report_email = FALSE, $do_update = FALSE) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_import_publications',
- '%new_function' => 'chado_import_multiple_publications'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_import_multiple_publications().
- *
- * @see chado_import_multiple_publications().
- */
- function tripal_pub_import_by_dbxref($pub_dbxref, $do_contact = FALSE, $do_update) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_import_by_dbxref',
- '%new_function' => 'chado_import_multiple_publications'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_insert_multiple_publications().
- *
- * @see chado_insert_multiple_publications().
- */
- function tripal_pub_add_publications($pubs, $do_contact, $update = FALSE) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_add_publications',
- '%new_function' => 'chado_insert_multiple_publications'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_associate_dbxref().
- *
- * @see chado_associate_dbxref().
- */
- function tripal_pub_add_pub_dbxref($pub_id, $pub_dbxref) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_add_pub_dbxref',
- '%new_function' => 'chado_associate_dbxref'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_get_publication().
- *
- * @see chado_get_publication().
- */
- function tripal_pub_get_pubs_by_dbxref($pub_dbxref) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_pubs_by_dbxref',
- '%new_function' => 'chado_get_publication'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_get_publication().
- *
- * @see chado_get_publication().
- */
- function tripal_pub_get_pubs_by_title_type_pyear_series($title, $type = NULL, $pyear = NULL, $series_name = NULL) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_pubs_by_title_type_pyear_series',
- '%new_function' => 'chado_get_publication'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_get_publication().
- *
- * @see chado_get_publication().
- */
- function tripal_pub_get_pub_by_uniquename($name) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_pub_by_uniquename',
- '%new_function' => 'chado_get_publication'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_insert_publication().
- *
- * @see chado_insert_publication().
- */
- function tripal_pub_add_publication($pub_details, &$action, $do_contact = FALSE, $update_if_exists = FALSE) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_add_publication',
- '%new_function' => 'chado_insert_publication'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_insert_multiple_pubauthors().
- *
- * @see chado_insert_multiple_pubauthors().
- */
- function tripal_pub_add_authors($pub_id, $authors, $do_contact) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_add_authors',
- '%new_function' => 'chado_insert_multiple_pubauthors'
- )
- );
- return FALSE;
- }
- /**
- * @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 chado_get_property().
- *
- * @see chado_get_property().
- */
- function tripal_pub_get_property($pub_id, $property) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_property',
- '%new_function' => 'chado_get_property'
- )
- );
- return chado_get_property('pub', $pub_id, $property, 'tripal_pub');
- }
- /**
- * @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 chado_insert_property().
- *
- * @see chado_insert_property().
- */
- function tripal_pub_insert_property($pub_id, $property, $value, $update_if_present = 0) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_insert_property',
- '%new_function' => 'chado_insert_property'
- )
- );
- return chado_insert_property('pub', $pub_id, $property, 'tripal_pub', $value, $update_if_present);
- }
- /**
- * @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 chado_update_property().
- *
- * @see chado_update_property().
- */
- function tripal_pub_update_property($pub_id, $property, $value, $insert_if_missing = 0) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_update_property',
- '%new_function' => 'chado_update_property'
- )
- );
- return chado_update_property('pub', $pub_id, $property, 'tripal_pub', $value, $insert_if_missing);
- }
- /**
- * @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 chado_delete_property().
- *
- * @see chado_delete_property().
- */
- function tripal_pub_delete_property($pub_id, $property) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_delete_property',
- '%new_function' => 'chado_delete_property'
- )
- );
- return chado_delete_property('pub', $pub_id, $property, 'tripal_pub');
- }
- /**
- * @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 chado_get_publication().
- *
- * @see chado_get_publication().
- */
- function tripal_pub_get_publication_array($pub_id, $skip_existing = TRUE) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_get_publication_array',
- '%new_function' => 'chado_get_publication'
- )
- );
- return FALSE;
- }
- /**
- * @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 pub_generate_citation().
- *
- * @see pub_generate_citation().
- */
- function tripal_pub_create_citation($pub) {
- tripal_report_error(
- 'tripal_api',
- TRIPAL_NOTICE,
- "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.",
- array(
- '%old_function'=>'tripal_pub_create_citation',
- '%new_function' => 'pub_generate_citation'
- )
- );
- return FALSE;
- }
|