. */ require_once('ExportBase.php'); require_once('CFDBExport.php'); use Box\Spout\Writer\WriterFactory; use Box\Spout\Common\Type; use Box\Spout\Writer\Style\Style; class ExportToExcel extends ExportBase implements CFDBExport { /** * @param $formName string * @param $options array of option_name => option_value * @return void */ public function export($formName, $options = null) { $this->setOptions($options); $this->setCommonOptions(); // Security Check if (!$this->isAuthorized()) { $this->assertSecurityErrorMessage(); return; } if (version_compare(phpversion(), '5.4') < 0) { $this->echoHeaders(array('Content-Type: text/html')); printf('