public static function LingotekSync::getTargetStatus in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetStatus()
- 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetStatus()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetStatus()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetStatus()
7 calls to LingotekSync::getTargetStatus()
- check_entity_progress_for_download in ./
lingotek.sync.inc - LingotekSync::getDownloadableReport in lib/
Drupal/ lingotek/ LingotekSync.php - lingotek_delete_field_translations in ./
lingotek.util.inc - Delete translations for field based entities
- lingotek_entity_download in ./
lingotek.module - lingotek_get_and_update_target_progress in ./
lingotek.sync.inc - Updates the 'target_sync_status_[lang-code]' field for every target in the lingotek table with the overall progress returned by TMS
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 47 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getTargetStatus($doc_id, $lingotek_locale) {
$key = 'target_sync_status_' . $lingotek_locale;
if ($chunk_id = LingotekConfigSet::getIdByDocId($doc_id)) {
return LingotekConfigSet::getTargetStatusById($chunk_id, $lingotek_locale);
}
else {
list($entity_id, $entity_type) = self::getEntityIdFromDocId($doc_id);
return lingotek_keystore($entity_type, $entity_id, $key);
}
LingotekLog::error('Did not find any local info for Lingotek Doc ID "@id"', array(
'@id' => $doc_id,
));
return FALSE;
}