You are here

public static function LingotekConfigSet::getLidsFromSets in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getLidsFromSets()
7 calls to LingotekConfigSet::getLidsFromSets()
LingotekConfigSet::deleteSegmentTranslationsBySetIdAndLanguage in lib/Drupal/lingotek/LingotekConfigSet.php
Delete all target segments for a given set
LingotekConfigSet::getAllSegments in lib/Drupal/lingotek/LingotekConfigSet.php
Return all segments from the database that belong to a given set ID
LingotekConfigSet::getDirtyLidsBySetIdAndLanguage in lib/Drupal/lingotek/LingotekConfigSet.php
Return all target segments by ID marked to be updated
LingotekConfigSet::getLidsByStatus in lib/Drupal/lingotek/LingotekConfigSet.php
LingotekConfigSet::hasMaxChars in lib/Drupal/lingotek/LingotekConfigSet.php

... See full list

File

lib/Drupal/lingotek/LingotekConfigSet.php, line 449
Defines LingotekConfigSet.

Class

LingotekConfigSet
A class wrapper for Lingotek-specific behavior on ConfigSets.

Code

public static function getLidsFromSets($set_ids) {
  $set_ids = is_array($set_ids) ? $set_ids : array(
    $set_ids,
  );
  if (empty($set_ids)) {
    return array();
  }
  $lids = db_select('lingotek_config_map', 'lcm')
    ->fields('lcm', array(
    'lid',
  ))
    ->condition('set_id', $set_ids, 'IN')
    ->execute()
    ->fetchCol();
  return $lids;
}