You are here

function GLExchange::getCancelledTargetsBySubmissions in GlobalLink Connect for Drupal 7.7

* Get cancelled targets for submission(s) * *

Parameters

* $submissionTickets: * Submission ticket or array of submission tickets * @param * $maxResults * Maximum number of cancelled targets to return. This * configuration is to avoid time-outs in case the number of * targets is very large. * @return Array of cancelled PDTarget

File

gl_ws/glc/GLExchange.php, line 548

Class

GLExchange

Code

function getCancelledTargetsBySubmissions($submissionTickets, $maxResults) {
  $getCancelledTargetsBySubmissionRequest = new getCanceledTargetsBySubmissions();
  $getCancelledTargetsBySubmissionRequest->maxResults = $maxResults;
  $getCancelledTargetsBySubmissionRequest->submissionTickets = is_array($submissionTickets) ? $submissionTickets : array(
    $submissionTickets,
  );
  $cancelledTargets = $this->targetService
    ->getCanceledTargetsBySubmissions($getCancelledTargetsBySubmissionRequest)->return;
  return $this
    ->_convertTargetsToInternal($cancelledTargets);
}