function globallink_send_download_confirmation in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 gl_ws/gl_ws_receive_translations.inc \globallink_send_download_confirmation()
- 7.6 gl_ws/gl_ws_receive_translations.inc \globallink_send_download_confirmation()
14 calls to globallink_send_download_confirmation()
- globallink_block_get_translated_blocks in globallink_block/
globallink_block.inc - Gets number of translated blocks.
- globallink_block_update_deleted_records in globallink_block/
globallink_block.inc - Updates status for deleted blocks.
- globallink_entity_get_translated_enties in globallink_entity/
globallink_entity.inc - Gets number of translated entities.
- globallink_entity_update_deleted_records in globallink_entity/
globallink_entity.inc - Updates status for deleted entities.
- globallink_fieldable_panels_get_translated in globallink_fieldable_panels/
globallink_fieldable_panels.inc - Gets number of translated fieldable panels.
File
- gl_ws/
gl_ws_receive_translations.inc, line 465
Code
function globallink_send_download_confirmation($target_ticket, $pd_obj) {
$username = $pd_obj->username;
$password = $pd_obj->password;
$url = $pd_obj->url;
$session_service = new SessionService2(GL_WSDL_PATH . 'SessionService2.wsdl', array(
'location' => $url . '/services/SessionService2',
));
$target_service = new TargetService2(GL_WSDL_PATH . 'TargetService2.wsdl', array(
'location' => $url . '/services/TargetService2',
));
$token = globallink_login($session_service, $username, $password);
$globallink_send_download_confirmation_request = new sendDownloadConfirmation();
$globallink_send_download_confirmation_request->targetId = $target_ticket;
$globallink_send_download_confirmation_request->userId = $token;
$globallink_send_download_confirmation_response = $target_service
->sendDownloadConfirmation($globallink_send_download_confirmation_request);
return $globallink_send_download_confirmation_response->return;
}