You are here

public static function PHPExcel_Style_NumberFormat::builtInFormatCode in Loft Data Grids 7.2

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

* Get built-in format code * *

Parameters

int $pIndex: * @return string

4 calls to PHPExcel_Style_NumberFormat::builtInFormatCode()
PHPExcel_Reader_Excel2007::load in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php
* Loads PHPExcel from file * *
PHPExcel_Reader_Excel5::_readXf in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* XF - Extended Format * * This record contains formatting information for cells, rows, columns or styles. * According to http://support.microsoft.com/kb/147732 there are always at least 15 cell style XF * and 1 cell XF. * Inspection of…
PHPExcel_Style_NumberFormat::getFormatCode in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
* Get Format Code * *
PHPExcel_Style_NumberFormat::setBuiltInFormatCode in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
* Set Built-In Format Code * *

File

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

Class

PHPExcel_Style_NumberFormat
PHPExcel_Style_NumberFormat

Code

public static function builtInFormatCode($pIndex) {

  // Clean parameter
  $pIndex = intval($pIndex);

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

  // Lookup format code
  if (isset(self::$_builtInFormats[$pIndex])) {
    return self::$_builtInFormats[$pIndex];
  }
  return '';
}