protected static function LingotekConfigSet::markSetsCurrent in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::markSetsCurrent()
Mark all sets passed as current, in the lingotek_config_map table
Parameters
array $set_ids: the list of lids that are current
1 call to LingotekConfigSet::markSetsCurrent()
- 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 998 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
protected static function markSetsCurrent($set_ids) {
$query = db_update('lingotek_config_map')
->fields(array(
'current' => 1,
));
if ($set_ids != 'all') {
$set_ids = is_array($set_ids) ? $set_ids : array(
$set_ids,
);
$query
->condition('set_id', $set_ids, 'IN');
}
$query
->execute();
}