public static function LingotekConfigSet::getDirtyLidsBySetIdAndLanguage in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getDirtyLidsBySetIdAndLanguage()
Return all target segments by ID marked to be updated
This is a preparatory step before resetting the locales targets for a given set.
Parameters
int: the ID of the set under which to search
string: the language code for which to get the segments that need updating
1 call to LingotekConfigSet::getDirtyLidsBySetIdAndLanguage()
- LingotekConfigSet::downloadTriggered in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Updates the local content of $target_code with data from a Lingotek Document
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 922 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function getDirtyLidsBySetIdAndLanguage($set_id, $language) {
$lids = self::getLidsFromSets($set_id);
$result = db_select('locales_target', 'lt')
->fields('lt', array(
'lid',
))
->condition('lid', $lids, 'IN')
->condition('language', $language)
->condition('i18n_status', I18N_STRING_STATUS_CURRENT, '!=')
->condition('translation_agent_id', self::getLingotekTranslationAgentId())
->execute();
return $result
->fetchCol();
}