You are here

public static function LingotekSync::getConfigDocIdsFromSetIds in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getConfigDocIdsFromSetIds()
4 calls to LingotekSync::getConfigDocIdsFromSetIds()
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
lingotek_entity_change_workflow in ./lingotek.module
Changes an entity's workflow locally and on the TMS

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getConfigDocIdsFromSetIds($sids) {
  if (empty($sids)) {
    return $sids;
  }
  $query = db_select('lingotek_config_metadata', 'l');
  $query
    ->addField('l', 'value');
  $query
    ->condition('id', $sids, 'IN');
  $query
    ->condition('config_key', 'document_id');
  $doc_ids = $query
    ->execute()
    ->fetchCol();
  return $doc_ids;
}