Changeset 23439 for branches/version-2_13-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2014/05/22 10:58:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/util/SC_Utils.php
r23436 r23439 963 963 * @return string 変換後のテキストファイルのパス 964 964 */ 965 public function sfEncodeFile($filepath, $enc_type, $out_dir)965 public static function sfEncodeFile($filepath, $enc_type, $out_dir) 966 966 { 967 967 $ifp = fopen($filepath, 'r'); … … 1349 1349 * @return array 1350 1350 */ 1351 public function sfArrayIntersectKeys($arrSrc, $arrKey)1351 public static function sfArrayIntersectKeys($arrSrc, $arrKey) 1352 1352 { 1353 1353 $arrRet = array(); … … 1852 1852 } 1853 1853 1854 /**1854 /** 1855 1855 * コンパイルファイルを削除します. 1856 1856 * @return void … … 1977 1977 * @return string 1978 1978 */ 1979 public function getUnitDataSize($data)1979 public static function getUnitDataSize($data) 1980 1980 { 1981 1981 if ($data < 1000) { … … 2106 2106 return file_exists(realpath(str_replace('..','',$base_path . $path_diff))) ? true : false; 2107 2107 } 2108 2109 /** 2110 * マイクロ秒付きの時間文字列を取得する. 2111 * 2112 * @return bool|string 2113 */ 2114 public static function getFormattedDateWithMicroSecond() 2115 { 2116 $micro = explode(" ", microtime()); 2117 $micro_string = explode('.',$micro[0]); 2118 return date('Y-m-d H:i:s') . "." . substr($micro_string[1],0,5); 2119 } 2108 2120 }
Note: See TracChangeset
for help on using the changeset viewer.