Add cached value
This commit is contained in:
parent
71b800468f
commit
ac2342b260
@ -73,6 +73,6 @@ class CellTypeHelper
|
||||
*/
|
||||
public static function isFormula($value)
|
||||
{
|
||||
return (strpos($value, '=') === 0);
|
||||
return (is_array($value) || strpos($value, '=') === 0);
|
||||
}
|
||||
}
|
||||
|
@ -229,7 +229,11 @@ EOD;
|
||||
$cellXML .= ' s="' . $styleId . '"';
|
||||
|
||||
if ($cell->isFormula()) {
|
||||
$cellXML .= ' ><f>' . substr($cell->getValue(), 1) . '</f></c>';
|
||||
if (is_array($cell->getValue())) {
|
||||
$cellXML .= ' ><f>' . substr($cell->getValue()[0], 1) . '</f><v>' . $cell->getValue()[1] . '</v></c>';
|
||||
} else {
|
||||
$cellXML .= ' ><f>' . substr($cell->getValue(), 1) . '</f></c>';
|
||||
}
|
||||
} elseif ($cell->isString()) {
|
||||
$cellXML .= $this->getCellXMLFragmentForNonEmptyString($cell->getValue());
|
||||
} elseif ($cell->isBoolean()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user