You are here

private static function PHPExcel_Reader_Excel5::_mapErrorCode in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_mapErrorCode()

* Map error code, e.g. '#N/A' * *

Parameters

int $subData: * @return string

4 calls to PHPExcel_Reader_Excel5::_mapErrorCode()
PHPExcel_Reader_Excel5::_getNextToken in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Fetch next token from binary formula data * *
PHPExcel_Reader_Excel5::_readBIFF8Constant in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* read BIFF8 constant value which may be 'Empty Value', 'Number', 'String Value', 'Boolean Value', 'Error Value' * section 2.5.7 * returns e.g. array('value' => '5',…
PHPExcel_Reader_Excel5::_readBoolErr in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read BOOLERR record * This record represents a Boolean value or error value * cell. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format"
PHPExcel_Reader_Excel5::_readFormula in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read FORMULA record + perhaps a following STRING record if formula result is a string * This record contains the token array and the result of a * formula cell. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php, line 6901

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private static function _mapErrorCode($subData) {
  switch ($subData) {
    case 0x0:
      return '#NULL!';
      break;
    case 0x7:
      return '#DIV/0!';
      break;
    case 0xf:
      return '#VALUE!';
      break;
    case 0x17:
      return '#REF!';
      break;
    case 0x1d:
      return '#NAME?';
      break;
    case 0x24:
      return '#NUM!';
      break;
    case 0x2a:
      return '#N/A';
      break;
    default:
      return false;
  }
}