22 if ($a1fmt === null) {
25 if (is_string($a1fmt)) {
40 if (!is_string($cellAddress) || !$cellAddress) {
66 $a1 = self::a1Format($a1fmt);
67 $cellAddress = self::validateAddress($cellAddress);
69 return $e->getMessage();
83 return self::extractRequiredCells($pSheet, $cellAddress);
static extractCellAddresses(string $cellAddress, bool $a1, Worksheet $sheet, string $sheetName='')
static validateAddress($cellAddress)
Convert cellAddress to string, verify not null string.
extractCellRange(&$pRange='A1', ?Worksheet $pSheet=null, $resetLog=true)
Extract range values.
const CALCULATION_REGEXP_CELLREF
static a1Format($a1fmt)
Determine whether cell address is in A1 (true) or R1C1 (false) format.
static getInstance(?Spreadsheet $spreadsheet=null)
Get an instance of this class.
static INDIRECT($cellAddress, $a1fmt, Cell $pCell)
INDIRECT.
static extractRequiredCells(?Worksheet $pSheet, string $cellAddress)
Extract range values.
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.
static extractWorksheet(string $cellAddress, Cell $pCell)