You are here

public function LingotekApi::listDocumentProgress in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::listDocumentProgress()
  2. 7.4 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::listDocumentProgress()
  3. 7.6 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::listDocumentProgress()

Gets the workflow progress of the specified documents.

Parameters

int $document_id: The IDs of the Lingotek Documents to retrieve.

Return value

mixed The API response object with Lingotek Document data, or FALSE on error.

File

lib/Drupal/lingotek/LingotekApi.php, line 419
Defines Drupal\lingotek\LingotekApi

Class

LingotekApi
@file Defines Drupal\lingotek\LingotekApi

Code

public function listDocumentProgress($document_ids) {
  $params = array();
  foreach ($document_ids as $document_id) {
    $params['documentId'][] = $document_id;
  }
  $documents = $this
    ->request('listDocumentProgress', $params);
  return $documents;
}