Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 protected function processRow(RowInterface $row)
 {
     $output = [];
     foreach ($row->getData() as $key => $value) {
         $output[] = "{$key}: {$value}";
     }
     $output = implode(', ', $output);
     print "{$output}\n";
 }
Esempio n. 2
0
 /**
  * @param resource $handle
  *   The file handle to write to.
  * @param \Devour\Row\RowInterface $row
  *   The row to write to the file.
  */
 protected function processRow($handle, RowInterface $row)
 {
     fputcsv($handle, $row->getData(), $this->delimeter, $this->enclosure);
 }