PoDatabaseReader::setHeader

public PoDatabaseReader::setHeader(PoHeader $header) Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). Throws Exception Always, because you cannot set the PO header of a reader. Overrides PoMetadataInterface::setHeader File core/modules/locale/src/PoDatabaseReader.php, line 97 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function setHeader(PoHeader $header) { throw new \Exception('You cannot

PoDatabaseReader::readString

private PoDatabaseReader::readString() Get the database result resource for the given language and options. File core/modules/locale/src/PoDatabaseReader.php, line 152 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code private function readString() { if (!isset($this->result)) { $this->result = $this->loadStrings(); } return array_shift($this->result); }

PoDatabaseReader::readItem

public PoDatabaseReader::readItem() Reads and returns a PoItem (source/translation pair). Return value \Drupal\Component\Gettext\PoItem Wrapper for item data instance. Overrides PoReaderInterface::readItem File core/modules/locale/src/PoDatabaseReader.php, line 162 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function readItem() { if ($string = $this->readString()) { $values = (array) $string; $po_it

PoDatabaseReader::loadStrings

private PoDatabaseReader::loadStrings() Builds and executes a database query based on options set earlier. File core/modules/locale/src/PoDatabaseReader.php, line 104 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code private function loadStrings() { $langcode = $this->langcode; $options = $this->options; $conditions = array(); if (array_sum($options) == 0) { // If user asked to not include anything in the t

PoDatabaseReader::getOptions

public PoDatabaseReader::getOptions() Get the options used by the reader. File core/modules/locale/src/PoDatabaseReader.php, line 68 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function getOptions() { return $this->options; }

PoDatabaseReader::getLangcode

public PoDatabaseReader::getLangcode() Get language code. Return value string Language code string. Overrides PoMetadataInterface::getLangcode File core/modules/locale/src/PoDatabaseReader.php, line 54 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function getLangcode() { return $this->langcode; }

PoDatabaseReader::getHeader

public PoDatabaseReader::getHeader() Get header metadata. Return value \Drupal\Component\Gettext\PoHeader $header Header instance representing metadata in a PO header. Overrides PoMetadataInterface::getHeader File core/modules/locale/src/PoDatabaseReader.php, line 87 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function getHeader() { return new PoHeader($this->getLangcode()); }

PoDatabaseReader::$result

Store the result of the query so it can be iterated later. Type: resource File core/modules/locale/src/PoDatabaseReader.php, line 42 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code private $result;

PoDatabaseReader::$options

An associative array indicating which type of strings should be read. Elements of the array: not_customized: boolean indicating if not customized strings should be read. customized: boolean indicating if customized strings should be read. no_translated: boolean indicating if non-translated should be read. The three options define three distinct sets of strings, which combined cover all strings. Type: array File core/modules/locale/src/PoDatabaseReader.php, line 28 Class PoDatabaseReade

PoDatabaseReader::$langcode

Language code of the language being read from the database. Type: string File core/modules/locale/src/PoDatabaseReader.php, line 35 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code private $langcode;