You are here

public static function PHPExcel_Shared_String::getCurrencyCode in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::getCurrencyCode()

* Get the currency code. If it has not yet been set explicitly, try to obtain the * symbol information from locale. * *

Return value

string

3 calls to PHPExcel_Shared_String::getCurrencyCode()
PHPExcel_Calculation_TextData::VALUE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php
* VALUE * *
PHPExcel_Cell_AdvancedValueBinder::bindValue in vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/AdvancedValueBinder.php
Bind value to a cell
PHPExcel_Style_NumberFormat::toFormattedString in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
* Convert a value in a pre-defined format to a PHP string * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php, line 751

Class

PHPExcel_Shared_String
PHPExcel_Shared_String

Code

public static function getCurrencyCode() {
  if (!isset(self::$_currencyCode)) {
    $localeconv = localeconv();
    self::$_currencyCode = $localeconv['currency_symbol'] != '' ? $localeconv['currency_symbol'] : $localeconv['int_curr_symbol'];
    if (self::$_currencyCode == '') {

      // Default to $
      self::$_currencyCode = '$';
    }
  }
  return self::$_currencyCode;
}