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::checkVersion

protected StringDatabaseStorage::checkVersion($string, $version) Checks whether the string version matches a given version, fix it if not. Parameters \Drupal\locale\StringInterface $string: The string object. string $version: Drupal version to check against. File core/modules/locale/src/StringDatabaseStorage.php, line 174 Class StringDatabaseStorage Defines a class to store localized strings in the database. Namespace Drupal\locale Code protected function checkVersion($string, $versio

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::$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

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::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::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

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::setPlurals

public StringBase::setPlurals($plurals) Sets this string using array of plural values. Serializes plural variants in one string glued by LOCALE_PLURAL_DELIMITER. Parameters array $plurals: Array of strings with plural variants. Return value $this Overrides StringInterface::setPlurals File core/modules/locale/src/StringBase.php, line 104 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function setPlurals($plurals) { $this->setString(impl