function GLExchange::cancelSubmission in GlobalLink Connect for Drupal 7.7
* Cancel Submission for all languages * *
Parameters
* $submissionTicket: * Submission ticket to cancel * @param * $comment * [OPTIONAL] Cancellation comment
File
- gl_ws/
glc/ GLExchange.php, line 499
Class
Code
function cancelSubmission($submissionTicket, $comment = NULL) {
if ($comment == NULL) {
$cancelSubmissionRequest = new cancelSubmission();
$cancelSubmissionRequest->submissionId = $submissionTicket;
return $this->submissionService
->cancelSubmission($cancelSubmissionRequest)->return;
}
else {
$cancelSubmissionRequest = new cancelSubmissionWithComment();
$cancelSubmissionRequest->comment = $comment;
$cancelSubmissionRequest->submissionId = $submissionTicket;
return $this->submissionService
->cancelSubmissionWithComment($cancelSubmissionRequest)->return;
}
}