public static function LingotekSync::getUploadStatus in Lingotek Translation 7.7
3 calls to LingotekSync::getUploadStatus()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 177 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getUploadStatus($entity_type, $entity_id) {
$query = db_select('lingotek_entity_metadata', 'lem')
->fields('lem', array(
'value',
))
->condition('lem.entity_id', $entity_id)
->condition('lem.entity_type', $entity_type)
->condition('lem.entity_key', 'upload_status');
$upload_status = $query
->execute()
->fetchField();
return $upload_status;
}