@@ 3737-3745 (lines=9) @@ | ||
3734 | // read STRING record |
|
3735 | $value = $this->_readString(); |
|
3736 | ||
3737 | } elseif ((ord($recordData{6}) == 1) |
|
3738 | && (ord($recordData{12}) == 255) |
|
3739 | && (ord($recordData{13}) == 255)) { |
|
3740 | ||
3741 | // Boolean formula. Result is in +2; 0=false, 1=true |
|
3742 | $dataType = PHPExcel_Cell_DataType::TYPE_BOOL; |
|
3743 | $value = (bool) ord($recordData{8}); |
|
3744 | ||
3745 | } elseif ((ord($recordData{6}) == 2) |
|
3746 | && (ord($recordData{12}) == 255) |
|
3747 | && (ord($recordData{13}) == 255)) { |
|
3748 | ||
@@ 3753-3761 (lines=9) @@ | ||
3750 | $dataType = PHPExcel_Cell_DataType::TYPE_ERROR; |
|
3751 | $value = self::_mapErrorCode(ord($recordData{8})); |
|
3752 | ||
3753 | } elseif ((ord($recordData{6}) == 3) |
|
3754 | && (ord($recordData{12}) == 255) |
|
3755 | && (ord($recordData{13}) == 255)) { |
|
3756 | ||
3757 | // Formula result is a null string |
|
3758 | $dataType = PHPExcel_Cell_DataType::TYPE_NULL; |
|
3759 | $value = ''; |
|
3760 | ||
3761 | } else { |
|
3762 | ||
3763 | // forumla result is a number, first 14 bytes like _NUMBER record |
|
3764 | $dataType = PHPExcel_Cell_DataType::TYPE_NUMERIC; |