X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/maatwebsite/excel/src
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
maatwebsite
/
excel
/
src
/
📁
..
📄
Cell.php
(2.18 KB)
📄
ChunkReader.php
(2.67 KB)
📁
Concerns
📁
Console
📄
DefaultValueBinder.php
(574 B)
📄
DelegatedMacroable.php
(730 B)
📁
Events
📄
Excel.php
(4.75 KB)
📄
ExcelServiceProvider.php
(2.8 KB)
📁
Exceptions
📄
Exporter.php
(1.51 KB)
📁
Facades
📁
Factories
📁
Fakes
📁
Files
📁
Filters
📄
HasEventBus.php
(1.25 KB)
📄
HeadingRowImport.php
(955 B)
📁
Helpers
📄
Importer.php
(1.53 KB)
📁
Imports
📁
Jobs
📄
MappedReader.php
(1.26 KB)
📁
Mixins
📄
QueuedWriter.php
(6.01 KB)
📄
Reader.php
(12.03 KB)
📄
RegistersCustomConcerns.php
(1.1 KB)
📄
Row.php
(1.82 KB)
📄
Sheet.php
(18.05 KB)
📁
Transactions
📁
Validators
📄
Writer.php
(4.95 KB)
Editing: Cell.php
<?php namespace Maatwebsite\Excel; use PhpOffice\PhpSpreadsheet\Calculation\Exception; use PhpOffice\PhpSpreadsheet\Cell\Cell as SpreadsheetCell; use PhpOffice\PhpSpreadsheet\RichText\RichText; use PhpOffice\PhpSpreadsheet\Style\NumberFormat; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; class Cell { use DelegatedMacroable; /** * @var SpreadsheetCell */ private $cell; /** * @param SpreadsheetCell $cell */ public function __construct(SpreadsheetCell $cell) { $this->cell = $cell; } /** * @param Worksheet $worksheet * @param string $coordinate * * @throws \PhpOffice\PhpSpreadsheet\Exception * @return Cell */ public static function make(Worksheet $worksheet, string $coordinate) { return new static($worksheet->getCell($coordinate)); } /** * @return SpreadsheetCell */ public function getDelegate(): SpreadsheetCell { return $this->cell; } /** * @param null $nullValue * @param bool $calculateFormulas * @param bool $formatData * * @return mixed */ public function getValue($nullValue = null, $calculateFormulas = false, $formatData = true) { $value = $nullValue; if ($this->cell->getValue() !== null) { if ($this->cell->getValue() instanceof RichText) { $value = $this->cell->getValue()->getPlainText(); } elseif ($calculateFormulas) { try { $value = $this->cell->getCalculatedValue(); } catch (Exception $e) { $value = $this->cell->getOldCalculatedValue(); } } else { $value = $this->cell->getValue(); } if ($formatData) { $style = $this->cell->getWorksheet()->getParent()->getCellXfByIndex($this->cell->getXfIndex()); $value = NumberFormat::toFormattedString( $value, ($style && $style->getNumberFormat()) ? $style->getNumberFormat()->getFormatCode() : NumberFormat::FORMAT_GENERAL ); } } return $value; } }
Upload File
Create Folder