You are here

public static function LingotekSync::getChunkIdsByStatus in Lingotek Translation 7.3

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

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getChunkIdsByStatus($status) {
  $query = db_select('lingotek_config_metadata', 'meta');
  $query
    ->fields('meta', array(
    'id',
  ));
  $query
    ->condition('config_key', 'target_sync_status_%', 'LIKE');
  $query
    ->condition('value', $status);
  $query
    ->distinct();
  $result = $query
    ->execute();
  $cids = $result
    ->fetchCol();
  return $cids;
}