protected function doWriteSheetDataHeader() { $this->currentRow++; $this->sheetString .= "<row r=\"{$this->currentRow}\" spans=\"1:1\" x14ac:dyDescent=\"0.25\">"; foreach ($this->template->getFields() as $key => $fieldDescription) { $stringId = XlsxSharedStringsHelper::putIfNotExists($fieldDescription->getFieldCaption()); $colLetter = $this->getColumnLetters($key); $this->sheetString .= "<c r=\"{$colLetter}{$this->currentRow}\" t=\"s\"><v>{$stringId}</v></c>"; } $this->sheetString .= "</row>"; }
public function format($value) { $value = XlsxSharedStringsHelper::putIfNotExists(parent::format($value)); return empty($value) ? null : "<c r=\"cellAddress\" t=\"s\"><v>{$value}</v></c>"; }