public function LingotekApi::getProgressReport in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getProgressReport()
- 7.3 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getProgressReport()
- 7.4 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getProgressReport()
- 7.5 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getProgressReport()
- 7.6 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getProgressReport()
Gets the workflow progress of the specified project (or list of document ids).
Parameters
int $project_id:
array<int> $document_ids: An array of document IDs of the Lingotek Document to retrieve.
Return value
mixed The API response object with Lingotek Document data, or FALSE on error.
File
- lib/
Drupal/ lingotek/ LingotekApi.php, line 458 - Defines Drupal\lingotek\LingotekApi
Class
- LingotekApi
- @file Defines Drupal\lingotek\LingotekApi
Code
public function getProgressReport($project_id = NULL, $document_ids = array(), $counts_only = FALSE) {
$params = array();
if (!empty($project_id)) {
$params['projectId'] = $project_id;
}
if (count($document_ids)) {
$document_id_str = join('&documentId=', $document_ids);
$params['documentId'] = $document_id_str;
}
$report = $this
->request('getProgressReport', $params);
if ($report !== FALSE && $counts_only) {
$counts = array();
if (isset($report['byTargetLocale'])) {
}
return $counts;
}
return $report;
}