foreach ($conditions as $field =>
$value) { // Cast scalars to array so we can consistently use an IN condition.
$query->
condition('l.' .
$field,
(array) $value, 'IN'
);
} return $query->
execute()->
fetchAll();
} /**
* {@inheritdoc}
*/
public function countStrings() { return $this->
dbExecute("SELECT COUNT(*) FROM {locales_source}"
)->
fetchField();
} /**
* {@inheritdoc}
*/
public function countTranslations() { return $this->
dbExecute("SELECT t.language, COUNT(*) AS translated FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid GROUP BY t.language"
)->
fetchAllKeyed();
} /**
* {@inheritdoc}
*/