protected static function LingotekSync::getChunksWithPendingTranslations in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
- 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
- 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getChunksWithPendingTranslations()
1 call to LingotekSync::getChunksWithPendingTranslations()
- LingotekSync::pruneChunksWithPendingTranslations in lib/
Drupal/ lingotek/ LingotekSync.php
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 590 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
protected static function getChunksWithPendingTranslations() {
// get the list of chunks with pending translations
$result = db_select('lingotek_config_metadata', 'meta')
->fields('meta', array(
'id',
'id',
))
->condition('config_key', 'target_sync_status_%', 'LIKE')
->condition('value', array(
self::STATUS_PENDING,
self::STATUS_READY,
), 'IN')
->distinct()
->execute();
return $result
->fetchAllKeyed();
}