Ignore:
Timestamp:
2012/03/12 16:13:06 (14 years ago)
Author:
Seasoft
Message:

#1613 (typo修正・ソース整形・ソースコメントの改善)
#1607 (未使用定義の削除)

  • SC_Utils#getCSVData 怪しい処理を含むため保守しようとしたが、利用箇所がないようなので破棄。
File:
1 edited

Legend:

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

    r21593 r21634  
    520520            foreach ($array as $key => $val) { 
    521521                $val = mb_convert_encoding($val, CHAR_CODE, CHAR_CODE); 
    522                 $line .= "\"".$val."\","; 
     522                $line .= '"' .$val. '",'; 
    523523            } 
    524524            $line = ereg_replace(",$", "\r\n", $line); 
     
    584584    function sfGetEnabled($val) { 
    585585        if (! $val) { 
    586             return " disabled=\"disabled\""; 
     586            return ' disabled="disabled"'; 
    587587        } 
    588588        return ''; 
     
    591591    function sfGetChecked($param, $value) { 
    592592        if ((string)$param === (string)$value) { 
    593             return "checked=\"checked\""; 
     593            return 'checked="checked"'; 
    594594        } 
    595595        return ''; 
     
    15611561 
    15621562    /** 
    1563      * CSV出力用データ取得 
    1564      * 
    1565      * @return string 
    1566      */ 
    1567     function getCSVData($array, $arrayIndex) { 
    1568         for ($i = 0; $i < count($array); $i++) { 
    1569             // インデックスが設定されている場合 
    1570             if (is_array($arrayIndex) && 0 < count($arrayIndex)) { 
    1571                 for ($j = 0; $j < count($arrayIndex); $j++) { 
    1572                     if ($j > 0) $return .= ','; 
    1573                     $return .= "\""; 
    1574                     $return .= mb_ereg_replace('<','<',mb_ereg_replace("\"","\"\"",$array[$i][$arrayIndex[$j]])) ."\""; 
    1575                 } 
    1576             } else { 
    1577                 for ($j = 0; $j < count($array[$i]); $j++) { 
    1578                     if ($j > 0) $return .= ','; 
    1579                     $return .= "\""; 
    1580                     $return .= mb_ereg_replace('<','<',mb_ereg_replace("\"","\"\"",$array[$i][$j])) ."\""; 
    1581                 } 
    1582             } 
    1583             $return .= "\n"; 
    1584         } 
    1585         return $return; 
    1586     } 
    1587  
    1588     /** 
    15891563     * 配列をテーブルタグで出力する。 
    15901564     * 
Note: See TracChangeset for help on using the changeset viewer.