function tripal_pub_get_remote_search_results
2.x tripal_pub.DEPRECATED.inc | tripal_pub_get_remote_search_results($remote_db, $search_array, $num_to_retrieve, $page = 0) |
3.x tripal_pub.DEPRECATED.inc | tripal_pub_get_remote_search_results($remote_db, $search_array, $num_to_retrieve, $page = 0) |
1.x tripal_pub.api.inc | tripal_pub_get_remote_search_results($remote_db, $search_array,
$num_to_retrieve, $pager_id = 0, $page = 0) |
5 calls to tripal_pub_get_remote_search_results()
- tripal_pub_get_raw_data in tripal_pub/
api/ tripal_pub.api.inc - tripal_pub_importer_setup in tripal_pub/
includes/ pub_importers.inc - tripal_pub_import_by_dbxref in tripal_pub/
api/ tripal_pub.api.inc - tripal_pub_import_publications in tripal_pub/
api/ tripal_pub.api.inc - tripal_pub_update_publications in tripal_pub/
api/ tripal_pub.api.inc
File
- tripal_pub/
api/ tripal_pub.api.inc, line 56 - The Tripal Pub API
Code
function tripal_pub_get_remote_search_results($remote_db, $search_array,
$num_to_retrieve, $pager_id = 0, $page = 0) {
// manually set the $_GET['page'] parameter to trick the pager
// into giving us the requested page
if (is_int($page) and $page > 0) {
$_GET['page'] = $page;
}
// now call the callback function to get the results
$callback = "tripal_pub_remote_search_$remote_db";
$pubs = array();
if (function_exists($callback)) {
$pubs = call_user_func($callback, $search_array, $num_to_retrieve, $pager_id);
}
return $pubs;
}