Gettext PO reader working with the locale module database.
Hierarchy
- class \Drupal\locale\PoDatabaseReader implements PoReaderInterface
File
- core/modules/locale/src/PoDatabaseReader.php, line 12
Namespace
Drupal\locale
Members
| Name | Modifiers | Type | Description |
|---|---|---|---|
| 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 | public | function | Get header metadata. Overrides PoMetadataInterface::getHeader |
| PoDatabaseReader::getLangcode | public | function | Get language code. Overrides PoMetadataInterface::getLangcode |
| PoDatabaseReader::getOptions | public | 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 | public | function | Reads and returns a PoItem (source/translation pair). Overrides PoReaderInterface::readItem |
| PoDatabaseReader::readString | private | function | Get the database result resource for the given language and options. |
| PoDatabaseReader::setHeader | public | function | Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). Overrides PoMetadataInterface::setHeader |
| PoDatabaseReader::setLangcode | public | function | Set language code. Overrides PoMetadataInterface::setLangcode |
| PoDatabaseReader::setOptions | public | function | Set the options for the current reader. |
| PoDatabaseReader::__construct | public | function | Constructor, initializes with default options. |
Please login to continue.