コード例 #1
0
ファイル: Intl.php プロジェクト: tahermarkos/Transport
 /**
  * Returns the version of the installed ICU data.
  *
  * @return string The version of the installed ICU data.
  */
 public static function getIcuDataVersion()
 {
     if (false === self::$icuDataVersion) {
         self::$icuDataVersion = trim(file_get_contents(self::getDataDirectory() . '/version.txt'));
     }
     return self::$icuDataVersion;
 }
コード例 #2
0
ファイル: Intl.php プロジェクト: scottleedavis/hackazon
 /**
  * Resets the internal state.
  */
 private static function reset()
 {
     self::$currencyBundle = null;
     self::$languageBundle = null;
     self::$localeBundle = null;
     self::$regionBundle = null;
     self::$icuVersion = false;
     self::$icuDataVersion = false;
     self::$entryReader = null;
 }
コード例 #3
0
ファイル: Intl.php プロジェクト: nassafou/Filmotheque
 /**
  * Returns the version of the installed ICU data.
  *
  * @return string The version of the installed ICU data.
  */
 public static function getIcuDataVersion()
 {
     if (false === self::$icuDataVersion) {
         self::$icuDataVersion = IcuData::getVersion();
     }
     return self::$icuDataVersion;
 }