public static function LingotekConfigSet::getAllUnsetWorkflowConfigDocIds in Lingotek Translation 7.7
1 call to LingotekConfigSet::getAllUnsetWorkflowConfigDocIds()
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 348 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function getAllUnsetWorkflowConfigDocIds() {
$setWorkflowSetIds = db_select('lingotek_config_metadata', 'lcm')
->fields('lcm', array(
'id',
))
->condition('config_key', 'workflow_id');
$doc_ids = db_select('lingotek_config_metadata', 'l')
->fields('l', array(
'value',
))
->condition('config_key', 'document_id')
->condition('id', $setWorkflowSetIds, 'NOT IN')
->execute()
->fetchCol();
return $doc_ids;
}