public function LingotekApi::getDocumentProgress in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getDocumentProgress()
- 7.2 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getDocumentProgress()
- 7.3 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getDocumentProgress()
- 7.5 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getDocumentProgress()
- 7.6 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::getDocumentProgress()
Gets the workflow progress of the specified document.
Parameters
int $document_id: The ID 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 490 - Defines Drupal\lingotek\LingotekApi
Class
- LingotekApi
- @file Defines Drupal\lingotek\LingotekApi
Code
public function getDocumentProgress($document_id) {
$documents =& drupal_static(__FUNCTION__);
if (!empty($documents[$document_id])) {
$document = $documents[$document_id];
}
else {
$params = array(
'documentId' => $document_id,
);
if ($document = $this
->request('getDocumentProgress', $params)) {
$documents[$document_id] = $document;
}
}
return $document;
}