You are here

function GLExchange::getUnstartedSubmissions in GlobalLink Connect for Drupal 7.7

* Get Unstarted Submissions. * *

Parameters

* $project: * PDProject * @return Array of PDSubmission that have not been started.

File

gl_ws/glc/GLExchange.php, line 782

Class

GLExchange

Code

function getUnstartedSubmissions($project) {
  $submissions = array();
  $creatingSubmissions = $this->submissionService
    ->findCreatingSubmissionsByProjectShortCode($project->shortCode)->return;
  foreach ($creatingSubmissions as &$creatingSubmission) {
    $sub = new Submission();
    $sub->ticket = $creatingSubmission->ticket;
    $sub->name = $creatingSubmission->submissionInfo->name;
    array_push($submissions, $sub);
  }
  return $submissions;
}