public function PoDatabaseReader::readItem in Localization update 7.2
Implements PoReaderInterface::readItem().
Overrides PoReaderInterface::readItem
File
- includes/
locale/ PoDatabaseReader.php, line 187 - Definition of PoDatabaseReader.
Class
- PoDatabaseReader
- Gettext PO reader working with the locale module database.
Code
public function readItem() {
if ($string = $this
->readString()) {
$values = (array) $string;
$poItem = new PoItem();
$poItem
->setFromArray($values);
return $poItem;
}
}