@@ 4056-4060 (lines=5) @@ | ||
4053 | // Single cell in range |
|
4054 | sscanf($aReferences[0], '%[A-Z]%d', $currentCol, $currentRow); |
|
4055 | $cellValue = null; |
|
4056 | if ($pSheet->cellExists($aReferences[0])) { |
|
4057 | $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog); |
|
4058 | } else { |
|
4059 | $returnValue[$currentRow][$currentCol] = null; |
|
4060 | } |
|
4061 | } else { |
|
4062 | // Extract cell data for all cells in the range |
|
4063 | foreach ($aReferences as $reference) { |
|
@@ 4067-4071 (lines=5) @@ | ||
4064 | // Extract range |
|
4065 | sscanf($reference, '%[A-Z]%d', $currentCol, $currentRow); |
|
4066 | $cellValue = null; |
|
4067 | if ($pSheet->cellExists($reference)) { |
|
4068 | $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog); |
|
4069 | } else { |
|
4070 | $returnValue[$currentRow][$currentCol] = null; |
|
4071 | } |
|
4072 | } |
|
4073 | } |
|
4074 | } |
|
@@ 4122-4126 (lines=5) @@ | ||
4119 | // Single cell (or single column or row) in range |
|
4120 | list($currentCol, $currentRow) = Cell::coordinateFromString($aReferences[0]); |
|
4121 | $cellValue = null; |
|
4122 | if ($pSheet->cellExists($aReferences[0])) { |
|
4123 | $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog); |
|
4124 | } else { |
|
4125 | $returnValue[$currentRow][$currentCol] = null; |
|
4126 | } |
|
4127 | } else { |
|
4128 | // Extract cell data for all cells in the range |
|
4129 | foreach ($aReferences as $reference) { |
|
@@ 4133-4137 (lines=5) @@ | ||
4130 | // Extract range |
|
4131 | list($currentCol, $currentRow) = Cell::coordinateFromString($reference); |
|
4132 | $cellValue = null; |
|
4133 | if ($pSheet->cellExists($reference)) { |
|
4134 | $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog); |
|
4135 | } else { |
|
4136 | $returnValue[$currentRow][$currentCol] = null; |
|
4137 | } |
|
4138 | } |
|
4139 | } |
|
4140 | } |