Ignore:
Timestamp:
2014/05/22 10:58:08 (10 years ago)
Author:
pineray
Message:

#2554 カテゴリ登録CSVに対応.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/util/SC_Utils.php

    r23436 r23439  
    963963     * @return string 変換後のテキストファイルのパス 
    964964     */ 
    965     public function sfEncodeFile($filepath, $enc_type, $out_dir) 
     965    public static function sfEncodeFile($filepath, $enc_type, $out_dir) 
    966966    { 
    967967        $ifp = fopen($filepath, 'r'); 
     
    13491349     * @return array 
    13501350     */ 
    1351     public function sfArrayIntersectKeys($arrSrc, $arrKey) 
     1351    public static function sfArrayIntersectKeys($arrSrc, $arrKey) 
    13521352    { 
    13531353        $arrRet = array(); 
     
    18521852    } 
    18531853 
    1854    /** 
     1854    /** 
    18551855     * コンパイルファイルを削除します. 
    18561856     * @return void 
     
    19771977     * @return string 
    19781978     */ 
    1979     public function getUnitDataSize($data) 
     1979    public static function getUnitDataSize($data) 
    19801980    { 
    19811981        if ($data < 1000) { 
     
    21062106        return file_exists(realpath(str_replace('..','',$base_path . $path_diff))) ? true : false; 
    21072107    } 
     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    } 
    21082120} 
Note: See TracChangeset for help on using the changeset viewer.