@@ 975-981 (lines=7) @@ | ||
972 | break; |
|
973 | case "e": |
|
974 | // echo 'Error<br />'; |
|
975 | if (!isset($c->f)) { |
|
976 | $value = self::_castToError($c); |
|
977 | } else { |
|
978 | // Formula |
|
979 | $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToError'); |
|
980 | // echo '$calculatedValue = '.$calculatedValue.'<br />'; |
|
981 | } |
|
982 | ||
983 | break; |
|
984 | ||
@@ 987-995 (lines=9) @@ | ||
984 | ||
985 | default: |
|
986 | // echo 'Default<br />'; |
|
987 | if (!isset($c->f)) { |
|
988 | // echo 'Not a Formula<br />'; |
|
989 | $value = self::_castToString($c); |
|
990 | } else { |
|
991 | // echo 'Treat as Formula<br />'; |
|
992 | // Formula |
|
993 | $this->_castToFormula($c,$r,$cellDataType,$value,$calculatedValue,$sharedFormulas,'_castToString'); |
|
994 | // echo '$calculatedValue = '.$calculatedValue.'<br />'; |
|
995 | } |
|
996 | ||
997 | break; |
|
998 | } |