public function LingotekDocument::getProgress in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::getProgress()
- 7.4 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::getProgress()
- 7.6 lib/Drupal/lingotek/LingotekDocument.php \LingotekDocument::getProgress()
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::getProgress()
- 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 getProgress() {
$progress =& drupal_static(__FUNCTION__ . '-' . $this->document_id);
if (!$progress) {
$progress = $this->api
->getDocumentProgress($this->document_id);
}
return $progress;
}