You are here

public static function LingotekSync::getUploadStatus in Lingotek Translation 7.7

3 calls to LingotekSync::getUploadStatus()
lingotek_grid_query_status in ./lingotek.bulk_grid.inc
lingotek_views_handler_source_status::render in ./lingotek_views_handler_source_status.inc
Render the field.
lingotek_views_handler_source_status_formatted::render in ./lingotek_views_handler_source_status_formatted.inc
Render the field.

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;
}