You are here

public static function PHPExcel_Calculation_Functions::ERROR_TYPE in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php \PHPExcel_Calculation_Functions::ERROR_TYPE()

* ERROR_TYPE * *

Parameters

mixed $value Value to check: * @return boolean

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php, line 336

Class

PHPExcel_Calculation_Functions
PHPExcel_Calculation_Functions

Code

public static function ERROR_TYPE($value = '') {
  $value = self::flattenSingleValue($value);
  $i = 1;
  foreach (self::$_errorCodes as $errorCode) {
    if ($value === $errorCode) {
      return $i;
    }
    ++$i;
  }
  return self::NA();
}