CodeExplorer importString example
} /**
* {@inheritdoc}
*/
public function writeItem(PoItem
$item) { if ($item->
isPlural()) { $item->
setSource(implode(PoItem::DELIMITER,
$item->
getSource()));
$item->
setTranslation(implode(PoItem::DELIMITER,
$item->
getTranslation()));
} $this->
importString($item);
} /**
* {@inheritdoc}
*/
public function writeItems(PoReaderInterface
$reader,
$count = -1
) { $forever =
$count == -1;
while (($count-- > 0 ||
$forever) && ($item =
$reader->
readItem())) { $this->
writeItem($item);
} }