function globallink_send_download_confirmation in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 gl_ws/gl_ws_receive_translations.inc \globallink_send_download_confirmation()
- 7.6 gl_ws/gl_ws_receive_translations.inc \globallink_send_download_confirmation()
2 calls to globallink_send_download_confirmation()
- globallink_background_import in ./
globallink_background_jobs.inc - Imports the documents
- globallink_background_pull in ./
globallink_background_jobs.inc - Pull submissions or documents
File
- gl_ws/
gl_ws_receive_translations.inc, line 247
Code
function globallink_send_download_confirmation($target_ticket, $pd_obj) {
if (globallink_debug_enabled()) {
watchdog(GLOBALLINK_MODULE, 'Connecting to PD - %pd', array(
'%pd' => print_r($pd_obj, TRUE),
), WATCHDOG_DEBUG);
watchdog(GLOBALLINK_MODULE, 'Sending Download Confirmation for Target Ticket - %ticket', array(
'%ticket' => $target_ticket,
), WATCHDOG_DEBUG);
}
$connectorConfig = new PDConfig();
$connectorConfig->url = $pd_obj->url;
$connectorConfig->username = $pd_obj->username;
$connectorConfig->password = $pd_obj->password;
$connectorConfig->userAgent = $pd_obj->userAgent;
$glExchange = new GLExchange($connectorConfig);
return $glExchange
->sendDownloadConfirmation($target_ticket);
}