You are here

private static function PHPExcel_Writer_Excel5_Worksheet::_mapErrorCode in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php \PHPExcel_Writer_Excel5_Worksheet::_mapErrorCode()

* Map Error code * *

Parameters

string $errorCode: * @return int

2 calls to PHPExcel_Writer_Excel5_Worksheet::_mapErrorCode()
PHPExcel_Writer_Excel5_Worksheet::close in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
* Add data to the beginning of the workbook (note the reverse order) * and to the end of the workbook. * * @access public *
PHPExcel_Writer_Excel5_Worksheet::_writeFormula in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
* Write a formula to the specified row and column (zero indexed). * The textual representation of the formula is passed to the parser in * Parser.php which returns a packed binary string. * * Returns 0 : normal termination * -1 : formula…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php, line 2976

Class

PHPExcel_Writer_Excel5_Worksheet
PHPExcel_Writer_Excel5_Worksheet

Code

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