PoMemoryWriter
class PoMemoryWriter implements PoWriterInterface (View source)
Defines a Gettext PO memory writer, to be used by the installer.
Properties
| protected array | $items | Array to hold all PoItem elements. |
Methods
Constructor, initialize empty items.
Get all stored PoItem's.
Implements Drupal\Component\Gettext\PoMetadataInterface:setLangcode().
Implements Drupal\Component\Gettext\PoMetadataInterface:getLangcode().
Details
__construct()
Constructor, initialize empty items.
writeItem(PoItem $item)
Writes the given item.
writeItems(PoReaderInterface $reader, $count = -1)
Writes all or the given amount of items.
array
getData()
Get all stored PoItem's.
setLangcode(string $langcode)
Implements Drupal\Component\Gettext\PoMetadataInterface:setLangcode().
Not implemented. Not relevant for the MemoryWriter.
string
getLangcode()
Implements Drupal\Component\Gettext\PoMetadataInterface:getLangcode().
Not implemented. Not relevant for the MemoryWriter.
PoHeader
getHeader()
Implements Drupal\Component\Gettext\PoMetadataInterface:getHeader().
Not implemented. Not relevant for the MemoryWriter.
setHeader(PoHeader $header)
Implements Drupal\Component\Gettext\PoMetadataInterface:setHeader().
Not implemented. Not relevant for the MemoryWriter.