/** * Write export file by iterate fetch data, which will be used to import in viga db * * @param object $export * @return $this */ protected function writeExportFile($export, $bar) { $file = fopen($export->getInfo()['file'], 'w'); fwrite($file, bomstr()); $this->iterateEntitys($bar, $file); fclose($file); return $this; }
public function write(array $data) { $this->open()->put(bomstr()); foreach ($data as $row) { $this->put("{$this->getEachRowStr($row)}\r\n"); } $this->close(); return $this; }