PoDatabaseWriter::__construct

public PoDatabaseWriter::__construct() Constructor, initialize reporting array. File core/modules/locale/src/PoDatabaseWriter.php, line 61 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function __construct() { $this->setReport(); }

PoDatabaseWriter::writeItems

public PoDatabaseWriter::writeItems(PoReaderInterface $reader, $count = -1) Writes all or the given amount of items. Parameters PoReaderInterface $reader: Reader to read PoItems from. $count: Amount of items to read from $reader to write. If -1, all items are read from $reader. Overrides PoWriterInterface::writeItems File core/modules/locale/src/PoDatabaseWriter.php, line 190 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code

PoDatabaseWriter::writeItem

public PoDatabaseWriter::writeItem(PoItem $item) Writes the given item. Parameters PoItem $item: One specific item to write. Overrides PoWriterInterface::writeItem File core/modules/locale/src/PoDatabaseWriter.php, line 179 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function writeItem(PoItem $item) { if ($item->isPlural()) { $item->setSource(implode(LOCALE_PLURAL_DELIMITER, $item->getSource()));

PoDatabaseWriter::setReport

public PoDatabaseWriter::setReport($report = array()) Set the report array of write operations. Parameters array $report: Associative array with result information. File core/modules/locale/src/PoDatabaseWriter.php, line 92 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function setReport($report = array()) { $report += array( 'additions' => 0, 'updates' => 0, 'deletes' => 0, 'skips' =>

PoDatabaseWriter::setOptions

public PoDatabaseWriter::setOptions(array $options) Set the options for the current writer. File core/modules/locale/src/PoDatabaseWriter.php, line 113 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function setOptions(array $options) { if (!isset($options['overwrite_options'])) { $options['overwrite_options'] = array(); } $options['overwrite_options'] += array( 'not_customized' => FALSE, 'custo

PoDatabaseWriter::setLangcode

public PoDatabaseWriter::setLangcode($langcode) Set language code. Parameters string $langcode: Language code string. Overrides PoMetadataInterface::setLangcode File core/modules/locale/src/PoDatabaseWriter.php, line 75 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function setLangcode($langcode) { $this->langcode = $langcode; }

PoDatabaseWriter::setHeader

public PoDatabaseWriter::setHeader(PoHeader $header) Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). Sets the header and configure Drupal accordingly. Before being able to process the given header we need to know in what context this database write is done. For this the options must be set. A langcode is required to set the current header's PluralForm. Parameters \Drupal\Component\Gettext\PoHeader $header: Header metadata. Throws Exception Overrides PoMetadataInterface::

PoDatabaseWriter::importString

private PoDatabaseWriter::importString(PoItem $item) Imports one string into the database. Parameters \Drupal\Component\Gettext\PoItem $item: The item being imported. Return value int The string ID of the existing string modified or the new string added. File core/modules/locale/src/PoDatabaseWriter.php, line 206 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code private function importString(PoItem $item) { // Initialize

PoDatabaseWriter::getReport

public PoDatabaseWriter::getReport() Get the report of the write operations. File core/modules/locale/src/PoDatabaseWriter.php, line 82 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function getReport() { return $this->report; }

PoDatabaseWriter::getOptions

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