public function PoStreamWriter::writeItems in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItems()
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/
lib/ Drupal/ Component/ Gettext/ PoStreamWriter.php, line 135 - Contains \Drupal\Component\Gettext\PoStreamWriter.
Class
- PoStreamWriter
- Defines a Gettext PO stream writer.
Namespace
Drupal\Component\GettextCode
public function writeItems(PoReaderInterface $reader, $count = -1) {
$forever = $count == -1;
while (($count-- > 0 || $forever) && ($item = $reader
->readItem())) {
$this
->writeItem($item);
}
}