public static function LingotekSync::getSetIdsFromLids in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getSetIdsFromLids()
4 calls to LingotekSync::getSetIdsFromLids()
- lingotek_change_workflow in ./
lingotek.bulk_grid.inc - Callback function to change workflow for multiple nodes at a time
- 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 996 - 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;
}