You are here

public static function LingotekSync::getAllNodeIds in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()
  2. 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()
  3. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()
  4. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getAllNodeIds() {

  // This query is broken - it also gets things without doc ids
  // all node ids having document_ids in lingotek table
  $query = db_select('lingotek_entity_metadata', 'l');
  $query
    ->addField('l', 'entity_id');

  //$query->condition('lingokey', 'document_id');
  $query
    ->distinct('entity_id');
  $result = $query
    ->execute();
  $nids = $result
    ->fetchCol();
  return $nids;
}