function GLExchange::getCompletedTargetsByProjects in GlobalLink Connect for Drupal 7.7
* Get completed targets for project(s) * *
Parameters
* $projectTickets: * PDProject tickets or array of PDProject tickets for which completed targets are requested * @param * $maxResults * Maximum number of completed targets to return in this call * @return Array of completed PDTarget
1 call to GLExchange::getCompletedTargetsByProjects()
- GLExchange::getCompletedTargetsByProject in gl_ws/
glc/ GLExchange.php - * Get completed targets for specified PDProject * *
File
- gl_ws/
glc/ GLExchange.php, line 640
Class
Code
function getCompletedTargetsByProjects($projectTickets, $maxResults) {
$getCompletedTargetsByProjectsRequest = new getCompletedTargetsByProjects();
$getCompletedTargetsByProjectsRequest->projectTickets = is_array($projectTickets) ? $projectTickets : array(
$projectTickets,
);
$getCompletedTargetsByProjectsRequest->maxResults = $maxResults;
$completedTargets = $this->targetService
->getCompletedTargetsByProjects($getCompletedTargetsByProjectsRequest)->return;
return $this
->_convertTargetsToInternal($completedTargets);
}