You are here

public static function LingotekSync::getSetIdsFromLids in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getSetIdsFromLids()
3 calls to LingotekSync::getSetIdsFromLids()
lingotek_config_disassociate_form_submit in ./lingotek.bulk_grid.inc
lingotek_config_download_selected in ./lingotek.config.inc
lingotek_config_update_selected in ./lingotek.batch.inc

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getSetIdsFromLids($lids) {
  if (empty($lids)) {
    return $lids;
  }
  $query = db_select('lingotek_config_map', 'l');
  $query
    ->addField('l', 'set_id');
  $query
    ->condition('lid', $lids, 'IN');
  $sids = $query
    ->execute()
    ->fetchCol();
  return $sids;
}