You are here

public static function LingotekConfigSet::getLidsByStatus in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getLidsByStatus()
1 call to LingotekConfigSet::getLidsByStatus()
lingotek_grid_update in ./lingotek.bulk_grid.inc

File

lib/Drupal/lingotek/LingotekConfigSet.php, line 529
Defines LingotekConfigSet.

Class

LingotekConfigSet
A class wrapper for Lingotek-specific behavior on ConfigSets.

Code

public static function getLidsByStatus($status) {
  $target_language_search = '%';
  $query = db_select('lingotek_config_metadata', 'l');
  $query
    ->fields('l', array(
    'id',
  ));
  $query
    ->condition('config_key', 'target_sync_status_' . $target_language_search, 'LIKE');
  $query
    ->condition('value', $status);
  $result = $query
    ->execute();
  $set_ids = $result
    ->fetchCol();

  //$result->fetchAllAssoc('nid');
  $lids = self::getLidsFromSets($set_ids);
  return $lids;
}