/home/techb158/ileadtechnology.com/SSM/vendor/maatwebsite/excel/src
NameSizeModeActions
Concerns/-0755rm
Console/-0755rm
Events/-0755rm
Exceptions/-0755rm
Facades/-0755rm
Factories/-0755rm
Fakes/-0755rm
Files/-0755rm
Filters/-0755rm
Helpers/-0755rm
Imports/-0755rm
Jobs/-0755rm
Mixins/-0755rm
Transactions/-0755rm
Validators/-0755rm
Cell.php22340644editdlrm
ChunkReader.php27300644editdlrm
DefaultValueBinder.php5740644editdlrm
DelegatedMacroable.php7300644editdlrm
Excel.php48620644editdlrm
ExcelServiceProvider.php28680644editdlrm
Exporter.php15490644editdlrm
HasEventBus.php12780644editdlrm
HeadingRowImport.php9550644editdlrm
Importer.php15690644editdlrm
MappedReader.php12880644editdlrm
QueuedWriter.php61520644editdlrm
Reader.php123190644editdlrm
RegistersCustomConcerns.php11230644editdlrm
Row.php18600644editdlrm
Sheet.php184860644editdlrm
Writer.php50700644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/maatwebsite/excel/src/Writer.php (5070B)
temporaryFileFactory = $temporaryFileFactory; $this->setDefaultValueBinder(); } /** * @param object $export * @param string $writerType * * @throws \PhpOffice\PhpSpreadsheet\Exception * @return TemporaryFile */ public function export($export, string $writerType): TemporaryFile { $this->open($export); $sheetExports = [$export]; if ($export instanceof WithMultipleSheets) { $sheetExports = $export->sheets(); } foreach ($sheetExports as $sheetExport) { $this->addNewSheet()->export($sheetExport); } return $this->write($export, $this->temporaryFileFactory->makeLocal(), $writerType); } /** * @param object $export * * @return $this */ public function open($export) { $this->exportable = $export; if ($export instanceof WithEvents) { $this->registerListeners($export->registerEvents()); } $this->exportable = $export; $this->spreadsheet = new Spreadsheet; $this->spreadsheet->disconnectWorksheets(); if ($export instanceof WithCustomValueBinder) { Cell::setValueBinder($export); } $this->raise(new BeforeExport($this, $this->exportable)); if ($export instanceof WithTitle) { $this->spreadsheet->getProperties()->setTitle($export->title()); } return $this; } /** * @param TemporaryFile $tempFile * @param string $writerType * * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception * @return Writer */ public function reopen(TemporaryFile $tempFile, string $writerType) { $reader = IOFactory::createReader($writerType); $this->spreadsheet = $reader->load($tempFile->sync()->getLocalPath()); return $this; } /** * @param object $export * @param TemporaryFile $temporaryFile * @param string $writerType * * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception * @return TemporaryFile */ public function write($export, TemporaryFile $temporaryFile, string $writerType): TemporaryFile { $this->exportable = $export; $this->spreadsheet->setActiveSheetIndex(0); $this->raise(new BeforeWriting($this, $this->exportable)); $writer = WriterFactory::make( $writerType, $this->spreadsheet, $export ); $writer->save( $path = $temporaryFile->getLocalPath() ); if ($temporaryFile instanceof RemoteTemporaryFile) { $temporaryFile->updateRemote(); } $this->spreadsheet->disconnectWorksheets(); unset($this->spreadsheet); return $temporaryFile; } /** * @param int|null $sheetIndex * * @throws \PhpOffice\PhpSpreadsheet\Exception * @return Sheet */ public function addNewSheet(int $sheetIndex = null) { return new Sheet($this->spreadsheet->createSheet($sheetIndex)); } /** * @return Spreadsheet */ public function getDelegate() { return $this->spreadsheet; } /** * @return $this */ public function setDefaultValueBinder() { Cell::setValueBinder( app(config('excel.value_binder.default', DefaultValueBinder::class)) ); return $this; } /** * @param int $sheetIndex * * @throws \PhpOffice\PhpSpreadsheet\Exception * @return Sheet */ public function getSheetByIndex(int $sheetIndex) { return new Sheet($this->getDelegate()->getSheet($sheetIndex)); } /** * @param string $concern * * @return bool */ public function hasConcern($concern): bool { return $this->exportable instanceof $concern; } }