function GLExchange::getCancelledTargetsByDocuments in GlobalLink Connect for Drupal 7.7
* Get cancelled targets for document(s) * *
Parameters
* $documentTickets: * Document ticket or array of document 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 597
Class
Code
function getCancelledTargetsByDocuments($documentTickets, $maxResults) {
$getCancelledTargetsByDocumentRequest = new getCanceledTargetsByDocuments();
$getCancelledTargetsByDocumentRequest->maxResults = $maxResults;
$getCancelledTargetsByDocumentRequest->documentTickets = is_array($documentTickets) ? $documentTickets : array(
$documentTickets,
);
$cancelledTargets = $this->targetService
->getCanceledTargetsByDocuments($getCancelledTargetsByDocumentRequest)->return;
return $this
->_convertTargetsToInternal($cancelledTargets);
}