StringDatabaseStorage::countStrings

public StringDatabaseStorage::countStrings() Counts source strings. Return value int The number of source strings contained in the storage. Overrides StringStorageInterface::countStrings File core/modules/locale/src/StringDatabaseStorage.php, line 100 Class StringDatabaseStorage Defines a class to store localized strings in the database. Namespace Drupal\locale Code public function countStrings() { return $this->dbExecute("SELECT COUNT(*) FROM {locales_source}")->fetchField();

StringDatabaseStorage::countTranslations

public StringDatabaseStorage::countTranslations() Counts translations. Return value array The number of translations for each language indexed by language code. Overrides StringStorageInterface::countTranslations File core/modules/locale/src/StringDatabaseStorage.php, line 107 Class StringDatabaseStorage Defines a class to store localized strings in the database. Namespace Drupal\locale Code public function countTranslations() { return $this->dbExecute("SELECT t.language, COUNT(*

StringDatabaseStorage::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/modules/locale/src/StringDatabaseStorage.php, line 17 Class StringDatabaseStorage Defines a class to store localized strings in the database. Namespace Drupal\locale Code protected $connection;

StringDatabaseStorage::$options

Additional database connection options to use in queries. Type: array File core/modules/locale/src/StringDatabaseStorage.php, line 24 Class StringDatabaseStorage Defines a class to store localized strings in the database. Namespace Drupal\locale Code protected $options = array();

StringDatabaseStorage

Defines a class to store localized strings in the database. Hierarchy class \Drupal\locale\StringDatabaseStorage implements StringStorageInterface File core/modules/locale/src/StringDatabaseStorage.php, line 10 Namespace Drupal\locale Members Name Modifiers Type Description StringDatabaseStorage::$connection protected property The database connection. StringDatabaseStorage::$options protected property Additional database connection options to use in queries. St

StringBase::__construct

public StringBase::__construct($values = array()) Constructs a new locale string object. Parameters object|array $values: Object or array with initial values. File core/modules/locale/src/StringBase.php, line 60 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function __construct($values = array()) { $this->setValues((array) $values); }

StringBase::setId

public StringBase::setId($lid) Sets the string unique identifier. Parameters int $id: The string identifier. Return value $this Overrides StringInterface::setId File core/modules/locale/src/StringBase.php, line 74 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function setId($lid) { $this->lid = $lid; return $this; }

StringBase::setVersion

public StringBase::setVersion($version) Sets the string version. Parameters string $version: Version identifier. Return value $this Overrides StringInterface::setVersion File core/modules/locale/src/StringBase.php, line 89 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function setVersion($version) { $this->version = $version; return $this; }

StringBase::setStorage

public StringBase::setStorage($storage) Sets the string storage. Parameters \Drupal\locale\StringStorageInterface $storage: The storage to use for this string. Return value $this Overrides StringInterface::setStorage File core/modules/locale/src/StringBase.php, line 119 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function setStorage($storage) { $this->storage = $storage; return $this; }

StringBase::setValues

public StringBase::setValues(array $values, $override = TRUE) Sets an array of values as object properties. Parameters array $values: Array with values indexed by property name. bool $override: (optional) Whether to override already set fields, defaults to TRUE. Return value $this Overrides StringInterface::setValues File core/modules/locale/src/StringBase.php, line 127 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function setValues(array