You are here

public static function PHPExcel_Style_NumberFormat::builtInFormatCodeIndex in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php \PHPExcel_Style_NumberFormat::builtInFormatCodeIndex()

* Get built-in format code index * *

Parameters

string $formatCode: * @return int|boolean

1 call to PHPExcel_Style_NumberFormat::builtInFormatCodeIndex()
PHPExcel_Style_NumberFormat::setFormatCode in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
* Set Format Code * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php, line 343

Class

PHPExcel_Style_NumberFormat
PHPExcel_Style_NumberFormat

Code

public static function builtInFormatCodeIndex($formatCode) {

  // Ensure built-in format codes are available
  self::fillBuiltInFormatCodes();

  // Lookup format code
  if (isset(self::$_flippedBuiltInFormats[$formatCode])) {
    return self::$_flippedBuiltInFormats[$formatCode];
  }
  return false;
}