public static function LingotekSync::getEntityIdSubsetByTargetStatusReady in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getEntityIdSubsetByTargetStatusReady()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getEntityIdSubsetByTargetStatusReady()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 874 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getEntityIdSubsetByTargetStatusReady($entity_type, $nids, $lingotek_locale) {
$query = db_select('{lingotek_entity_metadata}', 'l')
->fields('l', array(
'entity_id',
))
->condition('entity_type', $entity_type)
->condition('entity_id', $nids, 'IN')
->condition('entity_key', 'target_sync_status_' . $lingotek_locale)
->condition('value', LingotekSync::STATUS_READY);
$result = $query
->execute()
->fetchCol();
return $result;
}