You are here

public static function LingotekSync::getNodeIdsFromDocIds in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
  2. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
  3. 7.6 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 1174
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', NULL)
    ->condition('value', $lingotek_document_ids, 'IN');

  // preserved; however, I suspect that we will be able to delete this function entirely
  $result = $query
    ->execute()
    ->fetchCol();
  return $result;
}