PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.5.3
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.5.3
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
fluent-cart / vendor / openspout / openspout / src / Writer / ODS / Writer.php

Writer.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.5.3, at vendor/openspout/openspout/src/Writer/ODS/Writer.php

31 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentCart\OpenSpout\Writer\ODS;
4
5 use FluentCart\OpenSpout\Writer\Common\Entity\Options;
6 use FluentCart\OpenSpout\Writer\WriterMultiSheetsAbstract;
7 /**
8 * This class provides base support to write data to ODS files.
9 */
10 class Writer extends WriterMultiSheetsAbstract
11 {
12 /** @var string Content-Type value for the header */
13 protected static $headerContentType = 'application/vnd.oasis.opendocument.spreadsheet';
14 /**
15 * Sets a custom temporary folder for creating intermediate files/folders.
16 * This must be set before opening the writer.
17 *
18 * @param string $tempFolder Temporary folder where the files to create the ODS will be stored
19 *
20 * @throws \OpenSpout\Writer\Exception\WriterAlreadyOpenedException If the writer was already opened
21 *
22 * @return Writer
23 */
24 public function setTempFolder($tempFolder)
25 {
26 $this->throwIfWriterAlreadyOpened('Writer must be configured before opening it.');
27 $this->optionsManager->setOption(Options::TEMP_FOLDER, $tempFolder);
28 return $this;
29 }
30 }
31