You are here

public static function LingotekSync::getAllNodeIds in Lingotek Translation 7.3

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

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getAllNodeIds() {

  // all node ids having document_ids in lingotek table
  $query = db_select('lingotek', 'l');
  $query
    ->fields('l', array(
    'nid',
  ));

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