You are here

public function StringDatabaseStorage::findString in Localization update 7.2

Implements StringStorageInterface::findString().

Overrides StringStorageInterface::findString

File

includes/locale/StringDatabaseStorage.php, line 49
Definition of StringDatabaseStorage.

Class

StringDatabaseStorage
Defines the locale string class.

Code

public function findString(array $conditions) {
  $values = $this
    ->dbStringSelect($conditions)
    ->execute()
    ->fetchAssoc();
  if (!empty($values)) {
    $string = new SourceString($values);
    $string
      ->setStorage($this);
    return $string;
  }
}