You are here

function GLExchange::cancelTargetByDocumentTicket in GlobalLink Connect for Drupal 7.7

* Cancel document for specified target language * *

Parameters

* $documentTicket: * Document ticket to cancel * @param * $locale * Target locale to cancel

File

gl_ws/glc/GLExchange.php, line 466

Class

GLExchange

Code

function cancelTargetByDocumentTicket($documentTicket, $locale) {
  $cancelDocumentRequest = new cancelTargetByDocumentId();
  $dticket = new DocumentTicket();
  $dticket->ticketId = $documentTicket;
  $cancelDocumentRequest->documentId = $dticket;
  $cancelDocumentRequest->targetLocale = $locale;
  return $this->targetService
    ->cancelTargetByDocumentId($cancelDocumentRequest);
}