상속: implements Box\Spout\Common\Escaper\EscaperInterface, use trait Box\Spout\Common\Singleton
예제 #1
0
파일: SheetIterator.php 프로젝트: box/spout
 /**
  * @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();
 }
예제 #2
0
파일: Worksheet.php 프로젝트: KiNgMaR/spout
 /**
  * @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();
 }
예제 #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();
 }