You are here

function GLExchange::getCompletedTargetsByDocument in GlobalLink Connect for Drupal 7.7

* Get completed targets by document ticket(s) * *

Parameters

* $documentTickets: * Document ticket or array of tickets for which completed targets are requested * @param * $maxResults * Maximum number of completed targets to return in this call * @return Array of completed PDTarget

File

gl_ws/glc/GLExchange.php, line 724

Class

GLExchange

Code

function getCompletedTargetsByDocument($documentTickets, $maxResults) {
  $getCompletedTargetsByDocumentsRequest = new getCompletedTargetsByDocuments();
  $getCompletedTargetsByDocumentsRequest->documentTickets = is_array($documentTickets) ? $documentTickets : array(
    $documentTickets,
  );
  $getCompletedTargetsByDocumentsRequest->maxResults = $maxResults;
  $completedTargets = $this->targetService
    ->getCompletedTargetsByDocuments($getCompletedTargetsByDocumentsRequest)->return;
  return $this
    ->_convertTargetsToInternal($completedTargets);
}