You are here

protected static function LingotekSync::getChunksWithPendingTranslations in Lingotek Translation 7.5

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.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
2 calls to LingotekSync::getChunksWithPendingTranslations()
LingotekSync::getChunkCountByStatus in lib/Drupal/lingotek/LingotekSync.php
LingotekSync::pruneChunksWithPendingTranslations in lib/Drupal/lingotek/LingotekSync.php

File

lib/Drupal/lingotek/LingotekSync.php, line 614
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();
}