private function GLExchange::_convertTargetsToInternal in GlobalLink Connect for Drupal 7.7
8 calls to GLExchange::_convertTargetsToInternal()
- GLExchange::getCancelledTargets in gl_ws/
glc/ GLExchange.php - * Get cancelled targets for all projects * *
- GLExchange::getCancelledTargetsByDocuments in gl_ws/
glc/ GLExchange.php - * Get cancelled targets for document(s) * *
- GLExchange::getCancelledTargetsByProjects in gl_ws/
glc/ GLExchange.php - * Get cancelled targets for project(s) * *
- GLExchange::getCancelledTargetsBySubmissions in gl_ws/
glc/ GLExchange.php - * Get cancelled targets for submission(s) * *
- GLExchange::getCompletedTargets in gl_ws/
glc/ GLExchange.php - * Get completed targets for all projects * *
File
- gl_ws/
glc/ GLExchange.php, line 104
Class
Code
private function _convertTargetsToInternal($targets) {
$targets_arr = array();
if (count($targets) > 0) {
$pdtargets = is_array($targets) ? $targets : array(
$targets,
);
foreach ($pdtargets as $target) {
$pdtarget = new PDTarget($target);
$targets_arr[] = $pdtarget;
}
}
return $targets_arr;
}