Inheritance: implements Box\Spout\Common\Escaper\EscaperInterface, use trait Box\Spout\Common\Singleton
Ejemplo n.º 1
0
 /**
  * @param string $filePath Path of the file to be read
  * @param \Box\Spout\Reader\ODS\ReaderOptions $options Reader's current options
  * @throws \Box\Spout\Reader\Exception\NoSheetsFoundException If there are no sheets in the file
  */
 public function __construct($filePath, $options)
 {
     $this->filePath = $filePath;
     $this->options = $options;
     $this->xmlReader = new XMLReader();
     /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
     $this->escaper = \Box\Spout\Common\Escaper\ODS::getInstance();
 }
Ejemplo n.º 2
0
 /**
  * @param \Box\Spout\Writer\Common\Sheet $externalSheet The associated "external" sheet
  * @param string $worksheetFilesFolder Temporary folder where the files to create the XLSX will be stored
  * @throws \Box\Spout\Common\Exception\IOException If the sheet data file cannot be opened for writing
  */
 public function __construct($externalSheet, $worksheetFilesFolder)
 {
     $this->externalSheet = $externalSheet;
     /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
     $this->stringsEscaper = \Box\Spout\Common\Escaper\ODS::getInstance();
     $this->worksheetFilePath = $worksheetFilesFolder . '/sheet' . $externalSheet->getIndex() . '.xml';
     $this->stringHelper = new StringHelper();
     $this->startSheet();
 }
Ejemplo n.º 3
0
 /**
  * @param bool $shouldFormatDates Whether date/time values should be returned as PHP objects or be formatted as strings
  */
 public function __construct($shouldFormatDates)
 {
     $this->shouldFormatDates = $shouldFormatDates;
     /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
     $this->escaper = \Box\Spout\Common\Escaper\ODS::getInstance();
 }