예제 #1
0
파일: Workbook.php 프로젝트: evltuma/moodle
 /**
  * @param string $tempFolder
  * @param bool $shouldCreateNewSheetsAutomatically
  * @param \Box\Spout\Writer\Style\Style $defaultRowStyle
  * @throws \Box\Spout\Common\Exception\IOException If unable to create at least one of the base folders
  */
 public function __construct($tempFolder, $shouldCreateNewSheetsAutomatically, $defaultRowStyle)
 {
     parent::__construct($shouldCreateNewSheetsAutomatically, $defaultRowStyle);
     $this->fileSystemHelper = new FileSystemHelper($tempFolder);
     $this->fileSystemHelper->createBaseFilesAndFolders();
     $this->styleHelper = new StyleHelper($defaultRowStyle);
 }
예제 #2
0
파일: Workbook.php 프로젝트: janeklb/moodle
 /**
  * @param string $tempFolder
  * @param bool $shouldUseInlineStrings
  * @param bool $shouldCreateNewSheetsAutomatically
  * @param \Box\Spout\Writer\Style\Style $defaultRowStyle
  * @throws \Box\Spout\Common\Exception\IOException If unable to create at least one of the base folders
  */
 public function __construct($tempFolder, $shouldUseInlineStrings, $shouldCreateNewSheetsAutomatically, $defaultRowStyle)
 {
     parent::__construct($shouldCreateNewSheetsAutomatically, $defaultRowStyle);
     $this->shouldUseInlineStrings = $shouldUseInlineStrings;
     $this->fileSystemHelper = new FileSystemHelper($tempFolder);
     $this->fileSystemHelper->createBaseFilesAndFolders();
     $this->styleHelper = new StyleHelper($defaultRowStyle);
     // This helper will be shared by all sheets
     $xlFolder = $this->fileSystemHelper->getXlFolder();
     $this->sharedStringsHelper = new SharedStringsHelper($xlFolder);
 }