interface PoWriterInterface

Shared interface definition for all Gettext PO Writers.

Hierarchy

Expanded class hierarchy of PoWriterInterface

All classes that implement PoWriterInterface

3 files declare their use of PoWriterInterface
PoDatabaseWriter.php in drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php
Definition of Drupal\locale\PoDatabaseWriter.
PoMemoryWriter.php in drupal/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
Definition of Drupal\Component\Gettext\PoMemoryWriter.
PoStreamWriter.php in drupal/core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Definition of Drupal\Component\Gettext\PoStreamWriter.

File

drupal/core/lib/Drupal/Component/Gettext/PoWriterInterface.php, line 16
Definition of Drupal\Component\Gettext\PoWriterInterface.

Namespace

Drupal\Component\Gettext
View source
interface PoWriterInterface extends PoMetadataInterface {

  /**
   * Writes the given item.
   *
   * @param PoItem $item
   *   One specific item to write.
   */
  function writeItem(PoItem $item);

  /**
   * Writes all or the given amount of items.
   *
   * @param PoReaderInterface $reader
   *   Reader to read PoItems from.
   * @param $count
   *   Amount of items to read from $reader to write. If -1, all items are
   *   read from $reader.
   */
  function writeItems(PoReaderInterface $reader, $count = -1);

}

Members

Namesort descending Modifiers Type Description Overrides
PoMetadataInterface::getHeader function Get header metadata. 5
PoMetadataInterface::getLangcode function Get language code. 5
PoMetadataInterface::setHeader function Set header metadata. 5
PoMetadataInterface::setLangcode function Set language code. 5
PoWriterInterface::writeItem function Writes the given item. 3
PoWriterInterface::writeItems function Writes all or the given amount of items. 3