public static function LingotekSync::getSetIdsFromLids in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getSetIdsFromLids()
3 calls to LingotekSync::getSetIdsFromLids()
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;
}