You are here

public function LingotekConfigChunk::getTargetStatus in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getTargetStatus()
  2. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getTargetStatus()

Get the chunk's target translation status for the given locale

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 527
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

public function getTargetStatus($lingotek_locale) {
  $result = db_select('{lingotek_config_metadata}', 'meta')
    ->fields('meta', array(
    'value',
  ))
    ->condition('id', $this->cid)
    ->condition('config_key', 'target_sync_status_' . $lingotek_locale)
    ->execute();
  return $result->value;
}