You are here

protected static function LingotekSync::getChunksWithPendingTranslations in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
  2. 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
  3. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
  4. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
1 call to LingotekSync::getChunksWithPendingTranslations()
LingotekSync::pruneChunksWithPendingTranslations in lib/Drupal/lingotek/LingotekSync.php

File

lib/Drupal/lingotek/LingotekSync.php, line 590
LingotekSync

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

protected static function getChunksWithPendingTranslations() {

  // get the list of chunks with pending translations
  $result = db_select('lingotek_config_metadata', 'meta')
    ->fields('meta', array(
    'id',
    'id',
  ))
    ->condition('config_key', 'target_sync_status_%', 'LIKE')
    ->condition('value', array(
    self::STATUS_PENDING,
    self::STATUS_READY,
  ), 'IN')
    ->distinct()
    ->execute();
  return $result
    ->fetchAllKeyed();
}