public static function LingotekSync::getAllNodeIds in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()
- 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllNodeIds()
- 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 824 - 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', 'l');
$query
->fields('l', array(
'nid',
));
//$query->condition('lingokey', 'document_id');
$query
->distinct('nid');
$result = $query
->execute();
$nids = $result
->fetchCol();
return $nids;
}