コード例 #1
7
ファイル: CSV.php プロジェクト: slavomirkuzma/itc-bundle
 /**
  *
  * {@inheritDoc}
  *
  * @see \SK\ITCBundle\Service\Table\Adapter\IAdapter::write()
  */
 public function write(Table $table, OutputInterface $output)
 {
     $this->getSpreadsheet()->getProperties()->setTitle($table->getTitle())->setDescription($table->getDescription());
     $this->writeHeaders($table->getHeaders());
     $this->writeRows($table->getRows());
     $writer = IOFactory::createWriter($this->getSpreadsheet(), 'CSV');
     $writer->save('php://output');
 }