/** * @ignore */ private function _write_item($fh, $item) { fseek($fh, 0, SEEK_END); $line = item_to_line($item); if (ftell($fh) != 0) { $line = "\n" . $line; } fwrite($fh, $line); }
/** * @ignore */ private function _read_item($fh) { $line = $this->_read_line($fh); if ($line) { return item_to_line($line); } }