Ignore:
Timestamp:
2008/08/28 14:48:13 (16 years ago)
Author:
Seasoft
Message:

merge 17337,17338,17339,17343,17344,17346,17370,17371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php

    r16582 r17575  
    148148                $header .= "\n"; 
    149149 
    150                 $data = $this->lfGetCSVData($arrCsvOutputData, $arrKey); 
     150                $data = SC_Utils_Ex::getCSVData($arrCsvOutputData, $arrKey); 
    151151                // CSV出力 
    152152                SC_Utils_Ex::sfCSVDownload($header.$data); 
     
    411411        return $ret; 
    412412    } 
    413  
    414  
    415     //---- CSV出力用データ取得 
    416     function lfGetCSVData( $array, $arrayIndex){ 
    417         $return = ""; 
    418         for ($i=0; $i<count($array); $i++){ 
    419             for ($j=0; $j<count($array[$i]); $j++ ){ 
    420                 if ( $j > 0 ) $return .= ","; 
    421                 $return .= "\""; 
    422                 if ( $arrayIndex ){ 
    423                     $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\""; 
    424                 } else { 
    425                     $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j] )) ."\""; 
    426                 } 
    427             } 
    428             $return .= "\n"; 
    429         } 
    430  
    431         return $return; 
    432     } 
    433413} 
    434414?> 
Note: See TracChangeset for help on using the changeset viewer.