You are here

public function LingotekProfile::getDocumentIds in Lingotek Translation 7.7

File

lib/Drupal/lingotek/LingotekProfile.php, line 219
Defines LingotekProfile

Class

LingotekProfile
A class wrapper for Lingotek Profiles

Code

public function getDocumentIds() {
  $metadata_table = $this
    ->getId() === LingotekSync::PROFILE_CONFIG ? 'lingotek_config_metadata' : 'lingotek_entity_metadata';
  $metadata_key_col = $this
    ->getId() === LingotekSync::PROFILE_CONFIG ? 'config_key' : 'entity_key';
  $query = db_select($metadata_table, 't')
    ->fields('t', array(
    'value',
  ))
    ->condition('t.' . $metadata_key_col, 'document_id');
  return $query
    ->execute()
    ->fetchcol();
}