CodeExplorer readString example
case 0:
$value =
$this->
readDouble();
break;
// Boolean
case 1:
$value =
$this->
readBoolean();
break;
// String
case 2:
$value =
$this->
readString();
break;
// Object
case 3:
$value =
$this->
readObject();
break;
// null
case 6:
return null;
private function readString() { if (!
isset($this->result
)) { $this->result =
$this->
loadStrings();
} return array_shift($this->result
);
} /**
* {@inheritdoc}
*/
public function readItem() { if ($string =
$this->
readString()) { $values =
(array) $string;
$po_item =
new PoItem();
$po_item->
setFromArray($values);
return $po_item;
} }}