You are here

public function LingotekDocument::translationProgress in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::translationProgress()

Gets the translation progress data for the Document.

Return value

mixed The data object returned by a call to getDocumentProgress on success, FALSE on failure.

2 calls to LingotekDocument::translationProgress()
LingotekDocument::currentPhase in lib/Drupal/lingotek/LingotekDocument.php
Gets the current workflow phase for the document.
LingotekDocument::hasPhasesToComplete in lib/Drupal/lingotek/LingotekDocument.php
Determines whether or not the document has Translation Targets in a complete-eligible phase.

File

lib/Drupal/lingotek/LingotekDocument.php, line 128
Defines LingotekDocument.

Class

LingotekDocument
A class representing a Lingotek Document

Code

public function translationProgress() {
  $progress =& drupal_static(__FUNCTION__ . '-' . $this->document_id);
  if (!$progress) {
    $progress = $this->api
      ->getDocumentProgress($this->document_id);
  }
  return $progress;
}