You are here

public static function LingotekConfigChunk::restoreDirtyLids in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::restoreDirtyLids()
  2. 7.5 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::restoreDirtyLids()

Mark as dirty all target segments passed, in the locales targets

Parameters

array: the list of segments that need updating

1 call to LingotekConfigChunk::restoreDirtyLids()
LingotekConfigChunk::updateLocalContentByTarget in lib/Drupal/lingotek/LingotekConfigChunk.php
Updates the local content of $target_code with data from a Lingotek Document

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 756
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

public static function restoreDirtyLids($dirty_lids) {
  if ($dirty_lids) {
    db_update('locales_target')
      ->fields(array(
      'i18n_status' => 1,
    ))
      ->condition('lid', $dirty_lids, 'IN')
      ->execute();
  }
}