public static function LingotekConfigSet::setSegmentStatusToCurrentById in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::setSegmentStatusToCurrentById()
Set all segments for a given set ID to CURRENT status
Parameters
int: the ID of a set of configuration segments
2 calls to LingotekConfigSet::setSegmentStatusToCurrentById()
- LingotekApi::addContentDocument in lib/
Drupal/ lingotek/ LingotekApi.php - Add a document to the Lingotek platform.
- LingotekApi::updateContentDocument in lib/
Drupal/ lingotek/ LingotekApi.php - Updates the content of an existing Lingotek document with the current object contents.
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 320 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function setSegmentStatusToCurrentById($set_id) {
$lids = self::getLidsFromSets($set_id);
$result = db_update('locales_target')
->fields(array(
'i18n_status' => I18N_STRING_STATUS_CURRENT,
))
->condition('lid', $lids, 'IN')
->execute();
}