You are here

public static function LingotekSync::getNodeIdsFromDocIds in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
  2. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
  3. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
1 call to LingotekSync::getNodeIdsFromDocIds()
LingotekSync::disassociateEntities in lib/Drupal/lingotek/LingotekSync.php

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getNodeIdsFromDocIds($lingotek_document_ids) {
  $nids = array();
  $query = db_select('lingotek_entity_metadata', 'l')
    ->fields('l', array(
    'nid',
  ))
    ->condition('entity_type', 'node')
    ->condition('entity_key', $key)
    ->condition('value', $lingotek_document_ids, 'IN');
  $result = $query
    ->execute()
    ->fetchCol();
  return $result;
}