You are here

public static function PHPExcel_Cell_DataType::checkErrorCode in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DataType.php \PHPExcel_Cell_DataType::checkErrorCode()

Check a value that it is a valid error code

Parameters

mixed Value to sanitize to an Excel error code:

Return value

string Sanitized value

1 call to PHPExcel_Cell_DataType::checkErrorCode()
PHPExcel_Cell::setValueExplicit in vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php
* Set the value for a cell, with the explicit data type passed to the method (bypassing any use of the value binder) * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/DataType.php, line 111

Class

PHPExcel_Cell_DataType
PHPExcel_Cell_DataType

Code

public static function checkErrorCode($pValue = null) {
  $pValue = (string) $pValue;
  if (!array_key_exists($pValue, self::$_errorCodes)) {
    $pValue = '#NULL!';
  }
  return $pValue;
}