You are here

function globallink_get_completed_targets_by_doc in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.6 gl_ws/gl_ws_receive_translations.inc \globallink_get_completed_targets_by_doc()
8 calls to globallink_get_completed_targets_by_doc()
globallink_block_get_translations_for_row_id in globallink_block/globallink_block_receive.inc
Gets block translations by row ID.
globallink_entity_get_translations_for_row_id in globallink_entity/globallink_entity_receive.inc
Gets entity translations by row ID.
globallink_fieldable_panels_get_translations_for_row_id in globallink_fieldable_panels/globallink_fieldable_panels_receive.inc
Gets fieldable panels translations by row ID.
globallink_get_translations_for_row_id in ./globallink_receive_translations.inc
Gets GlobalLink translations by row ID.
globallink_interface_get_translations_for_row_id in globallink_interface/globallink_interface_receive.inc
Gets interface translations by row ID.

... See full list

File

gl_ws/gl_ws_receive_translations.inc, line 413

Code

function globallink_get_completed_targets_by_doc($pd_obj, $ticket) {
  $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);
  $get_completed_targets_by_documents_request = new getCompletedTargetsByDocuments();
  $get_completed_targets_by_documents_request->documentTickets = array(
    $ticket,
  );
  $get_completed_targets_by_documents_request->maxResults = 99;
  $get_completed_targets_by_documents_request->userId = $token;
  $get_completed_targets_by_documents_response = $target_service
    ->getCompletedTargetsByDocuments($get_completed_targets_by_documents_request);
  return $get_completed_targets_by_documents_response->return;
}