StringDatabaseStorage

Defines a class to store localized strings in the database.

Hierarchy

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.
StringDatabaseStorage::checkVersion protected function Checks whether the string version matches a given version, fix it if not.
StringDatabaseStorage::countStrings public function Counts source strings. Overrides StringStorageInterface::countStrings
StringDatabaseStorage::countTranslations public function Counts translations. Overrides StringStorageInterface::countTranslations
StringDatabaseStorage::createString public function Creates a source string object bound to this storage but not saved. Overrides StringStorageInterface::createString
StringDatabaseStorage::createTranslation public function Creates a string translation object bound to this storage but not saved. Overrides StringStorageInterface::createTranslation
StringDatabaseStorage::dbDelete protected function Creates delete query.
StringDatabaseStorage::dbExecute protected function Executes an arbitrary SELECT query string with the injected options.
StringDatabaseStorage::dbFieldTable protected function Gets table alias for field.
StringDatabaseStorage::dbStringInsert protected function Creates a database record for a string object.
StringDatabaseStorage::dbStringKeys protected function Gets keys values that are in a database table.
StringDatabaseStorage::dbStringLoad protected function Loads multiple string objects.
StringDatabaseStorage::dbStringSelect protected function Builds a SELECT query with multiple conditions and fields.
StringDatabaseStorage::dbStringTable protected function Gets table name for storing string object.
StringDatabaseStorage::dbStringUpdate protected function Updates string object in the database.
StringDatabaseStorage::delete public function Delete string from storage. Overrides StringStorageInterface::delete
StringDatabaseStorage::deleteStrings public function Deletes source strings and translations using conditions. Overrides StringStorageInterface::deleteStrings
StringDatabaseStorage::deleteTranslations public function Deletes translations using conditions. Overrides StringStorageInterface::deleteTranslations
StringDatabaseStorage::findString public function Loads a string source object, fast query. Overrides StringStorageInterface::findString
StringDatabaseStorage::findTranslation public function Loads a string translation object, fast query. Overrides StringStorageInterface::findTranslation
StringDatabaseStorage::getLocations public function Loads string location information. Overrides StringStorageInterface::getLocations
StringDatabaseStorage::getStrings public function Loads multiple source string objects. Overrides StringStorageInterface::getStrings
StringDatabaseStorage::getTranslations public function Loads multiple string translation objects. Overrides StringStorageInterface::getTranslations
StringDatabaseStorage::save public function Save string object to storage. Overrides StringStorageInterface::save
StringDatabaseStorage::updateLocation protected function Update locations for string.
StringDatabaseStorage::__construct public function Constructs a new StringDatabaseStorage class.
doc_Drupal
2016-10-29 09:45:04
Comments
Leave a Comment

Please login to continue.