You are here

function globallink_send_download_confirmation in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 gl_ws/gl_ws_receive_translations.inc \globallink_send_download_confirmation()
  2. 7.5 gl_ws/gl_ws_receive_translations.inc \globallink_send_download_confirmation()
18 calls to globallink_send_download_confirmation()
globallink_beans_get_translated in globallink_beans/globallink_beans.inc
Gets number of translated beans.
globallink_beans_update_deleted_records in globallink_beans/globallink_beans.inc
Updates status for deleted beans.
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.

... See full list

File

gl_ws/gl_ws_receive_translations.inc, line 483

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;
}