Ignore:
Timestamp:
2012/02/11 04:20:07 (14 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

  • ソース整形(主に制御構造のスペース)
Location:
branches/version-2_12-dev/data/class/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/util/GC_Utils.php

    r21446 r21479  
    3939     * [注釈] 引数は1,2ともカンマ区切りになっていること 
    4040     *----------------------------------------------------------------------*/ 
    41     function gfDownloadCsv($header, $contents){ 
     41    function gfDownloadCsv($header, $contents) { 
    4242 
    4343        $fiest_name = date('YmdHis') .".csv"; 
     
    6565     * [注釈] - 
    6666     *----------------------------------------------------------------------*/ 
    67     function gfSetCsv($array, $arrayIndex = ""){ 
     67    function gfSetCsv($array, $arrayIndex = "") { 
    6868        //引数$arrayIndexは、$arrayが連想配列のときに添え字を指定してやるために使用する 
    6969 
     
    9494     * [注釈] - 
    9595     *----------------------------------------------------------------------*/ 
    96     function gfGetAge($dbdate) 
    97     { 
     96    function gfGetAge($dbdate) { 
    9897        $ty = date('Y'); 
    9998        $tm = date('m'); 
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r21455 r21479  
    220220     * @return string アスタリスクへ変換した文字列 
    221221     */ 
    222     function sfPassLen($passlen){ 
     222    function sfPassLen($passlen) { 
    223223        $ret = ""; 
    224224        for ($i=0;$i<$passlen;true) { 
     
    234234     * @return bool 
    235235     */ 
    236     function sfIsHTTPS () { 
     236    function sfIsHTTPS() { 
    237237        // HTTPS時には$_SERVER['HTTPS']には空でない値が入る 
    238238        // $_SERVER['HTTPS'] != 'off' はIIS用 
     
    303303    } 
    304304 
    305     function sfGetCSVData($data, $prefix = ""){ 
     305    function sfGetCSVData($data, $prefix = "") { 
    306306        if ($prefix == "") { 
    307307            $dir_name = SC_Utils_Ex::sfUpDirName(); 
     
    552552    /*            3.エラー (0 = OK, 1 = NG) 
    553553    /*-----------------------------------------------------------------*/ 
    554     function sfCheckSetTerm ($start_year, $start_month, $start_day, $end_year, $end_month, $end_day) { 
     554    function sfCheckSetTerm($start_year, $start_month, $start_day, $end_year, $end_month, $end_day) { 
    555555 
    556556        // 期間指定 
     
    575575 
    576576    // エラー箇所の背景色を変更するためのfunction SC_Viewで読み込む 
    577     function sfSetErrorStyle(){ 
     577    function sfSetErrorStyle() { 
    578578        return 'style="background-color:'.ERR_COLOR.'"'; 
    579579    } 
     
    667667 
    668668    // 桁数を指定して四捨五入 
    669     function sfRound($value, $pow = 0){ 
     669    function sfRound($value, $pow = 0) { 
    670670        $adjust = pow(10 ,$pow-1); 
    671671 
     
    825825 
    826826    // 二回以上繰り返されているスラッシュ[/]を一つに変換する。 
    827     function sfRmDupSlash($istr){ 
     827    function sfRmDupSlash($istr) { 
    828828        if (ereg("^http://", $istr)) { 
    829829            $str = substr($istr, 7); 
     
    10671067     * @deprecated SC_Query::quote() を使用すること 
    10681068     */ 
    1069     function sfQuoteSmart($in){ 
     1069    function sfQuoteSmart($in) { 
    10701070 
    10711071        if (is_int($in) || is_double($in)) { 
     
    11081108 
    11091109    // ディレクトリ以下のファイルを再帰的にコピー 
    1110     function sfCopyDir($src, $des, $mess = "", $override = false){ 
     1110    function sfCopyDir($src, $des, $mess = "", $override = false) { 
    11111111        if (!is_dir($src)) { 
    11121112            return false; 
     
    11601160 
    11611161    // 指定したフォルダ内のファイルを全て削除する 
    1162     function sfDelFile($dir){ 
     1162    function sfDelFile($dir) { 
    11631163        if (file_exists($dir)) { 
    11641164            $dh = opendir($dir); 
     
    12231223     * @return void 
    12241224     */ 
    1225     function sfFlush($output = false, $sleep = 0){ 
     1225    function sfFlush($output = false, $sleep = 0) { 
    12261226        // 出力をバッファリングしない(==日本語自動変換もしない) 
    12271227        while (@ob_end_flush()); 
Note: See TracChangeset for help on using the changeset viewer.