Search for read

  1. Search 7.x for read
  2. Search 9.5.x for read
  3. Search 8.9.x for read
  4. Search 10.3.x for read
  5. Search main for read
  6. Other projects
Title Object type File name Summary
PoDatabaseReader class core/modules/locale/src/PoDatabaseReader.php Gettext PO reader working with the locale module database.
PoDatabaseReader.php file core/modules/locale/src/PoDatabaseReader.php
PoDatabaseReader::$langcode property core/modules/locale/src/PoDatabaseReader.php Language code of the language being read from the database.
PoDatabaseReader::$options property core/modules/locale/src/PoDatabaseReader.php An associative array indicating which type of strings should be read.
PoDatabaseReader::$result property core/modules/locale/src/PoDatabaseReader.php Store the result of the query so it can be iterated later.
PoDatabaseReader::getHeader function core/modules/locale/src/PoDatabaseReader.php Get header metadata.
PoDatabaseReader::getLangcode function core/modules/locale/src/PoDatabaseReader.php Get language code.
PoDatabaseReader::getOptions function core/modules/locale/src/PoDatabaseReader.php Get the options used by the reader.
PoDatabaseReader::loadStrings function core/modules/locale/src/PoDatabaseReader.php Builds and executes a database query based on options set earlier.
PoDatabaseReader::readItem function core/modules/locale/src/PoDatabaseReader.php Reads and returns a PoItem (source/translation pair).
PoDatabaseReader::readString function core/modules/locale/src/PoDatabaseReader.php Get the database result resource for the given language and options.
PoDatabaseReader::setHeader function core/modules/locale/src/PoDatabaseReader.php Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
PoDatabaseReader::setLangcode function core/modules/locale/src/PoDatabaseReader.php Set language code.
PoDatabaseReader::setOptions function core/modules/locale/src/PoDatabaseReader.php Set the options for the current reader.
PoDatabaseReader::__construct function core/modules/locale/src/PoDatabaseReader.php Constructor, initializes with default options.
PoReaderInterface interface core/lib/Drupal/Component/Gettext/PoReaderInterface.php Shared interface definition for all Gettext PO Readers.
PoReaderInterface.php file core/lib/Drupal/Component/Gettext/PoReaderInterface.php
PoReaderInterface::readItem function core/lib/Drupal/Component/Gettext/PoReaderInterface.php Reads and returns a PoItem (source/translation pair).
PoStreamReader class core/lib/Drupal/Component/Gettext/PoStreamReader.php Implements Gettext PO stream reader.
PoStreamReader.php file core/lib/Drupal/Component/Gettext/PoStreamReader.php
PoStreamReader::$context property core/lib/Drupal/Component/Gettext/PoStreamReader.php Parser context for the stream reader state machine.
PoStreamReader::$currentItem property core/lib/Drupal/Component/Gettext/PoStreamReader.php Current entry being read. Incomplete.
PoStreamReader::$currentPluralIndex property core/lib/Drupal/Component/Gettext/PoStreamReader.php Current plural index for plural translations.
PoStreamReader::$errors property core/lib/Drupal/Component/Gettext/PoStreamReader.php Array of translated error strings recorded on reading this stream so far.
PoStreamReader::$fd property core/lib/Drupal/Component/Gettext/PoStreamReader.php File handle of the current PO stream.
PoStreamReader::$finished property core/lib/Drupal/Component/Gettext/PoStreamReader.php Indicator of whether the stream reading is finished.
PoStreamReader::$header property core/lib/Drupal/Component/Gettext/PoStreamReader.php The PO stream header.
PoStreamReader::$langcode property core/lib/Drupal/Component/Gettext/PoStreamReader.php Language code for the PO stream being read.
PoStreamReader::$lastItem property core/lib/Drupal/Component/Gettext/PoStreamReader.php Object wrapper for the last read source/translation pair.
PoStreamReader::$lineNumber property core/lib/Drupal/Component/Gettext/PoStreamReader.php Source line number of the stream being parsed.
PoStreamReader::$uri property core/lib/Drupal/Component/Gettext/PoStreamReader.php URI of the PO stream that is being read.
PoStreamReader::close function core/lib/Drupal/Component/Gettext/PoStreamReader.php Implements Drupal\Component\Gettext\PoStreamInterface::close().
PoStreamReader::getHeader function core/lib/Drupal/Component/Gettext/PoStreamReader.php Get header metadata.
PoStreamReader::getLangcode function core/lib/Drupal/Component/Gettext/PoStreamReader.php Get language code.
PoStreamReader::getSeek function core/lib/Drupal/Component/Gettext/PoStreamReader.php Gets the pointer position of the current PO stream.
PoStreamReader::getURI function core/lib/Drupal/Component/Gettext/PoStreamReader.php Gets the URI of the PO stream that is being read or written.
PoStreamReader::open function core/lib/Drupal/Component/Gettext/PoStreamReader.php Implements Drupal\Component\Gettext\PoStreamInterface::open().
PoStreamReader::parseQuoted function core/lib/Drupal/Component/Gettext/PoStreamReader.php Parses a string in quotes.
PoStreamReader::readHeader function core/lib/Drupal/Component/Gettext/PoStreamReader.php Read the header from the PO stream.
PoStreamReader::readItem function core/lib/Drupal/Component/Gettext/PoStreamReader.php Reads and returns a PoItem (source/translation pair).
PoStreamReader::readLine function core/lib/Drupal/Component/Gettext/PoStreamReader.php Reads a line from the PO stream and stores data internally.
PoStreamReader::setHeader function core/lib/Drupal/Component/Gettext/PoStreamReader.php Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
PoStreamReader::setItemFromArray function core/lib/Drupal/Component/Gettext/PoStreamReader.php Store the parsed values as a PoItem object.
PoStreamReader::setLangcode function core/lib/Drupal/Component/Gettext/PoStreamReader.php Set language code.
PoStreamReader::setSeek function core/lib/Drupal/Component/Gettext/PoStreamReader.php Sets the seek position for the current PO stream.
PoStreamReader::setURI function core/lib/Drupal/Component/Gettext/PoStreamReader.php Set the URI of the PO stream that is going to be read or written.
PoStreamReader::shortenComments function core/lib/Drupal/Component/Gettext/PoStreamReader.php Generates a short, one-string version of the passed comment array.
PoStreamReaderTest class core/tests/Drupal/Tests/Component/Gettext/PoStreamReaderTest.php Unit tests for the Gettext PO file header handling features.
PoStreamReaderTest.php file core/tests/Drupal/Tests/Component/Gettext/PoStreamReaderTest.php
PoStreamReaderTest::testOpeningFileError function core/tests/Drupal/Tests/Component/Gettext/PoStreamReaderTest.php Validates that calling open with an invalid URI throws an exception.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.