public static function getTargetStatus($doc_id, $lingotek_locale) { $key = 'target_sync_status_' . $lingotek_locale; if ($chunk_id = LingotekConfigChunk::getIdByDocId($doc_id)) { return LingotekConfigChunk::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; }