public static function LingotekSync::getNodeCountByStatus in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeCountByStatus()
1 call to LingotekSync::getNodeCountByStatus()
- LingotekSync::getCountByStatus in lib/
Drupal/ lingotek/ LingotekSync.php
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 345 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getNodeCountByStatus($status) {
$query = db_select('lingotek', 'l')
->fields('l');
$query
->condition('lingokey', 'node_sync_status');
$query
->condition('lingovalue', $status);
$result = $query
->countQuery()
->execute()
->fetchField();
return $result;
}