class PoDatabaseReader

Gettext PO reader working with the locale module database.

Hierarchy

Expanded class hierarchy of PoDatabaseReader

1 file declares its use of PoDatabaseReader

File

drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseReader.php, line 19
Definition of Drupal\locale\PoDatabaseReader.

Namespace

Drupal\locale
View source

Members

Namesort descending Modifiers Type Description Overrides
PoDatabaseReader::$_langcode private property Language code of the language being read from the database.
PoDatabaseReader::$_options private property An associative array indicating which type of strings should be read.
PoDatabaseReader::$_result private property Store the result of the query so it can be iterated later.
PoDatabaseReader::getHeader function Implements Drupal\Component\Gettext\PoMetadataInterface::getHeader(). Overrides PoMetadataInterface::getHeader
PoDatabaseReader::getLangcode public function Implements Drupal\Component\Gettext\PoMetadataInterface::getLangcode(). Overrides PoMetadataInterface::getLangcode
PoDatabaseReader::getOptions function Get the options used by the reader.
PoDatabaseReader::loadStrings private function Builds and executes a database query based on options set earlier.
PoDatabaseReader::readItem function Implements Drupal\Component\Gettext\PoReaderInterface::readItem(). Overrides PoReaderInterface::readItem
PoDatabaseReader::readString private function Get the database result resource for the given language and options.
PoDatabaseReader::setHeader function Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). Overrides PoMetadataInterface::setHeader
PoDatabaseReader::setLangcode public function Implements Drupal\Component\Gettext\PoMetadataInterface::setLangcode(). Overrides PoMetadataInterface::setLangcode
PoDatabaseReader::setOptions function Set the options for the current reader.
PoDatabaseReader::__construct function Constructor, initializes with default options.